netvsc: fix NAPI performance regression
When using NAPI, the single stream performance declined signifcantly because the poll routine was updating host after every burst of packets. This excess signalling caused host throttling. This fix restores the old behavior. Host is only signalled after the ring has been emptied. Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
6069f3fbde
commit
f4f1c23d6e
@@ -723,6 +723,7 @@ struct net_device_context {
|
||||
/* Per channel data */
|
||||
struct netvsc_channel {
|
||||
struct vmbus_channel *channel;
|
||||
const struct vmpacket_descriptor *desc;
|
||||
struct napi_struct napi;
|
||||
struct multi_send_data msd;
|
||||
struct multi_recv_comp mrc;
|
||||
|
||||
Reference in New Issue
Block a user