]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: drop skb2/skb0 variables and use a local_rcv boolean
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Thu, 14 Jul 2016 03:10:01 +0000 (06:10 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Jul 2016 02:57:38 +0000 (19:57 -0700)
commit7770d0dbd56d937d73c365b5f0034c0e75740a58
treed3f99f73c088ec6360fdfa2331d9ba25d1127efa
parentfef0e657ce5bcfcbf5507ca04e66d940e1bfe780
net: bridge: drop skb2/skb0 variables and use a local_rcv boolean

Currently if the packet is going to be received locally we set skb0 or
sometimes called skb2 variables to the original skb. This can get
confusing and also we can avoid one conditional on the fast path by
simply using a boolean and passing it around. Thanks to Roopa for the
name suggestion.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_forward.c
net/bridge/br_input.c
net/bridge/br_private.h