Skip to content

Commit

Permalink
net/ixgbe: fix RETA size for VF
Browse files Browse the repository at this point in the history
[ upstream commit fb3a93f ]

Filling correct RETA table size at ixgbevf_dev_info_get,
so RETA table update will be supported for VF port.
For X540_vf and 82599_vf, since they don't support
RETA table update, set RETA size to 0.

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

Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
  • Loading branch information
zhaowei413 authored and kevintraynor committed Sep 4, 2019
1 parent c452a37 commit 945d90a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/net/ixgbe/ixgbe_ethdev.c
Expand Up @@ -3907,6 +3907,8 @@ ixgbevf_dev_info_get(struct rte_eth_dev *dev,
dev_info->rx_queue_offload_capa);
dev_info->tx_queue_offload_capa = ixgbe_get_tx_queue_offloads(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->default_rxconf = (struct rte_eth_rxconf) {
.rx_thresh = {
Expand Down Expand Up @@ -7405,6 +7407,9 @@ ixgbe_reta_size_get(enum ixgbe_mac_type mac_type) {
case ixgbe_mac_X550EM_x_vf:
case ixgbe_mac_X550EM_a_vf:
return ETH_RSS_RETA_SIZE_64;
case ixgbe_mac_X540_vf:
case ixgbe_mac_82599_vf:
return 0;
default:
return ETH_RSS_RETA_SIZE_128;
}
Expand Down

0 comments on commit 945d90a

Please sign in to comment.