Skip to contentSkip to conversation

net/ixgbe: fix Vf Rss offloads configuration

PATCH Applied Wei Zhao 2 participants 2 messages Sep 4, 2019 – Sep 5, 2019 Network drivers

lore
Share & tools
lore

Wei Zhao

author
#0 lore raw

PATCH 1/1 net/ixgbe: fix Vf Rss offloads configuration

x550 NIC Vf port has the capacity to set Rss hash, so device info get function should report that.

Fixes 2144f6630fca ("ixgbe: add redirection table size in device info")
---
 drivers/net/ixgbe/ixgbe_ethdev.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ixgbe/ixgbe_ethdev.c +1 -0
index 03fc1f7..f7ac068 100644
@@ -3928,6 +3928,7 @@ ixgbevf_dev_info_get(struct rte_eth_dev *dev,
 	dev_info->tx_offload_capa = ixgbe_get_tx_port_offloads(dev);
 	dev_info->hash_key_size = IXGBE_HKEY_MAX_INDEX * sizeof(uint32_t);
 	dev_info->reta_size = ixgbe_reta_size_get(hw->mac.type);
+	dev_info->flow_type_rss_offloads = IXGBE_RSS_OFFLOAD_ALL;
 
 	dev_info->default_rxconf = (struct rte_eth_rxconf) {
 		.rx_thresh = {
Signature · 1 line
2.7.5
Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 27 lines · Wei Zhao

x550 NIC Vf port has the capacity to set Rss hash, so device info get function should report that.

Fixes 2144f6630fca ("ixgbe: add redirection table size in device info")

---
drivers/net/ixgbe/ixgbe_ethdev.c | 1 +

1 file changed, 1 insertion(+)
drivers/net/ixgbe/ixgbe_ethdev.c +1 -0
index 03fc1f7..f7ac068 100644
@@ -3928,6 +3928,7 @@ ixgbevf_dev_info_get(struct rte_eth_dev *dev,
 	dev_info->tx_offload_capa = ixgbe_get_tx_port_offloads(dev);
 	dev_info->hash_key_size = IXGBE_HKEY_MAX_INDEX * sizeof(uint32_t);
 	dev_info->reta_size = ixgbe_reta_size_get(hw->mac.type);
+	dev_info->flow_type_rss_offloads = IXGBE_RSS_OFFLOAD_ALL;
 
 	dev_info->default_rxconf = (struct rte_eth_rxconf) {
 		.rx_thresh = {
Signature · 1 line
2.7.5

Applied to dpdk-next-net-intel.