From 7ae3a8cdb0598ebeaf9bc3c6e6a913c90d00efb8 Mon Sep 17 00:00:00 2001 From: narayanr Date: Fri, 6 Mar 2020 11:31:49 +0530 Subject: [PATCH] nvethernet: rename ptp to reuse for swcx flag use reuse instead of ptp, so that it will be a generic for any descriptors that we need to skip buffer allocation and DMA mapping Bug 2870545 Change-Id: Idae57cab7a36d0cf52fb64883d3452f8e6917d51 Signed-off-by: narayanr Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2308395 Reviewed-by: Srinivas Ramachandran Reviewed-by: Rakesh Goyal Reviewed-by: Bhadram Varka Reviewed-by: Bibek Basu Reviewed-by: mobile promotions Tested-by: mobile promotions GVS: Gerrit_Virtual_Submit --- drivers/net/ethernet/nvidia/nvethernet/osd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/nvidia/nvethernet/osd.c b/drivers/net/ethernet/nvidia/nvethernet/osd.c index 01365c34..68fa06ca 100644 --- a/drivers/net/ethernet/nvidia/nvethernet/osd.c +++ b/drivers/net/ethernet/nvidia/nvethernet/osd.c @@ -135,7 +135,7 @@ static inline int ether_alloc_skb(struct ether_priv_data *pdata, struct sk_buff *skb = NULL; dma_addr_t dma_addr; - if ((rx_swcx->flags & OSI_RX_SWCX_PTP) == OSI_RX_SWCX_PTP) { + if ((rx_swcx->flags & OSI_RX_SWCX_REUSE) == OSI_RX_SWCX_REUSE) { /* Skip buffer allocation and DMA mapping since * PTP software context will have valid buffer and * DMA addresses so use them as is.