net/netif_receive_skb_core: Use migrate_disable()
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 17 Jun 2021 07:38:17 +0000 (09:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jun 2021 19:08:02 +0000 (12:08 -0700)
commit2b4cd14fd995e0a863b2ced4cba0bcd804d89ebc
tree16766a5a25d3999bc9cb777ea105c9fbfc7b6278
parent89837eb4b2463c556a123437f242d6c2bc62ce81
net/netif_receive_skb_core: Use migrate_disable()

The preempt disable around do_xdp_generic() has been introduced in
commit
   bbbe211c295ff ("net: rcu lock and preempt disable missing around generic xdp")

For BPF it is enough to use migrate_disable() and the code was updated
as it can be seen in commit
   3c58482a382ba ("bpf: Provide bpf_prog_run_pin_on_cpu() helper")

This is a leftover which was not converted.

Use migrate_disable() before invoking do_xdp_generic().

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c