]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Apr 2020 03:58:24 +0000 (20:58 -0700)
commit5c5b1d297907ab35ecf5be341a0fb948ad3384bd
tree0560451c14b2fb13eb0206ed898a0b0be65f3c04
parenta3e8a056817988367f8ddbc7bf78640384d7e10e
net: tun: record RX queue in skb before do_xdp_generic()

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>
drivers/net/tun.c