net/ixgbe: add support for new device

Message ID 20241126031617.4164655-1-zhichaox.zeng@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Bruce Richardson
Headers
Series net/ixgbe: add support for new device |

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/intel-Functional success Functional PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-unit-amd64-testing success Testing PASS
ci/iol-compile-amd64-testing success Testing PASS
ci/iol-unit-arm64-testing success Testing PASS
ci/iol-compile-arm64-testing success Testing PASS
ci/iol-sample-apps-testing success Testing PASS
ci/iol-marvell-Functional success Functional Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-intel-Functional success Functional Testing PASS

Commit Message

Zeng, ZhichaoX Nov. 26, 2024, 3:16 a.m. UTC
Add support for loopback_mode for new device.

Signed-off-by: Zhichao Zeng <zhichaox.zeng@intel.com>
---
 drivers/net/ixgbe/ixgbe_rxtx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Comments

Xu, HailinX Nov. 26, 2024, 9:04 a.m. UTC | #1
> -----Original Message-----
> From: Zhichao Zeng <zhichaox.zeng@intel.com>
> Sent: Tuesday, November 26, 2024 11:16 AM
> To: dev@dpdk.org
> Cc: Zeng, ZhichaoX <zhichaox.zeng@intel.com>; Burakov, Anatoly
> <anatoly.burakov@intel.com>; Medvedkin, Vladimir
> <vladimir.medvedkin@intel.com>
> Subject: [PATCH] net/ixgbe: add support for new device
> 
> Add support for loopback_mode for new device.
> 
> Signed-off-by: Zhichao Zeng <zhichaox.zeng@intel.com>
> ---
Tested-by: Hailin Xu <hailinx.xu@intel.com>
  
Bruce Richardson Nov. 26, 2024, 3:50 p.m. UTC | #2
On Tue, Nov 26, 2024 at 09:04:52AM +0000, Xu, HailinX wrote:
> > -----Original Message-----
> > From: Zhichao Zeng <zhichaox.zeng@intel.com>
> > Sent: Tuesday, November 26, 2024 11:16 AM
> > To: dev@dpdk.org
> > Cc: Zeng, ZhichaoX <zhichaox.zeng@intel.com>; Burakov, Anatoly
> > <anatoly.burakov@intel.com>; Medvedkin, Vladimir
> > <vladimir.medvedkin@intel.com>
> > Subject: [PATCH] net/ixgbe: add support for new device
> > 
> > Add support for loopback_mode for new device.
> > 
> > Signed-off-by: Zhichao Zeng <zhichaox.zeng@intel.com>
> > ---
> Tested-by: Hailin Xu <hailinx.xu@intel.com>

Fixes: 316637762a5f ("net/ixgbe/base: enable E610 device")

Applied to dpdk-next-net-intel

Thanks,
/Bruce
  

Patch

diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c
index 0d42fd8a3b..7d16eb9df7 100644
--- a/drivers/net/ixgbe/ixgbe_rxtx.c
+++ b/drivers/net/ixgbe/ixgbe_rxtx.c
@@ -5359,7 +5359,8 @@  ixgbe_check_supported_loopback_mode(struct rte_eth_dev *dev)
 		     hw->mac.type == ixgbe_mac_X540 ||
 		     hw->mac.type == ixgbe_mac_X550 ||
 		     hw->mac.type == ixgbe_mac_X550EM_x ||
-		     hw->mac.type == ixgbe_mac_X550EM_a)
+		     hw->mac.type == ixgbe_mac_X550EM_a ||
+		     hw->mac.type == ixgbe_mac_E610)
 			return 0;
 
 	return -ENOTSUP;