summaryrefslogtreecommitdiff
path: root/net/sched/act_ipt.c
diff options
context:
space:
mode:
authorHaiyang Zhang <haiyangz@microsoft.com>2017-12-11 19:56:58 +0300
committerDavid S. Miller <davem@davemloft.net>2017-12-13 21:25:04 +0300
commit41f61db2cd24d5ad802386719cccde1479aa82a6 (patch)
tree91243737b9a615be425572561255e9631439e4a0 /net/sched/act_ipt.c
parent11b2b653102571ac791885324371d9a1a17b900e (diff)
downloadlinux-41f61db2cd24d5ad802386719cccde1479aa82a6.tar.xz
hv_netvsc: Fix the TX/RX buffer default sizes
The values were not computed correctly. There are no significant visible impact, though. The intended size of RX buffer is 16 MB, and the default slot size is 1728. So, NETVSC_DEFAULT_RX should be 16*1024*1024 / 1728 = 9709. The intended size of TX buffer is 1 MB, and the slot size is 6144. So, NETVSC_DEFAULT_TX should be 1024*1024 / 6144 = 170. The patch puts the formula directly into the macro, and moves them to hyperv_net.h, together with related macros. Fixes: 5023a6db73196 ("netvsc: increase default receive buffer size") Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_ipt.c')
0 files changed, 0 insertions, 0 deletions