summaryrefslogtreecommitdiff
path: root/drivers/net/netvsc/hn_ethdev.c
diff options
context:
space:
mode:
authorStephen Hemminger <sthemmin@microsoft.com>2019-06-13 08:03:42 -0700
committerFerruh Yigit <ferruh.yigit@intel.com>2019-06-28 20:32:18 +0200
commit3a899f8afc3438bf092494209da69f74c1ddc54b (patch)
treeacf3c9e443039b570cbbee069f26718c655997c0 /drivers/net/netvsc/hn_ethdev.c
parent843e720557105750d5152f3a414655ab87fb856c (diff)
downloaddpdk-3a899f8afc3438bf092494209da69f74c1ddc54b.zip
dpdk-3a899f8afc3438bf092494209da69f74c1ddc54b.tar.gz
dpdk-3a899f8afc3438bf092494209da69f74c1ddc54b.tar.xz
net/netvsc: fix RSS offload settings
Use the result from querying host to show the RSS info. Fixes: 4e9c73e96e83 ("net/netvsc: add Hyper-V network device") Cc: stable@dpdk.org Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Diffstat (limited to 'drivers/net/netvsc/hn_ethdev.c')
-rw-r--r--drivers/net/netvsc/hn_ethdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/netvsc/hn_ethdev.c b/drivers/net/netvsc/hn_ethdev.c
index 70352f0..1fa14ff 100644
--- a/drivers/net/netvsc/hn_ethdev.c
+++ b/drivers/net/netvsc/hn_ethdev.c
@@ -237,8 +237,8 @@ static void hn_dev_info_get(struct rte_eth_dev *dev,
dev_info->max_mac_addrs = 1;
dev_info->hash_key_size = NDIS_HASH_KEYSIZE_TOEPLITZ;
- dev_info->flow_type_rss_offloads =
- ETH_RSS_IPV4 | ETH_RSS_IPV6 | ETH_RSS_TCP | ETH_RSS_UDP;
+ dev_info->flow_type_rss_offloads = hv->rss_offloads;
+ dev_info->reta_size = ETH_RSS_RETA_SIZE_128;
dev_info->max_rx_queues = hv->max_queues;
dev_info->max_tx_queues = hv->max_queues;