net: bridge: fdb: convert is_local to bitops
The patch adds a new fdb flags field in the hole between the two cache lines and uses it to convert is_local to bitops. Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
8466a57dfb
commit
6869c3b02b
@@ -151,7 +151,7 @@ int br_handle_frame_finish(struct net *net, struct sock *sk, struct sk_buff *skb
|
||||
if (dst) {
|
||||
unsigned long now = jiffies;
|
||||
|
||||
if (dst->is_local)
|
||||
if (test_bit(BR_FDB_LOCAL, &dst->flags))
|
||||
return br_pass_frame_up(skb);
|
||||
|
||||
if (now != dst->used)
|
||||
|
Reference in New Issue
Block a user