virtio_net: Close queue pairs using helper function
Subsystems (5)
PATCH 2/2 virtio_net: Close queue pairs using helper function
Use newly introduced helper function that exactly does the same of closing the queue pairs.
--- drivers/net/virtio_net.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
drivers/net/virtio_net.c +2 -5
@@ -2319,11 +2319,8 @@ static int virtnet_close(struct net_device *dev)/* Make sure refill_work doesn't re-enable napi! */ cancel_delayed_work_sync (&vi->refill); -for (i =0 ; i < vi->max_queue_pairs; i++) { -virtnet_napi_tx_disable (&vi->sq[i].napi); -napi_disable (&vi->rq[i].napi); -xdp_rxq_info_unreg (&vi->rq[i].xdp_rxq); - } +for (i =0 ; i < vi->max_queue_pairs; i++) +virtnet_disable_qp (vi, i);return 0 ; }
Signature · 1 line
2.37.1 (Apple Git-137.1)
Quoted 6 lines · Feng Liu
Use newly introduced helper function that exactly does the same of closing the queue pairs.
Signed-off-by Feng Liu <[email protected]>Reviewed-by William Tu <[email protected]>Reviewed-by Parav Pandit <[email protected]>
I guess this was put in a separate patch to 1/2, as it's more net-next material, as opposed to 1/2 which seems to be net material. FWIIW, I'd lean to putting 1/2 in net. And holding this one for net-next.
That aside, this looks good to me.
Quoted 11 lines · Simon Horman
External email: Use caution opening links or attachments
Quoted 6 lines · Feng Liu
Use newly introduced helper function that exactly does the same of closing the queue pairs.
Signed-off-by Feng Liu <[email protected]>Reviewed-by William Tu <[email protected]>Reviewed-by Parav Pandit <[email protected]>
Quoted 7 lines
I guess this was put in a separate patch to 1/2, as it's more net-next material, as opposed to 1/2 which seems to be net material. FWIIW, I'd lean to putting 1/2 in net. And holding this one for net-next.
That aside, this looks good to me.
Reviewed-by Simon Horman <[email protected]>
Will do, thanks Simon
_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Michael S. Tsirkin
maintainerQuoted 18 lines · Feng Liu
Quoted 15 lines · Simon Horman
External email: Use caution opening links or attachments
Quoted 6 lines · Feng Liu
Use newly introduced helper function that exactly does the same of closing the queue pairs.
Signed-off-by Feng Liu <[email protected]>Reviewed-by William Tu <[email protected]>Reviewed-by Parav Pandit <[email protected]>I guess this was put in a separate patch to 1/2, as it's more net-next material, as opposed to 1/2 which seems to be net material. FWIIW, I'd lean to putting 1/2 in net. And holding this one for net-next.
Quoted 5 lines
Quoted 3 lines
That aside, this looks good to me.
Reviewed-by Simon Horman <[email protected]>Will do, thanks Simon
Nah, I think you should just squash these two patches together. It's early in the merge window.
Signature · 6 lines
MST _______________________________________________ Virtualization mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Quoted 6 lines · Feng Liu
Use newly introduced helper function that exactly does the same of closing the queue pairs.
Signed-off-by Feng Liu <[email protected]>Reviewed-by William Tu <[email protected]>Reviewed-by Parav Pandit <[email protected]>
Quoted 24 lines
--- drivers/net/virtio_net.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)drivers/net/virtio_net.c +2
-5@@ -2319,11 +2319,8 @@ static int virtnet_close(struct net_device *dev)/* Make sure refill_work doesn't re-enable napi! */ cancel_delayed_work_sync (&vi->refill); -for (i =0 ; i < vi->max_queue_pairs; i++) { -virtnet_napi_tx_disable (&vi->sq[i].napi); -napi_disable (&vi->rq[i].napi); -xdp_rxq_info_unreg (&vi->rq[i].xdp_rxq); - } +for (i =0 ; i < vi->max_queue_pairs; i++) +virtnet_disable_qp (vi, i);return 0 ; }Signature · 1 line
2.37.1 (Apple Git-137.1)
_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Quoted 26 lines · Michael S. Tsirkin
External email: Use caution opening links or attachments
Quoted 22 lines · Feng Liu
Quoted 18 lines · Simon Horman
External email: Use caution opening links or attachments
Quoted 6 lines · Feng Liu
Use newly introduced helper function that exactly does the same of closing the queue pairs.
Signed-off-by Feng Liu <[email protected]>Reviewed-by William Tu <[email protected]>Reviewed-by Parav Pandit <[email protected]>I guess this was put in a separate patch to 1/2, as it's more net-next material, as opposed to 1/2 which seems to be net material. FWIIW, I'd lean to putting 1/2 in net. And holding this one for net-next.
That aside, this looks good to me.
Reviewed-by Simon Horman <[email protected]>
Quoted 8 lines
Quoted 1 line
Will do, thanks Simon
Nah, I think you should just squash these two patches together. It's early in the merge window.
--
MST
OK, will do , thx
_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Quoted 19 lines · Michael S. Tsirkin
Quoted 18 lines · Feng Liu
Quoted 15 lines · Simon Horman
External email: Use caution opening links or attachments
Quoted 6 lines · Feng Liu
Use newly introduced helper function that exactly does the same of closing the queue pairs.
Signed-off-by Feng Liu <[email protected]>Reviewed-by William Tu <[email protected]>Reviewed-by Parav Pandit <[email protected]>I guess this was put in a separate patch to 1/2, as it's more net-next material, as opposed to 1/2 which seems to be net material. FWIIW, I'd lean to putting 1/2 in net. And holding this one for net-next.
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
That aside, this looks good to me.
Reviewed-by Simon Horman <[email protected]>Will do, thanks Simon
Nah, I think you should just squash these two patches together. It's early in the merge window.
Ack, sorry for the noise.