Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1725358 > unrolled thread
| Started by | Haiyang Zhang <haiyangz@exchange.microsoft.com> |
|---|---|
| First post | 2017-09-01 23:40 +0200 |
| Last post | 2017-09-01 23:40 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH net-next, 4/4] hv_netvsc: Fix the channel limit in netvsc_set_rxfh() Haiyang Zhang <haiyangz@exchange.microsoft.com> - 2017-09-01 23:40 +0200
| From | Haiyang Zhang <haiyangz@exchange.microsoft.com> |
|---|---|
| Date | 2017-09-01 23:40 +0200 |
| Subject | [PATCH net-next, 4/4] hv_netvsc: Fix the channel limit in netvsc_set_rxfh() |
| Message-ID | <ul1Ps-2fo-25@gated-at.bofh.it> |
From: Haiyang Zhang <haiyangz@microsoft.com>
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>
---
drivers/net/hyperv/netvsc_drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c
index 718d126108f6..9205235ba21c 100644
--- 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++)
--
2.14.1
Back to top | Article view | linux.kernel
csiph-web