Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'fix panic bringing up veth with xdp progs'

John Fastabend says:

====================

Not sure if folks want to take this through BPF tree or networking tree.
I took a quick look and didn't see any pending fixes so seems no one
has noticed the panic yet. It reproducible and easy to repro.

I put bpf in the title thinking it woudl be great to run through the
BPF selftests given its XDP triggering the panic.

Sorry maintainers resent with CC'ing actual lists. Had a scripting
issue. Also dropped henqqi has they are bouncing.

Thanks!
====================

Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>

+1 -1
+1 -1
drivers/net/veth.c
··· 1125 1125 int err, i; 1126 1126 1127 1127 rq = &priv->rq[0]; 1128 - napi_already_on = (dev->flags & IFF_UP) && rcu_access_pointer(rq->napi); 1128 + napi_already_on = rcu_access_pointer(rq->napi); 1129 1129 1130 1130 if (!xdp_rxq_info_is_reg(&priv->rq[0].xdp_rxq)) { 1131 1131 err = veth_enable_xdp_range(dev, 0, dev->real_num_rx_queues, napi_already_on);