]> git.baikalelectronics.ru Git - kernel.git/commit
forcedeth: optimize the rx with likely
authorZhu Yanjun <yanjun.zhu@oracle.com>
Tue, 26 Dec 2017 06:22:50 +0000 (01:22 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jan 2018 18:29:23 +0000 (13:29 -0500)
commit098436209ad2262211184be0ceaac574df456fdd
treed64acb735e8df58dc2b8d40e69f0bce19fba8f27
parent2e845cb0976c213f0b323e844afc94ea9b7c3ea2
forcedeth: optimize the rx with likely

In the rx fastpath, the function netdev_alloc_skb rarely fails.
Therefore, a likely() optimization is added to this error check
conditional.

CC: Srinivas Eeda <srinivas.eeda@oracle.com>
CC: Joe Jin <joe.jin@oracle.com>
CC: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/nvidia/forcedeth.c