summaryrefslogtreecommitdiffstats
path: root/net/packet/af_packet.c
diff options
context:
space:
mode:
authorZhu Yanjun <yanjun.zhu@oracle.com>2017-09-22 16:20:21 +0200
committerDavid S. Miller <davem@davemloft.net>2017-09-24 05:04:23 +0200
commit39e50d9637f9a31967ac9e956b829ee8b50a750f (patch)
treeaaddb235d37628d37901d074553f22b255df271b /net/packet/af_packet.c
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff)
downloadlinux-39e50d9637f9a31967ac9e956b829ee8b50a750f.tar.xz
linux-39e50d9637f9a31967ac9e956b829ee8b50a750f.zip
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>
Diffstat (limited to 'net/packet/af_packet.c')
0 files changed, 0 insertions, 0 deletions