projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06be580
)
hv_netvsc: Fix the channel limit in netvsc_set_rxfh()
author
Haiyang Zhang
<haiyangz@microsoft.com>
Fri, 1 Sep 2017 21:30:07 +0000
(14:30 -0700)
committer
David S. Miller
<davem@davemloft.net>
Sat, 2 Sep 2017 03:39:12 +0000
(20:39 -0700)
The limit of setting receive indirection table value should be
the current number of channels, not the VRSS_CHANNEL_MAX.
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c
patch
|
blob
|
history
diff --git
a/drivers/net/hyperv/netvsc_drv.c
b/drivers/net/hyperv/netvsc_drv.c
index fd65d32bf24df7e73617b03431943c51f4abb846..165ba4b3b4232a796e704c40c580204fdb9d601b 100644
(file)
--- a/
drivers/net/hyperv/netvsc_drv.c
+++ b/
drivers/net/hyperv/netvsc_drv.c
@@
-1407,7
+1407,7
@@
static int netvsc_set_rxfh(struct net_device *dev, const u32 *indir,
rndis_dev = ndev->extension;
if (indir) {
for (i = 0; i < ITAB_NUM; i++)
- if (indir[i] >=
VRSS_CHANNEL_MAX
)
+ if (indir[i] >=
ndev->num_chn
)
return -EINVAL;
for (i = 0; i < ITAB_NUM; i++)