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 97B2C42EA6; Tue, 18 Jul 2023 11:12:22 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D2C7742D3A; Tue, 18 Jul 2023 11:12:21 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2040.outbound.protection.outlook.com [40.107.236.40]) by mails.dpdk.org (Postfix) with ESMTP id 10BC940A84; Tue, 18 Jul 2023 11:12:20 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D2ZiE41ItJIlCW8LEetz6YHyZqLeYEYiIxNozp2qIrsSKUB4+2OGowFaw6uMAHbB66UsH5uUih1z0vxecCJC/31cFll0AykBESET4yPN9wmDH9vhg/cyYyOPkVTl0hb2//POeqkXq57z+YzEjsenXO1Db55mKKWONuvKfP8oU7BJIdiDGbX5jxnz23ArvGYfefN1KvQme2JpYFpm8HHrt2a4/AOFXQ5VgbvmRmT8BJd1QoPvzIZPaWYgSnPpedAkFHsaSkEInptW8+yZDOtbud64Ia5c96gSxt13a3WlCsNMzsLDFu08xtV2jInLQDJu/22DwelCpE3EMHLMCHC8Ow== 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=TMWgzhxhxqKGL7MG2nGQfc3G/xLcQLX7P6WkLsn2Cco=; b=MY5vRbR8+j+rXXCP/KCARkmsEVs9HqUwxkVbTTO/KFP/90TN6Srrc/q0/nUxkwY1vGStvrFd5wgp9APhcHpm6fphjsLWSTQztcyospSiwSkLXjE2PI3hQkadYbmQjzUW32s9uewQg51uB1tug33FklM2NLkJlza09/3r2Y41TZBVykCH0f1d1vyN3eOahdRkE8W3M8KoJi3s2k5NF+CLHXdQVWnoHHK91g3xirO+IZMRTuT7anEovKSUwxvtocd8pfRu7fiHJYcHCWyC0NuJUBXXKyOsyiOKzmOiwbCC96BMf4B9ub5/kT0c77DDyiis+5m9XJhOJBpRAxqCabXw+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; 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=TMWgzhxhxqKGL7MG2nGQfc3G/xLcQLX7P6WkLsn2Cco=; b=m2aXgs9LwLVRW0gnaTc5XSqsAAc7WhzD7XYWf7w3q/LYiQCCUfIauLvqW9DGEMMut3Tgw4byYuCwXRYuVVGCYifo6VVbzc9LrEAC5j4ekNrCchI1ILrq0GGJfreKhUrtlOAFP99CIgYo690h6TFZtoebcqOg8xO2WEcl9cg723mV5ZX6UT7QjyYn3xsS10F2CtH8A0Y0tOZ0hl/fsB6cwdEXGMmWACtpNeOatDq6EggouaVkSHcrSwzgH7fuVqU8+Eq0z8qoLN1FrnmE3UzoUFSfV4attT9RTHRU6/rw5pocshzl5tuuKNKgpC5a/bpAkGIwzrEWyTZG7BJyTfQfwA== Received: from DM6PR12MB3753.namprd12.prod.outlook.com (2603:10b6:5:1c7::18) by PH0PR12MB7960.namprd12.prod.outlook.com (2603:10b6:510:287::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6588.33; Tue, 18 Jul 2023 09:12:18 +0000 Received: from DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::d334:fbf1:5059:a0ec]) by DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::d334:fbf1:5059:a0ec%6]) with mapi id 15.20.6588.031; Tue, 18 Jul 2023 09:12:17 +0000 From: Slava Ovsiienko To: Alexander Kozyrev , "dev@dpdk.org" CC: "stable@dpdk.org" , Raslan Darawsheh , Matan Azrad , Michael Baum Subject: RE: [PATCH v2] net/mlx5: fix MPRQ stride size to accommodate the headroom Thread-Topic: [PATCH v2] net/mlx5: fix MPRQ stride size to accommodate the headroom Thread-Index: AQHZk/I7yOuhLokF9ki1T4fyssZuI6+/h+WA Date: Tue, 18 Jul 2023 09:12:17 +0000 Message-ID: References: <20230531184303.946971-1-akozyrev@nvidia.com> <20230531190018.948436-1-akozyrev@nvidia.com> In-Reply-To: <20230531190018.948436-1-akozyrev@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM6PR12MB3753:EE_|PH0PR12MB7960:EE_ x-ms-office365-filtering-correlation-id: 16ab6d08-5632-455b-11e0-08db876f1580 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: v7nsoQ7Nmi7949bUbui31bKXrrHqfo+6PJryaJ23k/UzvVCnG0QIMKaDuep23aVqXWTWp7m12i37Hhb+xtI6RVKt9d2giUQDCgJajGK0kGGHluqikj73T9B5fI8zqqnMMEByS/nJkaTK6Anfm3ktNtnv+zLd5Z3HbaiDeGLTfbKHmBOx+qv8wMKXx9vEqiUX9k+9cZ5lGrUOJbxPBU5YgKarb+FD+FB1bU+lMkzWlSS76XCxA40+rn2nZfKr6QPRxlyZa0n1UFqt+GrJXNWok12RjX0yzTH6R/ImMxPZ//Lqu/H1xJjMgsLaIjBpVpv+9ySXLR7e/mNreurfI1lXiyjUVftv+VSIXQFXdyahg6IdfcxAkmLas7BVwMdWbTX58nsWUuXXKWPq42gXjOuxRyD1Kdsx/rlJm3OglfTRnwy27fe+sfSj19Rg2RlKSUXwjVGpARF8wiPcYmtCE+0z3RzZX8qTuopaa1ESsqAlVHnBIKHoUTZl/RO5nI/S90o7em1c9qjXH56xmEn5xuBG5ctll1Xxjbs5xpnh2P/5AoHYV8vb+kEGmuX9bDw4+b/M5L3YcFuuilEXbUoLIvKC6U1uvPt06AcBwXHmRmqN8wYAdV+wUVvnWuYdDkiPH0fT x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB3753.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(396003)(136003)(346002)(39860400002)(376002)(366004)(451199021)(86362001)(2906002)(4744005)(33656002)(38070700005)(55016003)(9686003)(186003)(83380400001)(53546011)(6506007)(26005)(107886003)(38100700002)(122000001)(54906003)(7696005)(110136005)(76116006)(450100002)(4326008)(66946007)(66556008)(66476007)(66446008)(64756008)(316002)(478600001)(71200400001)(5660300002)(52536014)(8936002)(41300700001)(8676002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?SHAmyYXfe0aqMCBQf4EA76oBK6rY+O+al1OtkGib/l9UH4O6oGIjqAK3CDrL?= =?us-ascii?Q?7unm0stsXP+1K84ShUju6pmuGm9wzp8UHKI7IWEJpzljGhMwN0HmRvOnfddK?= =?us-ascii?Q?60aBf5m/OzadE3WcUMPrnZCD3EG1SsaAlhIWJ4TwqMj/znnwSyphAhGK6Ev6?= =?us-ascii?Q?TSA2hujHo7ZXzLjCIuYEZRRtg3qsqqgqsdSnqJV7WR7STFc+pMydr1IHi/mI?= =?us-ascii?Q?e1HaIUyqy37A0MID9PHagjKbb5iUsube0b8ja+BtRtTn3w6xRz1WT9Z/WooT?= =?us-ascii?Q?FRzkO79hOxt/nMph3Vt6wxfpxZWRsUd9iM+sp0iBegxRkgXlhC33Xo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1M4xSK9J2+7foukXx+pc9WHehrjJiezy+E+BdKD0rW7Xyf7Uw7EBwpr?= =?us-ascii?Q?tcgW7ckObItF1sRP7RN7yChsh/Mn+hb9weiKiyibLR0VArjkebEuoBwNW0g0?= =?us-ascii?Q?XB6CFtUGO2glNwBxXdnoRJPXBDchQI6sMMnGHDrrfmMUs4M4+koW7u4uEB+z?= =?us-ascii?Q?EpTIhJ34wa92pXS55WpMTKe7X6y5NUoHwLrTcVf47I9NgShTwVL6WW4Bg17C?= =?us-ascii?Q?f6OG7s1at/Sb+U0o6yHDprLaxHB+FpImd3Zkn+7E+DOLxpk2Qn/fMPyIlgPW?= =?us-ascii?Q?SAATN+lbRUfoAl8QPESDT+0ESh5r4Gl3tdhEGsWjih/a0HE+ICI/tvO6j342?= =?us-ascii?Q?rA0zLmFMY6ivRHyNYvJmSJU+kA0nt2hvqX9ivuaS?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB3753.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 16ab6d08-5632-455b-11e0-08db876f1580 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jul 2023 09:12:17.4829 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: lbPlIAttNbazsIx7bZVgQEprwMmwqROuye/54ZziPaJy+iff5eovW+S0moBP57uiyHULRIsYe++CEuxW/ELrjw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB7960 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 > -----Original Message----- > From: Alexander Kozyrev > Sent: Wednesday, May 31, 2023 10:00 PM > To: dev@dpdk.org > Cc: stable@dpdk.org; Raslan Darawsheh ; Slava > Ovsiienko ; Matan Azrad ; > Michael Baum > Subject: [PATCH v2] net/mlx5: fix MPRQ stride size to accommodate the > headroom >=20 > The space for the headroom is reserved at the end of every MPRQ stride fo= r > the next packet. The Rx burst logic is to copy any overlapping packet dat= a if > there is an overlap with this reserved headroom space. > But it is not possible if the headroom size is bigger than the whole stri= de. > Adjust the stride size to make sure the stride size is greater than the > headroom size. >=20 > Fixes: 34776af600df ("net/mlx5: fix MPRQ stride devargs adjustment") >=20 > Signed-off-by: Alexander Kozyrev Acked-by: Viacheslav Ovsiienko