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

Configure Feed

Select the types of activity you want to include in your feed.

virtio-net: Maintain reverse cleanup order

To easily audit the code, better to keep the device stop()
sequence to be mirror of the device open() sequence.

Acked-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Parav Pandit and committed by
David S. Miller
27369c9c cb3086ce

+1 -1
+1 -1
drivers/net/virtio_net.c
··· 2282 2282 cancel_delayed_work_sync(&vi->refill); 2283 2283 2284 2284 for (i = 0; i < vi->max_queue_pairs; i++) { 2285 + virtnet_napi_tx_disable(&vi->sq[i].napi); 2285 2286 napi_disable(&vi->rq[i].napi); 2286 2287 xdp_rxq_info_unreg(&vi->rq[i].xdp_rxq); 2287 - virtnet_napi_tx_disable(&vi->sq[i].napi); 2288 2288 } 2289 2289 2290 2290 return 0;