From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6D29645DA3; Mon, 25 Nov 2024 10:36:03 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 47D91402C9; Mon, 25 Nov 2024 10:36:03 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) by mails.dpdk.org (Postfix) with ESMTP id DD55F400D6 for ; Mon, 25 Nov 2024 10:36:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1732527362; x=1764063362; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=S86LbR/TXQAxWDa7SFNzQ7fP+MsFlsC6OEDkoe0k/kk=; b=IAp+I7rBnIMHP5bKAiNvXrj80VEMpDSrVk2dLskL/nWDr/WTtdlettU5 bfNr5Xl4YyproRZOtn8/MpdJlPjmaOfUPBfQxKmpIyG2yjOs/HMusC4tG 20yONnn8IYzbanwyH5oAFe+pBGgl3CMqdI+jZIalyVwHFkN1o2w0sOzyE bCRxuJlEWAqdrj1XN7QCJl5z1OjeqFXgEpwQCnpKGoZ9MwUGPoWviYdCE BJiAYCfvzdqXmutHdObNQir/6FbI8N9i3UszSDfjBlFONAoRJb1kDk6bv UtK6XoHBkn9mAN7TqbdcFVrscRsGrKGiduV3SkxdWeNul8gm/EhRhM1rt g==; X-CSE-ConnectionGUID: G94bKeuDTtWCN+7xx3UN6g== X-CSE-MsgGUID: oWuJBSVAQdmmuTT38OvyzQ== X-IronPort-AV: E=McAfee;i="6700,10204,11266"; a="43684139" X-IronPort-AV: E=Sophos;i="6.12,182,1728975600"; d="scan'208";a="43684139" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2024 01:36:01 -0800 X-CSE-ConnectionGUID: 02rKcteRSuuMmCOFcV3Prg== X-CSE-MsgGUID: +TwSO6PoSqq1LdHuy2GmAw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,182,1728975600"; d="scan'208";a="95994278" Received: from unknown (HELO localhost.localdomain) ([10.239.252.210]) by fmviesa004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2024 01:35:59 -0800 From: Yuan Wang To: anatoly.burakov@intel.com, vladimir.medvedkin@intel.com Cc: dev@dpdk.org, Yuan Wang Subject: [PATCH] net/ixgbe: fix RSS redirection table configuration for E610 Date: Mon, 25 Nov 2024 17:35:45 +0800 Message-ID: <20241125093545.394900-1-yuanx.wang@intel.com> X-Mailer: git-send-email 2.43.5 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Add labels to get the correct table size and register address for RETA. Fixes: 316637762a5f ("net/ixgbe/base: enable E610 device") Signed-off-by: Yuan Wang --- drivers/net/ixgbe/ixgbe_ethdev.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index eb431889c3..bed4374ad1 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -7238,10 +7238,12 @@ ixgbe_reta_size_get(enum ixgbe_mac_type mac_type) { case ixgbe_mac_X550: case ixgbe_mac_X550EM_x: case ixgbe_mac_X550EM_a: + case ixgbe_mac_E610: return RTE_ETH_RSS_RETA_SIZE_512; case ixgbe_mac_X550_vf: case ixgbe_mac_X550EM_x_vf: case ixgbe_mac_X550EM_a_vf: + case ixgbe_mac_E610_vf: return RTE_ETH_RSS_RETA_SIZE_64; case ixgbe_mac_X540_vf: case ixgbe_mac_82599_vf: @@ -7257,6 +7259,7 @@ ixgbe_reta_reg_get(enum ixgbe_mac_type mac_type, uint16_t reta_idx) { case ixgbe_mac_X550: case ixgbe_mac_X550EM_x: case ixgbe_mac_X550EM_a: + case ixgbe_mac_E610: if (reta_idx < RTE_ETH_RSS_RETA_SIZE_128) return IXGBE_RETA(reta_idx >> 2); else @@ -7264,6 +7267,7 @@ ixgbe_reta_reg_get(enum ixgbe_mac_type mac_type, uint16_t reta_idx) { case ixgbe_mac_X550_vf: case ixgbe_mac_X550EM_x_vf: case ixgbe_mac_X550EM_a_vf: + case ixgbe_mac_E610_vf: return IXGBE_VFRETA(reta_idx >> 2); default: return IXGBE_RETA(reta_idx >> 2); -- 2.43.0