diff options
author | 2017-04-24 18:33:38 -0700 | |
---|---|---|
committer | 2017-04-25 11:56:59 -0400 | |
commit | fdfb70d275223b9d69d5d3abe1f88507da579139 (patch) | |
tree | 72bc1cd4a60af46c4250234ae2a968660eac8d3c /drivers/net/hyperv/hyperv_net.h | |
parent | net: hso: fix module unloading (diff) | |
download | linux-fdfb70d275223b9d69d5d3abe1f88507da579139.tar.gz linux-fdfb70d275223b9d69d5d3abe1f88507da579139.tar.bz2 linux-fdfb70d275223b9d69d5d3abe1f88507da579139.zip |
netvsc: fix calculation of available send sections
My change (introduced in 4.11) to use find_first_clear_bit
incorrectly assumed that the size argument was words, not bits.
The effect was only a small limited number of the available send
sections were being actually used. This can cause performance loss
with some workloads.
Since map_words is now used only during initialization, it can
be on stack instead of in per-device data.
Fixes: b58a185801da ("netvsc: simplify get next send section")
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hyperv/hyperv_net.h')
-rw-r--r-- | drivers/net/hyperv/hyperv_net.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h index f9f3dba7a588..db23cb36ae5c 100644 --- a/drivers/net/hyperv/hyperv_net.h +++ b/drivers/net/hyperv/hyperv_net.h @@ -751,7 +751,6 @@ struct netvsc_device { u32 send_section_cnt; u32 send_section_size; unsigned long *send_section_map; - int map_words; /* Used for NetVSP initialization protocol */ struct completion channel_init_wait; |