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 736BDA0560; Tue, 18 Oct 2022 21:42:08 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 74D2341147; Tue, 18 Oct 2022 21:42:00 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2040.outbound.protection.outlook.com [40.107.244.40]) by mails.dpdk.org (Postfix) with ESMTP id 1179F41145; Tue, 18 Oct 2022 21:41:58 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S9Tnrk7PdJlTqHBGL7sKBmVpHefaPR6JZdyzMQFgWzClaY01KD7ntp2b+eNY/1or1W3Z/Dbdf32cQAByVRlA/BCHkSG9iP7LK2AMP+XwYlFZNCbO+2cKVCx6z0C1YUAzcEpu7uSAqbEqR+UfrS9gGluIbVC7Z8GcLOUn3BDN7zXK8AD7Jna3Qh5aSEpdr70TnP/E8mpVpzcoqzfzTZfzcxIDh0qsY2+MtVwg4hDF6UDRFBJJ40cRpkxqelGt+MmqGpGAQUSZbCuudJWWcImsXcKFNKRIVpxVy9j6h2mgYT78M6afTJMDMleDtKUsz7l/8Po0Y3ts3L3vHZ2NaY07jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=wv+SJFHZtoF0cbL6kOsGC6q4yIamc00xvELMlpsSuVw=; b=OJqbcpH3NqayCtBeCgcGhTcGVHps/cqzTvavFr491JPyQC/w/trqGP+lDVht70vB9nHJcCQHizx8A1cJ3U27XY6hI1eGHXCHq9zMWbBe+W/+M0ByhGlFpzJg1WSHUSj6ghQO39weLPc2eRnyoIAQamkyCSZGySFSNfbH8aygtqEgh9PgX8bbZJxHYibWIagUeMMtpc3wWkjrv7uQcpWtJiZXGTX0glf2HusJfZr0IJG9pcSYQNN6nbUaql1GRj73gosizeqYQJYnhZA5NJZ7v9LGUqj6DhQVA2U3zvP6J7FJy/CiPA75YZBo39+xb66HrAgP3vZCo+vmDDsS8GgCyg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=dpdk.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wv+SJFHZtoF0cbL6kOsGC6q4yIamc00xvELMlpsSuVw=; b=iub/aZitoeyrZsqEGyf9QBbT4+5vTk0Q/+8EmO2UZqk9Mf+3WXTJo6H2uSfL1Jc3O9c9s1NNJmLxt1gbxwWerl5kuehfj/CBgu9vRzChVc4BEia25SnFuU0QByemwiFGsU61NqWBZejxU6+VLjLOs+dsQRlbwTReypXh8HoVolM= Received: from BN0PR04CA0129.namprd04.prod.outlook.com (2603:10b6:408:ed::14) by DM4PR12MB5986.namprd12.prod.outlook.com (2603:10b6:8:69::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.33; Tue, 18 Oct 2022 19:41:56 +0000 Received: from BN8NAM11FT037.eop-nam11.prod.protection.outlook.com (2603:10b6:408:ed:cafe::ab) by BN0PR04CA0129.outlook.office365.com (2603:10b6:408:ed::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.30 via Frontend Transport; Tue, 18 Oct 2022 19:41:55 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BN8NAM11FT037.mail.protection.outlook.com (10.13.177.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5746.16 via Frontend Transport; Tue, 18 Oct 2022 19:41:55 +0000 Received: from driver-dev1.pensando.io (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 18 Oct 2022 14:41:54 -0500 From: Andrew Boyer To: CC: Andrew Boyer , , Subject: [PATCH v2 02/36] net/ionic: fix up endianness for RSS Date: Tue, 18 Oct 2022 12:40:57 -0700 Message-ID: <20221018194131.23006-3-andrew.boyer@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221011005032.47584-1-andrew.boyer@amd.com> References: <20221011005032.47584-1-andrew.boyer@amd.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT037:EE_|DM4PR12MB5986:EE_ X-MS-Office365-Filtering-Correlation-Id: 59b71ed2-efcf-4518-b2a7-08dab140d051 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ddrxyX4bhDvKVZUx7yUM8oCmB0Fq9YDjy6rX10ERTnmK7hglkl4cdk8WmzqN5ZQz9viiM219Rc+fo++N88Z+5Y0T/CXpSi+qegWqJBt2kESTgCkIAm/xMPqSXY83Tv7tQxUEhcgnTMpX9QF6MJnVlokNHoO72yhAzAKF5gwnaUGheQ3usNlfnTqu4qXdrUDzpnLaBcdzMNLeXNDP8fpBbow/ITgGLyhf3QiBW6FQQ4+tiXkAFgx1xRiWhCVDTFcmrR5SABhqQqhdikZM+CCd+7NQkH9uT8tr9JQ3fGeD3uD2EoiH84koVUgOOnVnHiOsSgDuRF4iJFBxv9xA6fF0BYQmWJTlro4GD6uh1Of4PGF49FKF0/EE5Wbl8wG6mKnypdu08/8dAs8uc2gEFoYzokFbVS76asY7fU6Sz60d7DkMUCxd3LEDjeW7yYGWxEreB8Qewy7Tdf1aHqNdZqkZ/I0ZUDhJly+NX/FWHhJc0IIPlFJUVEl+BKuLA5P6VU2JGZe0RVk4LwEJg5duvVNFa5GPDyCAb8BbL5f5TBm5bUUXnfuX/pRG3mA4rR1W0eoTaeoshhS5+clFXfIAMs+A3yL+PR7p/6LjXpY6n8I3g+bRUSwL7GZ7Xa8ztYJsLazR7DUfWiFFIvYNZzD2XNS1f7AroF+KYuVKNXNM1PlwhZbzRX1y7QTlV40sPZEtjemamAffNIM/r+fKxtZUc9g9Q8BuuBS73futUAte3RWcpY/IIa+CE5Aa09twvKTT5d0Ix8SviwheNFzN3u//Ty9JqphfbBo309ziiP+TGq6YJKA= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230022)(4636009)(376002)(39860400002)(346002)(136003)(396003)(451199015)(36840700001)(46966006)(40470700004)(316002)(54906003)(6916009)(70586007)(8676002)(70206006)(4326008)(478600001)(44832011)(5660300002)(356005)(81166007)(2616005)(186003)(41300700001)(16526019)(2906002)(1076003)(26005)(8936002)(36756003)(83380400001)(336012)(426003)(47076005)(82740400003)(36860700001)(4744005)(86362001)(82310400005)(40460700003)(40480700001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2022 19:41:55.6916 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 59b71ed2-efcf-4518-b2a7-08dab140d051 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT037.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5986 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 This field needs to be LE when talking to the FW. Fixes: 22e7171bc63b ("net/ionic: support RSS") Cc: cardigliano@ntop.org Cc: stable@dpdk.org Signed-off-by: Andrew Boyer --- drivers/net/ionic/ionic_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ionic/ionic_rxtx.c b/drivers/net/ionic/ionic_rxtx.c index af2d89f9fa..665d085823 100644 --- a/drivers/net/ionic/ionic_rxtx.c +++ b/drivers/net/ionic/ionic_rxtx.c @@ -843,7 +843,7 @@ ionic_rx_clean(struct ionic_rx_qcq *rxq, /* RSS */ pkt_flags |= RTE_MBUF_F_RX_RSS_HASH; - rxm->hash.rss = cq_desc->rss_hash; + rxm->hash.rss = rte_le_to_cpu_32(cq_desc->rss_hash); /* Vlan Strip */ if (cq_desc->csum_flags & IONIC_RXQ_COMP_CSUM_F_VLAN) { -- 2.17.1