aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/hyperv/hyperv_net.h
diff options
context:
space:
mode:
authorGravatar Haiyang Zhang <haiyangz@microsoft.com> 2017-04-12 11:35:05 -0700
committerGravatar David S. Miller <davem@davemloft.net> 2017-04-17 11:05:19 -0400
commit8db91f6a9b2ff2bb5355ad11c668fe63eb8ae0c3 (patch)
tree62dccf110f2612cf80c6385dfb66c74a5956ddd5 /drivers/net/hyperv/hyperv_net.h
parentnet: dsa: isolate legacy code (diff)
downloadlinux-8db91f6a9b2ff2bb5355ad11c668fe63eb8ae0c3.tar.gz
linux-8db91f6a9b2ff2bb5355ad11c668fe63eb8ae0c3.tar.bz2
linux-8db91f6a9b2ff2bb5355ad11c668fe63eb8ae0c3.zip
hv_netvsc: Fix the queue index computation in forwarding case
If the outgoing skb has a RX queue mapping available, we use the queue number directly, other than put it through Send Indirection Table. Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Reviewed-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h
index 4747ad48b3cc..768b3ae6ae8f 100644
--- a/drivers/net/hyperv/hyperv_net.h
+++ b/drivers/net/hyperv/hyperv_net.h
@@ -633,7 +633,7 @@ struct nvsp_message {
#define NETVSC_PACKET_SIZE 4096
-#define VRSS_SEND_TAB_SIZE 16
+#define VRSS_SEND_TAB_SIZE 16 /* must be power of 2 */
#define VRSS_CHANNEL_MAX 64
#define VRSS_CHANNEL_DEFAULT 8