net: core: support XDP generic on stacked devices.
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 28 May 2019 18:47:31 +0000 (11:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 May 2019 18:12:21 +0000 (11:12 -0700)
commit458bf2f224f04a513b0be972f8708e78ee2c986e
tree06ebaa54d4e1878de271ddfa7a656e948062bafa
parent996ed04741467f6d1552440c92988b132a9487ec
net: core: support XDP generic on stacked devices.

When a device is stacked like (team, bonding, failsafe or netvsc) the
XDP generic program for the parent device was not called.

Move the call to XDP generic inside __netif_receive_skb_core where
it can be done multiple times for stacked case.

Fixes: d445516966dc ("net: xdp: support xdp generic on virtual devices")
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c