Re: [PATCH 1/1] forcedeth: optimize the xmit/rx with unlikely

2017-09-23 Thread David Miller
From: Zhu Yanjun Date: Fri, 22 Sep 2017 10:20:21 -0400 > In the xmit/rx fastpath, the function dma_map_single rarely fails. > Therefore, add an unlikely() optimization to this error check > conditional. > > Signed-off-by: Zhu Yanjun Applied to net-next, thanks.

[PATCH 1/1] forcedeth: optimize the xmit/rx with unlikely

2017-09-22 Thread Zhu Yanjun
In the xmit/rx fastpath, the function dma_map_single rarely fails. Therefore, add an unlikely() optimization to this error check conditional. Signed-off-by: Zhu Yanjun --- drivers/net/ethernet/nvidia/forcedeth.c | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-)