]> 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)
commit3e2d9c2a5814a9d47b4d954586ae8e5117b66b87
treed3f99f73c088ec6360fdfa2331d9ba25d1127efa
parent4d15cff5e705c028f1f55855465dfc193ae0dec9
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