net: core: support XDP generic on stacked devices.
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 28 May 2019 18:47:31 +0000 (11:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:50:52 +0000 (14:50 +0100)
commit6c350e974c953d9a806c73b629eb46f40504743f
treef52571e1678bc1b25f643bc92aa3b4cb5de198ad
parent1c12bf1ebe5ca717bc771341dfe685eb7fd141e3
net: core: support XDP generic on stacked devices.

[ Upstream commit 458bf2f224f04a513b0be972f8708e78ee2c986e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/core/dev.c