net/ixgbe: fix queue interrupt for E610

Message ID 20241106085339.1379106-1-yuanx.wang@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Bruce Richardson
Headers
Series net/ixgbe: fix queue interrupt for E610 |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/loongarch-compilation success Compilation OK
ci/loongarch-unit-testing success Unit Testing PASS
ci/Intel-compilation success Compilation OK
ci/intel-Testing success Testing PASS
ci/iol-broadcom-Performance success Performance Testing PASS
ci/github-robot: build success github build: passed
ci/intel-Functional success Functional PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-marvell-Functional success Functional Testing PASS
ci/iol-unit-arm64-testing success Testing PASS
ci/iol-unit-amd64-testing success Testing PASS
ci/iol-compile-amd64-testing success Testing PASS
ci/iol-compile-arm64-testing success Testing PASS
ci/iol-sample-apps-testing success Testing PASS

Commit Message

Yuan Wang Nov. 6, 2024, 8:53 a.m. UTC
Interrupt mode is not working on E610 device because
this device doesn't enable the queue interrupt mapping,
this patch fixed the issue.

Fixes: 316637762a5f ("net/ixgbe/base: enable E610 device")
Cc: stable@dpdk.org

Signed-off-by: Yuan Wang <yuanx.wang@intel.com>
---
 drivers/net/ixgbe/ixgbe_ethdev.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
  

Comments

Bruce Richardson Nov. 8, 2024, 10:28 a.m. UTC | #1
On Wed, Nov 06, 2024 at 04:53:39PM +0800, Yuan Wang wrote:
> Interrupt mode is not working on E610 device because
> this device doesn't enable the queue interrupt mapping,
> this patch fixed the issue.
> 
> Fixes: 316637762a5f ("net/ixgbe/base: enable E610 device")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Yuan Wang <yuanx.wang@intel.com>

Acked-by: Bruce Richardson <bruce.richardson@intel.com>
  
Bruce Richardson Nov. 8, 2024, 10:34 a.m. UTC | #2
On Fri, Nov 08, 2024 at 10:28:40AM +0000, Bruce Richardson wrote:
> On Wed, Nov 06, 2024 at 04:53:39PM +0800, Yuan Wang wrote:
> > Interrupt mode is not working on E610 device because
> > this device doesn't enable the queue interrupt mapping,
> > this patch fixed the issue.
> > 
> > Fixes: 316637762a5f ("net/ixgbe/base: enable E610 device")
> > Cc: stable@dpdk.org
> > 
> > Signed-off-by: Yuan Wang <yuanx.wang@intel.com>
> 
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>

Applied to dpdk-next-net-intel,

thanks,
/Bruce
  

Patch

diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c
index 7da2ccf6a8..cfe75cb438 100644
--- a/drivers/net/ixgbe/ixgbe_ethdev.c
+++ b/drivers/net/ixgbe/ixgbe_ethdev.c
@@ -5974,7 +5974,8 @@  ixgbe_set_ivar_map(struct ixgbe_hw *hw, int8_t direction,
 			(hw->mac.type == ixgbe_mac_X540) ||
 			(hw->mac.type == ixgbe_mac_X550) ||
 			(hw->mac.type == ixgbe_mac_X550EM_a) ||
-			(hw->mac.type == ixgbe_mac_X550EM_x)) {
+			(hw->mac.type == ixgbe_mac_X550EM_x) ||
+			(hw->mac.type == ixgbe_mac_E610)) {
 		if (direction == -1) {
 			/* other causes */
 			idx = ((queue & 1) * 8);
@@ -6109,6 +6110,7 @@  ixgbe_configure_msix(struct rte_eth_dev *dev)
 		case ixgbe_mac_X540:
 		case ixgbe_mac_X550:
 		case ixgbe_mac_X550EM_x:
+		case ixgbe_mac_E610:
 			ixgbe_set_ivar_map(hw, -1, 1, IXGBE_MISC_VEC_ID);
 			break;
 		default: