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)
commit3fe260e00cd0bf0be853c48fcc1e19853df615bb
tree0560451c14b2fb13eb0206ed898a0b0be65f3c04
parente6aaeafd56e33345f1d242cde33dd92614734be8
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