]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: tun: record RX queue in skb before do_xdp_generic()
authorGilberto Bertin <me@jibi.io>
Fri, 10 Apr 2020 16:20:59 +0000 (18:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Apr 2020 07:06:22 +0000 (09:06 +0200)
commita287d40f85199967fd26c7c17437f851ffefdfa8
treef024191a0566be3f3f58decbcb3b9646598eeaee
parent36441313192486c2e16d67100eb10cb838ae2673
net: tun: record RX queue in skb before do_xdp_generic()

[ Upstream commit 3fe260e00cd0bf0be853c48fcc1e19853df615bb ]

This allows netif_receive_generic_xdp() to correctly determine the RX
queue from which the skb is coming, so that the context passed to the
XDP program will contain the correct RX queue index.

Signed-off-by: Gilberto Bertin <me@jibi.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/tun.c