Skip to contentSkip to conversation

net/ixgbe: fix missing checks for E610 VFs

PATCH Applied Bruce Richardson 3 participants 3 messages Mar 21, 2025 – Mar 23, 2025 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/ixgbe: fix missing checks for E610 VFs

A number of places in the ixgbe code check for a virtual function, but these checks were missing the identifier for the E610 VF. Add them into the conditionals.

Fixes f678f3dea8fd ("net/ixgbe: fix missing VF PCI ID")
---
 drivers/net/intel/ixgbe/ixgbe_rxtx.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/intel/ixgbe/ixgbe_rxtx.c +4 -0
index 3b7a6a6f0e..0c8a9ec763 100644
@@ -2767,6 +2767,7 @@ ixgbe_dev_tx_queue_setup(struct rte_eth_dev *dev,
 	 * Modification to set VFTDT for virtual function if vf is detected
 	 */
 	if (hw->mac.type == ixgbe_mac_82599_vf ||
+	    hw->mac.type == ixgbe_mac_E610_vf ||
 	    hw->mac.type == ixgbe_mac_X540_vf ||
 	    hw->mac.type == ixgbe_mac_X550_vf ||
 	    hw->mac.type == ixgbe_mac_X550EM_x_vf ||
@@ -2987,6 +2988,7 @@ ixgbe_is_vf(struct rte_eth_dev *dev)
 	case ixgbe_mac_X550_vf:
 	case ixgbe_mac_X550EM_x_vf:
 	case ixgbe_mac_X550EM_a_vf:
+	case ixgbe_mac_E610_vf:
 		return 1;
 	default:
 		return 0;
@@ -3153,6 +3155,7 @@ ixgbe_dev_rx_queue_setup(struct rte_eth_dev *dev,
 	 * Modified to setup VFRDT for Virtual Function
 	 */
 	if (hw->mac.type == ixgbe_mac_82599_vf ||
+	    hw->mac.type == ixgbe_mac_E610_vf ||
 	    hw->mac.type == ixgbe_mac_X540_vf ||
 	    hw->mac.type == ixgbe_mac_X550_vf ||
 	    hw->mac.type == ixgbe_mac_X550EM_x_vf ||
@@ -5835,6 +5838,7 @@ ixgbevf_dev_rx_init(struct rte_eth_dev *dev)
 	case ixgbe_mac_X550_vf:
 	case ixgbe_mac_X550EM_x_vf:
 	case ixgbe_mac_X550EM_a_vf:
+	case ixgbe_mac_E610_vf:
 		switch (dev->data->dev_conf.rxmode.mq_mode) {
 		case RTE_ETH_MQ_RX_RSS:
 		case RTE_ETH_MQ_RX_DCB_RSS:
Signature · 1 line
2.45.2
Acked-by on v1 1/1
#1 lore raw
Quoted 48 lines · Bruce Richardson

A number of places in the ixgbe code check for a virtual function, but these checks were missing the identifier for the E610 VF. Add them into the conditionals.

Fixes f678f3dea8fd ("net/ixgbe: fix missing VF PCI ID")
---
  drivers/net/intel/ixgbe/ixgbe_rxtx.c | 4 ++++
  1 file changed, 4 insertions(+)
drivers/net/intel/ixgbe/ixgbe_rxtx.c +4 -0
index 3b7a6a6f0e..0c8a9ec763 100644
@@ -2767,6 +2767,7 @@ ixgbe_dev_tx_queue_setup(struct rte_eth_dev *dev,
  	 * Modification to set VFTDT for virtual function if vf is detected
  	 */
  	if (hw->mac.type == ixgbe_mac_82599_vf ||
+	    hw->mac.type == ixgbe_mac_E610_vf ||
  	    hw->mac.type == ixgbe_mac_X540_vf ||
  	    hw->mac.type == ixgbe_mac_X550_vf ||
  	    hw->mac.type == ixgbe_mac_X550EM_x_vf ||
@@ -2987,6 +2988,7 @@ ixgbe_is_vf(struct rte_eth_dev *dev)
  	case ixgbe_mac_X550_vf:
  	case ixgbe_mac_X550EM_x_vf:
  	case ixgbe_mac_X550EM_a_vf:
+	case ixgbe_mac_E610_vf:
  		return 1;
  	default:
  		return 0;
@@ -3153,6 +3155,7 @@ ixgbe_dev_rx_queue_setup(struct rte_eth_dev *dev,
  	 * Modified to setup VFRDT for Virtual Function
  	 */
  	if (hw->mac.type == ixgbe_mac_82599_vf ||
+	    hw->mac.type == ixgbe_mac_E610_vf ||
  	    hw->mac.type == ixgbe_mac_X540_vf ||
  	    hw->mac.type == ixgbe_mac_X550_vf ||
  	    hw->mac.type == ixgbe_mac_X550EM_x_vf ||
@@ -5835,6 +5838,7 @@ ixgbevf_dev_rx_init(struct rte_eth_dev *dev)
  	case ixgbe_mac_X550_vf:
  	case ixgbe_mac_X550EM_x_vf:
  	case ixgbe_mac_X550EM_a_vf:
+	case ixgbe_mac_E610_vf:
  		switch (dev->data->dev_conf.rxmode.mq_mode) {
  		case RTE_ETH_MQ_RX_RSS:
  		case RTE_ETH_MQ_RX_DCB_RSS:
Signature · 2 lines
Regards,
Vladimir