]> git.baikalelectronics.ru Git - kernel.git/commit
vlan: slight optimization for vlan_do_receive()
authordingtianhong <dingtianhong@huawei.com>
Fri, 7 Mar 2014 10:45:30 +0000 (18:45 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 9 Mar 2014 23:03:51 +0000 (19:03 -0400)
commitfbd33fd80c4add371fc7404ba2d4a208ce91da32
tree8fe865bafa30f6302f4d6a3e9f81aaaaba35a933
parent0b07472f0c6b6e0aa630460e030c6822f16cd951
vlan: slight optimization for vlan_do_receive()

According Joe's suggestion, maybe it'd be faster to add an unlikely to
the test for PCKET_OTHERHOST, so I add it and see whether the performance
could be better, although the differences is so small and negligible, but
it is hard to catch that any lower device would set the skb type to
PACKET_OTHERHOST, so most of time, I think it make sense to add unlikely
for the test.

Cc: Joe Perches <joe@perches.com>
Cc: Patrick McHardy <kaber@trash.net>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Ding Tianhong <dingtianhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan_core.c