virtio-net: use netif_tx_napi_add for tx napi
Subsystems (3)
PATCH 1/1 virtio-net: use netif_tx_napi_add for tx napi
From: Willem de Bruijn <[email protected]>
Avoid hashing the tx napi struct into napi_hash[], which is used for busy polling receive queues.
Signed-off-by Willem de Bruijn <[email protected]>
--- drivers/net/virtio_net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/virtio_net.c +2 -2
@@ -2228,8 +2228,8 @@ static int virtnet_alloc_queues(struct virtnet_info *vi) vi->rq[i].pages =NULL ;netif_napi_add (vi->dev, &vi->rq[i].napi, virtnet_poll, napi_weight); -netif_napi_add (vi->dev, &vi->sq[i].napi, virtnet_poll_tx, - napi_tx ? napi_weight :0 ); +netif_tx_napi_add (vi->dev, &vi->sq[i].napi, virtnet_poll_tx, + napi_tx ? napi_weight :0 );sg_init_table (vi->rq[i].sg,ARRAY_SIZE (vi->rq[i].sg));ewma_pkt_len_init (&vi->rq[i].mrg_avg_pkt_len);
Signature · 1 line
2.13.0.rc0.306.g87b477812d-goog
From: Willem de Bruijn <[email protected]>
Date: Thu, 27 Apr 2017 20:37:58 -0400
Quoted 6 lines
From: Willem de Bruijn <[email protected]>
Avoid hashing the tx napi struct into napi_hash[], which is used for busy polling receive queues.
Signed-off-by Willem de Bruijn <[email protected]>
Applied.