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 155EFA0544; Tue, 11 Oct 2022 02:51:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C903142BB6; Tue, 11 Oct 2022 02:51:23 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2072.outbound.protection.outlook.com [40.107.92.72]) by mails.dpdk.org (Postfix) with ESMTP id AB99342BB3; Tue, 11 Oct 2022 02:51:21 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X4o8EWUqHWU0lAjfGIuD+kLqyEHVSmRTUD0jJKVoiaX9xzJYW/nrEnDAg38hVdEZGvLGgoD0eW5BXx4vi+YdHEgPfS5/yoFhPkIrSGCxQCQdN+YE+yFiwUj9nZfouSN6c5vV2/r6KdgkZXMM0JlrHXjdo2N/ofOz/FWvnSnkyDya7aqCUSWeh9DQ6kuZiFxnGFT1TdvPPoOMGc1hDzp89PQhnV7L2ZNUDAngisQ+OPT36ezSSwuipe3dOnwZUHIemIHPadTRsRON8gelOwNekYLuyW929DO7rDUvnKRoFEnZgzvY4J64twj1j59hYfxieg9X+itbsVv1NkkC9f9ePg== 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=m+ogRjI1dWORrX+w3k8UP1nq1UoYg/adHop8M/cJJSngWr0ty68LcYRhClPX1+7VcsvKU4YE8cQ+mMogbI8JGZPeg0nBWPCY44bXFRI1SWUqiJ1Pk0uPfcYfriUc0hoj5fzVBC8cp6iSt+uWdzAhN0RYX05V8irJV36M1rumcmaRTZ4L1ko/VVjQdCr2+oCnaWFe2KG2S1tL6BDjkxG+OC/xqpBg6AIZOjEeRLEoMbN5zw/5mo9T88HbrZMVAxP30Wk2kcV6A3HuL+jovWIv0zqFOyVuC+/KhAR1U49gGOPduKWPtuo3unoN5V64fFrulJHww645VfwKn7fBo42biQ== 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=mMMrjxecbQ38MM58r7htNnARI09rAsoYxMXVT8WVI61H4k19F/Z9JBm28x9Y4JjnqKnG96QnqgKWbs7HpCoF6lEyE2hxzp6ge7b/0rc6BetN3cGWnqYfLxvpGWPJwLmmRhIHVb+1vGiJIXy9oDus0nikaW8Yzth+9+YGG+QVsPQ= Received: from BN6PR17CA0038.namprd17.prod.outlook.com (2603:10b6:405:75::27) by CH0PR12MB5186.namprd12.prod.outlook.com (2603:10b6:610:b9::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5709.19; Tue, 11 Oct 2022 00:51:10 +0000 Received: from BN8NAM11FT028.eop-nam11.prod.protection.outlook.com (2603:10b6:405:75:cafe::28) by BN6PR17CA0038.outlook.office365.com (2603:10b6:405:75::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5709.15 via Frontend Transport; Tue, 11 Oct 2022 00:51:10 +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 BN8NAM11FT028.mail.protection.outlook.com (10.13.176.225) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5709.10 via Frontend Transport; Tue, 11 Oct 2022 00:51:10 +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.28; Mon, 10 Oct 2022 19:51:09 -0500 From: Andrew Boyer To: CC: Andrew Boyer , , Subject: [PATCH v1 02/35] net/ionic: fix up endianness for RSS Date: Mon, 10 Oct 2022 17:49:59 -0700 Message-ID: <20221011005032.47584-3-andrew.boyer@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221007174336.54354-1-andrew.boyer@amd.com> References: <20221007174336.54354-1-andrew.boyer@amd.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT028:EE_|CH0PR12MB5186:EE_ X-MS-Office365-Filtering-Correlation-Id: 16751a38-d96c-480c-fa6e-08daab22b081 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Dj+7eczTvlwgg/CUlEvaRRV20SLBR6aZwPDKgOK0zMmJFgz4bZ5iDM3rX3QrvJIBNqWziHadtVLKlKuLVXpQhiascCKpDGvyvjfZd7GQoPmb6Te3I2EexbHGMRFCTGuBvljaULIOHC3ENs3HEV7LF5NWIRDnuIBPfxYwuAdCHKeU38yAAb0owIFNj08ueeiFlnC3CVtR6e0xY2yljDlrDLWm6/fKW596yfvXbfYAs4kbopc3VQ+XlaebarrTrwuNS73fV+qgrW1seswZg6TUDmnlBW4/rBnjoZO5MYnJPYJ4OhaENxRM0XNvfrNsKIOqs5hPLHzsgD6Z52+PGbQOIFICBPuaUb4OS2lgp15hcoLvScSjiLmt8xdb9PslWVMj0jMUIQAEtzfF5cMQJs7efS2aEg15tznoS8t5TqAtncZPq+1t6ppPGD/bITL5Qs+h78AjiydPYkT6Cco9QeV9nvTy9WrRSnpJe7Ied9sHEQozqr0aXWYJVhnKykFbGfUKOBaup4oA3q5FlF7pD9v/0nlz38UMpEcluyR4ap4chDXjfZ+0FwLPx+Btt0Z+aAFDOHxahV8Qoild8Fqhf7d/gRmQBtR8H9rOxjbAvXa0q1q1F3+Uw6SgjTyT3TsU2gVJ+CQIjyQ1LvV8cvwUjlMM/CkPC2QVZu/iLpGEOqD4nX0FX6/LlPcrQ6W35XgqatZuolLgMpSxgMbcwXHYpG2aYJa7pFcO+x4o6rEHWvBAi87x6QP3c696I1lpLMgL5xEcWgPW4aqefB3DT4quLZONQwjIunak7Z0zWnaEoFaMGEM= 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)(136003)(39860400002)(346002)(396003)(376002)(451199015)(40470700004)(46966006)(36840700001)(26005)(356005)(81166007)(316002)(82740400003)(86362001)(54906003)(478600001)(6916009)(36860700001)(40460700003)(36756003)(40480700001)(47076005)(426003)(83380400001)(2616005)(6666004)(186003)(1076003)(16526019)(336012)(44832011)(4326008)(8676002)(4744005)(5660300002)(8936002)(82310400005)(70206006)(70586007)(2906002)(41300700001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2022 00:51:10.4423 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 16751a38-d96c-480c-fa6e-08daab22b081 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: BN8NAM11FT028.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB5186 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