net/ena: add supported RSS offloads types
authorRafal Kozik <rk@semihalf.com>
Fri, 14 Dec 2018 13:18:38 +0000 (14:18 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 21 Dec 2018 15:22:40 +0000 (16:22 +0100)
The PMD was not passing RSS offloads values although it was supporting
the RSS. To allow application to probe the PMD for RSS support, the
missing information was added.

Fixes: 1173fca25af9 ("ena: add polling-mode driver")
Cc: stable@dpdk.org
Signed-off-by: Rafal Kozik <rk@semihalf.com>
Acked-by: Michal Krawczyk <mk@semihalf.com>
drivers/net/ena/ena_ethdev.c

index 5adc873..3aa32a3 100644 (file)
@@ -1994,6 +1994,9 @@ static void ena_infos_get(struct rte_eth_dev *dev,
        dev_info->tx_offload_capa = tx_feat;
        dev_info->tx_queue_offload_capa = tx_feat;
 
+       dev_info->flow_type_rss_offloads = ETH_RSS_IP | ETH_RSS_TCP |
+                                          ETH_RSS_UDP;
+
        dev_info->min_rx_bufsize = ENA_MIN_FRAME_LEN;
        dev_info->max_rx_pktlen  = adapter->max_mtu;
        dev_info->max_mac_addrs = 1;