]> 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:07:56 +0000 (09:07 +0200)
commit44494749027c3d9b5247c33f74f05b1d859ad13f
tree60d0c0acde56df18194fe0ba3d53030bd2c92f5f
parent8828a33fa14ed2ec5cf0fdb2b0f6e0cbb35319a0
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