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 E50B0A0C4D; Tue, 27 Jul 2021 08:46:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5E245410F8; Tue, 27 Jul 2021 08:46:57 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2087.outbound.protection.outlook.com [40.107.93.87]) by mails.dpdk.org (Postfix) with ESMTP id CD217410FA for ; Tue, 27 Jul 2021 08:46:55 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kjJzVmcykn287RT7fymMtgsJAyuZi/x0hn/B0iswO3ct+tHu04AKaBokuUwmSsxz2bG5DG81mKtVuOxJ4eEYk9PTnWnpGbOk3bPoqnfEw/FcXAfzAExlZNIdiMsgIGNRH8Z7iTTNncCx9QuM6bMMpeZm/9IPhWKSlNtUP6rN6tV4iy+17H5LawXinQkcpcEfTGIcNEV2xPFvUo2vT85QiOAP21Ckb8DIfuKfx80wudl1ju0rZRd/QbehDZNbG7M+08o+CiBuVz+o4tXiQlIhssoQTAFrq+fOdI0rO7slafuVBULkrFUf+QyAqx17oLy4eSpsJiZ9tLngucdoseDBnw== 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-SenderADCheck; bh=sNmyhDv7m+Ys4ZiKVvlcECgPdtwdf+AghSAmHK/KPpo=; b=l6R2wjDazhMPeozo+DErxragl3ekE+XIXPMOt3vEPBnOq4LTGF0APvqtADYBLyqm1C9vFpR2JUOBN8IhsotBVxT/C/fwD0o8nelhNqpfUKBtHKYhcJ7VK6Enlla6aRuH2EUsfF8rwiDjl5sQIa0i9woCSOMqqfc/dg3xBMOi1cGLuLD8x4f6EtkPo9qNxWb7elwTfaAaye3Zx3KpxJM0y+vAdGlB3ZW2anFCX7aEbzwovM2zaxdDoEu5HS7w8uwCkCRXLU1A+SZSsUNQdNWZiim99QmsMFD0eaNlXYsgQIelFFgd0qniWsFcZgwx6myoKtSmb+Z8FQ2GrDrsEs4mFA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sNmyhDv7m+Ys4ZiKVvlcECgPdtwdf+AghSAmHK/KPpo=; b=nHtdBN7U31s5RfBwddjP174ljoz01ZgwASnCljod8kmz/YitqgYPu+2PWHrn4JW2NXh+kxIixHRLzNbw4vYkze7fpjZpuDswsWiCQ7YTQkFfqsgm5jeMURhWuEbHucRQVf+eYrY/rinq6RBhBkvlQPvTDxeNEBwvAl/VwvMpXAGi3tK5IJwQFP3CORv8iIGltOMbwepXperbJ6KWJsA54KFH8tvnyFe+LzE3DyFrECMWVZREoCLtYIyKSdrqO+PKHgOZPOpXVmelbDp5yhq8aR2LWUlo35b4sfEuPqaacAMoTu3GQkoMoJ37BM1ytzJ7PYScNCwd1MKnak/DYOg3Iw== Received: from BN8PR15CA0029.namprd15.prod.outlook.com (2603:10b6:408:c0::42) by BN7PR12MB2835.namprd12.prod.outlook.com (2603:10b6:408:30::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.25; Tue, 27 Jul 2021 06:46:52 +0000 Received: from BN8NAM11FT023.eop-nam11.prod.protection.outlook.com (2603:10b6:408:c0:cafe::1e) by BN8PR15CA0029.outlook.office365.com (2603:10b6:408:c0::42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.26 via Frontend Transport; Tue, 27 Jul 2021 06:46:52 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by BN8NAM11FT023.mail.protection.outlook.com (10.13.177.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4352.24 via Frontend Transport; Tue, 27 Jul 2021 06:46:52 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 27 Jul 2021 06:46:35 +0000 From: Lior Margalit To: Matan Azrad CC: Lior Margalit , Date: Tue, 27 Jul 2021 09:46:18 +0300 Message-ID: <20210727064620.880417-1-lmargalit@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210713125442.1366424-1-lmargalit@nvidia.com> References: <20210713125442.1366424-1-lmargalit@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0be8f623-b504-4f94-ae18-08d950ca511c X-MS-TrafficTypeDiagnostic: BN7PR12MB2835: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7EHw5EagF0bMO7SrjKKLMJTx3GvdP6ogO0HvfUUipc64fqhjg2ZCuCRyJd+IZGXezjahii/o55zhDRvuXSlTJ88BTUst9pUfSBDYzZUV2DBVY4dDuDOa0OeCsuf5X67XTTakSp/oQsuG7QrSLbEeXmOrLLLp/MxxXXVN88JcnO2n5OSliOkYU57POjaUQ0znFrKmcMRDgoGUT2vO42+nYuUtAy6u4VXUBRTsCVi6Fm2m7h5XXb5H78XsoaSJIqOWmWTPtiD0ncOGLL3Es7a3Rke4wUahn5DaR18amlJ9uweJtbtKVzlcEEvC8SGxv/xXSPQ7ccAFPsKnWgm+Bsmctkwk2Zb2WcGZ+P+NW4OYJYCSRwo/WuLhey2Vrz0NnKsilm4AshAHmqCvpY62E0e6tutXLCgEfXGef+KKYVX703F8qslktKTJ7tnSp17ACDfAjV7uDHUvseFVHVss7Ah4MOOK6zO1E5T8dThUGXXpkVKqM+UrGyJFMyP5YSd25kCBqAa/mJFc7pBypy2n4RbMB/Kh1QPPVrzy0wtRKths0tvpJVZjY2C3CHl3OuAgbtACwo8whrDr6zO9PGKvYzEv+lR4bQH26PeKXKDAAIIsvAwJkm2hdKzcmK7N6et1SYeW2ET0nJl5xb4svPVsBgMeLNiMnq1CO5wxm9qwUjsjEVaeSAAY5rpI6QrlCI/uPLMQ X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(376002)(136003)(346002)(396003)(39860400002)(36840700001)(46966006)(2906002)(4744005)(55016002)(6862004)(47076005)(4326008)(186003)(7636003)(8936002)(6666004)(70586007)(82740400003)(54906003)(1076003)(70206006)(37006003)(83380400001)(8676002)(316002)(36906005)(36860700001)(7696005)(26005)(82310400003)(6636002)(356005)(336012)(16526019)(86362001)(426003)(6286002)(2616005)(5660300002)(478600001)(36756003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jul 2021 06:46:52.1467 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0be8f623-b504-4f94-ae18-08d950ca511c X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT023.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR12MB2835 Subject: [dpdk-dev] [PATCH v2 0/2] net/mlx5: prevent RSS distribution by L4 proto alone 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 Sender: "dev" Set proper selection flags for the RX hash and queue num in case of mismatch between the L3 proto of the RSS hash types and the flow rule pattern. v2: * Same code changes as v1, but separated into two commits. Lior Margalit (2): net/mlx5: fix RSS L4 proto selection flags settings net/mlx5: fix queue num in RSS desc drivers/net/mlx5/mlx5_flow_dv.c | 14 +++++++++++--- drivers/net/mlx5/mlx5_flow_verbs.c | 10 ++++++---- 2 files changed, 17 insertions(+), 7 deletions(-) -- 2.25.1