forcedeth: optimize the xmit/rx with unlikely
authorZhu Yanjun <yanjun.zhu@oracle.com>
Fri, 22 Sep 2017 14:20:21 +0000 (10:20 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Sep 2017 03:04:23 +0000 (20:04 -0700)
commit39e50d9637f9a31967ac9e956b829ee8b50a750f
treeaaddb235d37628d37901d074553f22b255df271b
parent1f8d31d189cc6ce1e4b972959fda41e790bb92b8
forcedeth: optimize the xmit/rx with unlikely

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 <yanjun.zhu@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/nvidia/forcedeth.c