Commit c2368e795cec561229ef66a04ac51629b918a9e8
Committed by
David S. Miller
1 parent
fcb12fd223
Exists in
master
and in
7 other branches
bridge: is PACKET_LOOPBACK unlikely()?
While looking at using netdev_rx_handler_register for openvswitch Jesse Gross suggested that an unlikely() might be worthwhile in that code. I'm interested to see if its appropriate for the bridge code. Cc: Jesse Gross <jesse@nicira.com> Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
net/bridge/br_input.c
... | ... | @@ -141,7 +141,7 @@ |
141 | 141 | const unsigned char *dest = eth_hdr(skb)->h_dest; |
142 | 142 | int (*rhook)(struct sk_buff *skb); |
143 | 143 | |
144 | - if (skb->pkt_type == PACKET_LOOPBACK) | |
144 | + if (unlikely(skb->pkt_type == PACKET_LOOPBACK)) | |
145 | 145 | return skb; |
146 | 146 | |
147 | 147 | if (!is_valid_ether_addr(eth_hdr(skb)->h_source)) |