From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-eopbgr810083.outbound.protection.outlook.com [40.107.81.83]) by dpdk.org (Postfix) with ESMTP id 1E3B82BD5; Tue, 13 Nov 2018 11:32:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WNsdhiK01uQL1WjLsAWjSLF7BVwaJtx5tb179Z6PHys=; b=E4/jHUnwA1NqTlqvdnZ+eosZJw1Av3j65zHX13ZTN37KJrMloKnnS8FHlVhI8USJy0pEF60hySD2FK4XaHLwp23QX5C5L18SSVQMITJVyLEaVPPjavTMRBYOmjyBkTG9o22KEdt2g8CvgnXC5ImVW5tj4hXDQLBTK/8BxxMYen8= Received: from SN6PR07MB5008.namprd07.prod.outlook.com (52.135.121.74) by SN6PR07MB4816.namprd07.prod.outlook.com (52.135.70.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.26; Tue, 13 Nov 2018 10:32:28 +0000 Received: from SN6PR07MB5008.namprd07.prod.outlook.com ([fe80::913d:1a21:cb40:16de]) by SN6PR07MB5008.namprd07.prod.outlook.com ([fe80::913d:1a21:cb40:16de%3]) with mapi id 15.20.1294.045; Tue, 13 Nov 2018 10:32:28 +0000 From: Jerin Jacob To: "Joseph, Anoob" CC: Ferruh Yigit , "Jacob, Jerin" , "Saxena, Nitin" , "Athreya, Narayana Prasad" , "dev@dpdk.org" , "stable@dpdk.org" Thread-Topic: [PATCH] net/octeontx: fix mbuf corruption with larger priv sizes Thread-Index: AQHUerC23gNE6BW370K40cwRvsuB0KVNguuA Date: Tue, 13 Nov 2018 10:32:28 +0000 Message-ID: <20181113103215.GA6613@jerin> References: <1542045165-31148-1-git-send-email-anoob.joseph@caviumnetworks.com> In-Reply-To: <1542045165-31148-1-git-send-email-anoob.joseph@caviumnetworks.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [111.93.218.67] x-clientproxiedby: BM1PR01CA0101.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00::17) To SN6PR07MB5008.namprd07.prod.outlook.com (2603:10b6:805:ad::10) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; SN6PR07MB4816; 6:TzPpND0qid26yVGyXIn/bK5KtSfY2r6AaJD2lWJIJkZWqSQOslfcMbym3JRXTCr5xQXDzqaIYdSNBXmbdcBWJI7k7MUYLaXy0B0M3R+BOHZSPtFuFJxOTOOoiobHLR2u9Gl96vtsc8mlb/IADf55F1k2L3dZmETIyXpZ9cyyso0pfxC90VJsy6FeVmNH8rq1KVmkk3SvC1hQXnBMbnOU4BdKWtEh39/+r6SYKWbfuJ+lrAtn00gsvmBt0jNg6mMpbnRFnEBt2nH+sMoYMMjaZFDc5AYuWqK6lHZUBGu8nUb2r8Q6rPSHcBZVkHHVQuxB1AK2N3Apo/LbHYx+o0pIp2V6Erm+s3IMEZQRQTT+dwWgOE92VHL3We2qgbVOHNCWv+kOyJg49wZbJEpThg7WL8X9OpOu7iFIBDGAOz/3E8NqGkc7bvA2SacoqIjpjRKv2lWELJnQZdCwf/J4kdRA8Q==; 5:R58iUxeyTrEDgkpPLrxpsAKJDkGT7IaUNPfbPf5WAtxIFk9VSmGcovHc2XR0bfVDVQ/gwA6G0/rh1oryGEF9qTxqtE0SZjNKtXP2RpDAfcjNRgKXfZtmExESIHYkdQXRIy0Ktr9c3O22yTV7UUflAwdBvvdP7Jnkda41GhnnpXo=; 7:3mZg0vLvIZRjOVggzUIEZ/8QXzfuS0UJKiwsu6FqIXRnzsuXxrpe3iffbx/ohOTQalYxWdE2iptCrM2WWrDPI3fRt4DfYiL28C8GiJBxbWAcbK4EH9Ubb5tjTejofUPD9hNTGRn209ZSh9ECfdX3VQ== x-ms-office365-filtering-correlation-id: 99cef3a9-41e5-4af4-b59e-08d649534f07 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390060)(7020095)(4652040)(8989299)(5600074)(711020)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:SN6PR07MB4816; x-ms-traffictypediagnostic: SN6PR07MB4816: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(228905959029699); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231382)(944501410)(52105112)(3002001)(10201501046)(93006095)(148016)(149066)(150057)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095); SRVR:SN6PR07MB4816; BCL:0; PCL:0; RULEID:; SRVR:SN6PR07MB4816; x-forefront-prvs: 085551F5A8 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(7916004)(376002)(396003)(346002)(366004)(136003)(39860400002)(189003)(199004)(13464003)(33716001)(229853002)(476003)(316002)(99286004)(52116002)(33896004)(76176011)(9686003)(5660300001)(97736004)(6436002)(6512007)(446003)(11346002)(6246003)(478600001)(72206003)(6486002)(6862004)(4326008)(486006)(14454004)(25786009)(71190400001)(71200400001)(68736007)(256004)(6116002)(3846002)(66066001)(53936002)(54906003)(8676002)(81166006)(81156014)(2906002)(78486014)(8936002)(1076002)(102836004)(42882007)(7736002)(186003)(106356001)(305945005)(33656002)(2900100001)(105586002)(6506007)(386003)(26005); DIR:OUT; SFP:1101; SCL:1; SRVR:SN6PR07MB4816; H:SN6PR07MB5008.namprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 7KfjsFBRkh28RCgGKXC42UXGk+q3Q25Tl8mdBZkI4FewtC11RrLRP9CBJnKtMnOYwqfQ/5t8LkNziBsNOHQj1MVWiBlpwUqZbgFfcOGJyitEw8c210eNR9X6jRG9xnAvQqGPBKGA5X1tImCnlS/Yl5kK+DEnGCimJlX8StWbZZIbG1AplT7wPW1nFPn6IgtZtDP/Hp6sb1oK4ByfjpVJD37+0dF6QRLSz/h0YaRgNfhob5trSYKQ4/fkV33jPfdpun7NqwhQadlnwfR4mX5AK9ImW9aipmYvOhWpNY6Q6Lr56jq3adLdDM4vlVkxaSFOt6Mt1RKBUEHMWruFMmZb/+oKA7O8jD3Bt8N1ZrAZFpo= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-Network-Message-Id: 99cef3a9-41e5-4af4-b59e-08d649534f07 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Nov 2018 10:32:28.1255 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR07MB4816 Subject: Re: [dpdk-stable] [PATCH] net/octeontx: fix mbuf corruption with larger priv sizes X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2018 10:32:30 -0000 -----Original Message----- > Date: Mon, 12 Nov 2018 23:24:09 +0530 > From: "Joseph, Anoob" > To: Ferruh Yigit , "Jacob, Jerin" > > CC: "Saxena, Nitin" , "Joseph, Anoob" > , "Athreya, Narayana Prasad" > , "dev@dpdk.org" , > "stable@dpdk.org" > Subject: [PATCH] net/octeontx: fix mbuf corruption with larger priv sizes >=20 > From: Nitin Saxena >=20 > When the priv_size of the mbuf is > 128 bytes, the mbuf would not be > properly constructed. This would lead to a corrupt mbuf. >=20 > This patch fixes the issue by accounting for > rte_pktmbuf_priv_size(pool) and RTE_PKTMBUF_HEADROOM > while configuring first skip register calculation. >=20 > Fixes: 197438ee9f18 ("net/octeontx: add Rx queue setup and release ops") > Cc: stable@dpdk.org >=20 > Suggested-by: Jerin Jacob > Signed-off-by: Anoob Joseph > Signed-off-by: Nitin Saxena Acked-by: Jerin Jacob