From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0047.outbound.protection.outlook.com [104.47.0.47]) by dpdk.org (Postfix) with ESMTP id 498D237AF for ; Mon, 24 Jul 2017 15:48:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=3lskGBuPk7Fx36F0scHr7EqAsy6JeE4AtVGr2gOd66Y=; b=nqiXFdxizxIdY5d/wE8uaux4+2wbAC51qyBfV2voQrSHZyQS9MFRnvoBBr2hWVIopak4VJmakBhPZsUBxt2+PLbX5vFXtWfFKKaf9qNDbMd/5kvWJYjrP1grcCRtGUr+bzDlCnrHqSyN12cRNtrJvW7NsgYxddLlDrYDepfCNO0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=matan@mellanox.com; Received: from mellanox.com (37.142.13.130) by AM5PR0502MB3044.eurprd05.prod.outlook.com (2603:10a6:203:a1::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1282.10; Mon, 24 Jul 2017 13:48:14 +0000 From: Matan Azrad To: Jingjing Wu , Adrien Mazarguil Cc: dev@dpdk.org Date: Mon, 24 Jul 2017 16:47:33 +0300 Message-Id: <1500904053-4543-3-git-send-email-matan@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1500904053-4543-1-git-send-email-matan@mellanox.com> References: <1500880222-13347-1-git-send-email-matan@mellanox.com> <1500904053-4543-1-git-send-email-matan@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: HE1PR0202CA0010.eurprd02.prod.outlook.com (2603:10a6:3:8c::20) To AM5PR0502MB3044.eurprd05.prod.outlook.com (2603:10a6:203:a1::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bb821a00-db27-4dbc-9112-08d4d29aa212 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:AM5PR0502MB3044; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0502MB3044; 3:rUdcDez0c2DfcPmx8F7o8ri/4MgMaLRIfYQ1BcwzQ0k4JgCD4fbjozpmW3q9cuEgCIA1VlD8WkC/GIr9ObIAkluNIgnmAEjUA9WOanGOprilBsN6r7Ivt4d70WUJGkGeoGChNBQa1K/Oz+BreJnJLJaQdl109Mt2Ac3sEWqVw7HcDL5N28QsR0p1OU4Ye2sR7MbmcRIa35I3B+NqyIO3hIvtFgLrkdSvwMnk2iir1RCfjmEOXwa/SQuFMR5/nzbUP2vCsBS0q0f5GWi7j91SD+ZZlLeuSbHa7NOlYtWkjFX5H+bDTYugitxl6A0U2HR9GJ5upq/rlKvZdx0//1UNiTE5i0a+LWdxvGwAyBbSdO1jcD2AaucAEVaG/Ycfs+rW+2HCH2L7JkAHi3M3RPhsjBv4Hi8/icp4DKdGMstpBEI00fbsQoUnkN1jWsdpKFsytnMpLbgeAI5y+R9d+xQvRMsmFaB/uW4VeZpfEDw+HYb32DpwClMfdAuHfhMbVFgnhH7ovYDCIvWP14p8u4HVUVkqlmlTeXVbFMU2sIuf226ZepdiPUmMzMqZyL7IJ/MkI+V3f/6Hr5sQcPJLbXRd3NMwopN7Gmp+2QF2UAdSJ09zWQkzbU2evRDeOlq8CIgo7l2Q7mxqYp6oaJvf73T3ZDV4FufTVvP4z9DoRWAWdzcNyIRhqvLqllQrbhVyRMTFbSIKhVI4dALLA6ITBtc7O0B1aDyY19YHgw9aez/L6I8qbESRjk+gvgsQUH1Y7ACpV9KeiHBqPJm3YVP5GY81ng== X-MS-TrafficTypeDiagnostic: AM5PR0502MB3044: X-Microsoft-Exchange-Diagnostics: 1; AM5PR0502MB3044; 25:kiEKfPLV81GTYKDac18K3Lf5VZkuwGcVnmYfsWVRFtpMreJ+A1nx0ROWPHi03EQ1H8n9VdO5RGKT3nfTOxKvD7grqv618dFXLfeMegHaeWaMTS2MG1y0DVuNGlUGXfF+M/Al8LBZbP/ui1IyDpWkeXUwoGOCV6PRPFH0zGf9tBhzyMwpVdSNE9EKv2eZyYNfC+xwGwSZ75VN///mMDsFOGYerP+y+LG9Kx3+n5KbhYqOrzQ2RgMZ3k0TeZLJc7GIPbsWOdGCSL3oqEtG3Y2ZB4BM4KtLTvvlSdPFfgVx0gJ716OEn0j05tmedV+ssGMOrAUwe6P9I9/jVG30yZeViRK1CJn8onHEf2ee7Kg/mJbf8S5Tj4wJlTvOZkfZCHr8yn6j8FyM+10ECEyadD6vmm8hzJB2cbfUfEZ/Hx1xhmvA8gMgih3ndUA97ik6UraLKJwN8PC9jvpdedYp7RA9uClY5hSLAg9+NEC9ABXzp20yaK0IrgSMtTusK+o0iDEOqx38ob1DcxJ4C7hTTADpTlDeoEiCF6yPSL651Hj/36VOWZkt4DVFVWU3LQQ22ri2h0CZwa7qlwPHB4ZCqhrVzRTmiYEeaOefZYzyhtJTIYBH+DAZC8blmBpgIhV6MzBxszvjt0CT2/zjk2fLeol+/uBSbrHNz8lvPqAstW/pEwT9qLTezzCVE58KEv0kikOg3HAueuB88G3baPZ4701xSesecsH6Parb2azeArS51v8J/dzeB++LuBr7ZysQW6AmYBbGgBIE6FvFotp068m8XsMbeycFNVO3JK/STZe+D7bkkn10aeC6R1eta7o91ubJi9P+ROOOhRn6qpsRWaKC5a+VX/MeydRBgJLrCOheccsFTROcOEgSQIpt7er+d0iMBMdDsDTwYMWfEGYV3l1XPgwjIuC+tOC/bfY9Y60bW5Y= X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; AM5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X50xZGrzzxYTY7uCbOixZgAYr0ouKM9phw0CkGKPhgPzUtS5K65ZbA3RZzRBWMcLESf8TVktCo+PDq9CjyU+LYkNJz2yMlwZlz6SUMzWFYcXzjjcuU0/cVU/A1hX/AKFDxB4PQCZ9e8RN6tZsxmxbzKCwMfU2kBEtKeW8wiudm1XiJhvA+kxSsioMgSiNjA4XAJYw6ipOS0gtzPsNo/df8Tjo+PImpzJ X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(100000703101)(100105400095)(3002001)(10201501046)(6055026)(6041248)(20161123564025)(20161123555025)(20161123560025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:AM5PR0502MB3044; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:AM5PR0502MB3044; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0502MB3044; 4:1+CoHo1wJ5VbSj+KYoCUEu394zJKi/TZGIyEzAAz?= =?us-ascii?Q?hqk6N1xNUHfLIUN0AzBMOibSE/Mq+5+u++3eKqP97OhH1my1z1++BjGnEhnR?= =?us-ascii?Q?DVVRZagnFKWfwg5CMC+c0tBEIk8ZRoh7FMhfhI/Dt0+PMk2J7YmYos6gcUCa?= =?us-ascii?Q?pxrx1KAhmk0AqebZjzKDM4myf/PSTpNZo90d5dITd+jOKVFsjxKm1EqmVI2e?= =?us-ascii?Q?0Ez7eRMkVh0eomAKt7BQas8gEy8DLi6ke8cnZ+kss79UKKHEImuUnQlBa1kN?= =?us-ascii?Q?rsypK8wG+aH9FU9pSXJ6CHrgd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?= X-Forefront-PRVS: 0378F1E47A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(7370300001)(6009001)(39450400003)(39860400002)(39840400002)(39400400002)(39850400002)(39410400002)(189002)(199003)(7350300001)(33026002)(97736004)(2950100002)(189998001)(50226002)(5003940100001)(36756003)(8676002)(6666003)(4720700003)(101416001)(81156014)(5660300001)(106356001)(478600001)(68736007)(4326008)(25786009)(48376002)(81166006)(50466002)(55016002)(53936002)(38730400002)(2906002)(86362001)(69596002)(33646002)(47776003)(76176999)(66066001)(105586002)(50986999)(305945005)(42186005)(21086003)(3846002)(6116002)(7736002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5PR0502MB3044; H:mellanox.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0502MB3044; 23:t3q8mLvU4oRxQcyfnOWitQWliPjM9/HJoWRQo7w?= =?us-ascii?Q?HM8L/rvEyTlGY6cRecgktF4LhLDYWvPK1un6G0gZw/pF6It7Of55xBXQvxhO?= =?us-ascii?Q?dIHcAyAR7x439vo0iE/SdKlXUi3OVosy4uFITPypRaX4Ix6rz/5+cgAXPcnw?= =?us-ascii?Q?CZJwRxWUyV0BfaPbqF+xwPFYWRn0F8w4qLwV1PaMCuGes6ZJz8CIXtPTLEA7?= =?us-ascii?Q?w65zZcsssJt07QmJvXR4GNiEP2lGYtnSKbxkiOOJlGIsJhul6mRPvE91NLrE?= =?us-ascii?Q?DU3jzkmM33wYSmhzRQfTc6XjBPx+0aV5YWdCnL/KXQfQWf79FqI2j8eyDN5R?= =?us-ascii?Q?hetblFMoaNtKHDJ31XbPtxNdjdcSn/hPdHwpuvRuLEIbQciBFum7bjs+4dkF?= =?us-ascii?Q?9syjoUbVm42rhAQAsfDc16B2fzt2SDLUElrd+lGFe6A7FyhQEJSTY85gk8j6?= =?us-ascii?Q?+oNpxISMT2WGGnFGhiNzVxmN+Qt+TstymLTI6CEKddipnK+vKLVrkUdO0UFP?= =?us-ascii?Q?kXEd37gV8IApl3+mNws0EKhYPctGUGqkuKypAZy4A2nVJdNg82nA4hjfVufo?= =?us-ascii?Q?FAZw8R1+HhkjHMC4or8CljKf/7Y9tdrzXGmV0/j53ukM6/aPWYm+3wXE83FJ?= =?us-ascii?Q?h2D8daxho8pO+XOEXRn0BE0RD5CwVHyrx67ejukYdOZouDXR97B/DEuEGWel?= =?us-ascii?Q?w0t3V8c2mBz64NgS4KC7cveySXBHZgNPlH+eQt7OmN9KgEtlDv50ncS0kBzy?= =?us-ascii?Q?uBOzGH08WkI+9/DjZrcniK0+K7Evgqu1gg1Ityp7k6T8rH7U6+OdtHBco6RV?= =?us-ascii?Q?Fx7MNheqfTfrJ2+HaKNoa4nDFAQkEc+YLz7Us3d6Y3CgrAxdS7artOrHpVCc?= =?us-ascii?Q?EGIVosudmkaW4SQOqN594HCDetzbPK5e3T3gpYCIvnpsiFq0czb260gExO3i?= =?us-ascii?Q?DpnupWCO7pAtvopV+PQ9gLaAfR7RpvliMl6Gp9RH6oCZ7Wg8HdKbEISWBlHy?= =?us-ascii?Q?Wo2ec+Zfj3l4wo0zspLzNpKBuY1dDxDsa7oHnpDVjIp5yocLlYViWgSmmgVO?= =?us-ascii?Q?vYh4DTD/dIF9iNpdSMs3YOiozBUZspYL+sBVvj7xK9ftJ857jUDu03A7n3Lz?= =?us-ascii?Q?wby6cJ5uUrkmNcIDhc748u0k3nYQL4UB9whoLUlQ8MrzXT08QDMNAN6EzINu?= =?us-ascii?Q?vPzogSrm9CvyFkGi8y3CdUBOh11Dure4ndhiMZhQ0Eln7PgKbitaj2J9cXoD?= =?us-ascii?Q?y6oYkp+CLsNiuyD3kXsXD8gXx+/syBfP9cjjBxkx3XeXlaWe66Rr7+gVR/jB?= =?us-ascii?Q?20Q=3D=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;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YBpb6QJ0fGKnKxhxUAfascRisZU?= =?us-ascii?Q?73l+v5wGYoPLIV2eLIszzx6Yj1QYx1pNBTe5AVy4mpa9gh4y30AHOuxCmagq?= =?us-ascii?Q?3x9GMyM5HiSFZeU+3GYyzp2tNEsCC0CMrTqWiJUWc5GiIWnFjyHu8b0v7CFb?= =?us-ascii?Q?do7wHHC6GR/iMiyF/abdegO9?= X-Microsoft-Exchange-Diagnostics: 1; AM5PR0502MB3044; 5:u7yqeEQUuhEwQOtdTkE7zVpdiyl1noj74yph2Kt3ZPejIg4x5slpn1fnXuDNldqkdaqdvjntlrVM3Gf/qxCWwUXdeGC84iUEc4BxNrRTrlwb/SlvZbP7qvgXRWQwXnIk5kpYW+e5Nex1aBWnrkdp/IWtqWg+CzVDchFLZNoWgb0caDHXujXJAzuoyQH4E++u7F7bIfBAudrr1L+xxigDeynK16G9XEMOf1ofSU1n1G3dEUSZwOCKaC/qSszZ2SRmUuQEGfK67qqt8LgEsDCZUgNZCOtkEAh2z77cInfOBTqhgds5gvm6QGKhxWaippwFmpe77pKhC7qjl/QqCy1SJUKUwGxsXTAhhRKFCMPZYao/mj9O+k0Zo3hvMtmeMx6XCRbv9CcXXasW6LvVHnZsCZ6L9x/7+RpZ5JBqqAHUI2gzUKt7kVJptsoX2HLq0viHiR28ebIrYtL/ug47NaYXKZR7fE6nyQv3Mhc/8MofTYTW1AqrJ9nngpaSAu9wYS8V; 24:caOqytA0oe48Que6hpwXOCgsEA88VTBF35iC9Ony0NjyOpD/l3fgxATDTeoLiHHc71xoWBLYMgj5ynJH0YdhXA3RU+TXUEC/rdGgsLeD3pc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR0502MB3044; 7:pBTDuZl1y9HzN7sK9TeV7x6apozelbHBx8tA7/yl2EV84MEyQYBmpQjlPiyC5E1smfVYvKq+tMV+kaKjXNdLCzOy47PYwdlQrJJJo1qlPGijtcij+3BP5ejcT+RFfVWoTY5zWUZIXXL3djspOGxIwlKpgiBO4QAkM6jcKtSpOi0sogXa5yLzK3aiscL9xys7Hzj/MQiCu77JjjftD5xF9T8rVS2049LgCaExTe7W2QqKdSlPTZL47TDWKU2lQGrCg441jd9jerfyl0COhtTn4OsehytrsDKaqc8HpxqZT9iv8KNcluxU5SQ6ZvVud+93lp2X/cP6R32lyoOw6zgdrij1NcAV4PNsutbQEI6shdhQcy3u9m63Txs1V7jmXy9MKb8viNDFuJD6bNjrPu6gPrZyb9F8qGQTry1TUepfxYVHjUFCRUxmzU4Tj32+sAsRsxcNXOd+KF+4BJ0K9XOnotDvnqZLuhWuIgBi/2Q1kK6UC/9Cd08CeORpC6zty81WI3In69z71KJB7TLlJly03dEM3IwaRmvJ9z0DPDGyODXzigOCsK77IG7lnDvBo9z7F2OXKR4OIIe8cFopUUDnhkMEdQS6aBLQ6nAS7++ATKHSO2wfs0NVDtsXj9epbNlLandjdRqy7dlOSNhaOatUvi6haLEVBu6NUj+/W1z051Fvvztr92RenjeU8NZcQBwkFtQd4IEQu8tKPCH+aJ5tFTjq7X24rjM9ntic4Af3lBrfueyJIb7MZ2siuQzooh4NSVVRjwfm5Uc5A7u+sYtJRl+HdLnzWc+fxkW9IUcNXeU= X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2017 13:48:14.3567 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0502MB3044 Subject: [dpdk-dev] [PATCH v2 2/2] ethdev: fix flow rule copy functions X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jul 2017 13:48:17 -0000 The corrupted code checks only RAW flow item type special case for returning its size but doesn't deal with any other flow item type and returns 0 for all the others. This bug leaves the flow descriptor empty for non RAW types. The fix takes the correct size to any regular types from appropriate array. The same issue, with a similar fix, is in flow action size method which deals only with RSS special type. This bug was already present in the original code taken from testpmd. Fixes: bae73ebad91c ("ethdev: add flow rule copy function") Signed-off-by: Matan Azrad --- lib/librte_ether/rte_flow.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/lib/librte_ether/rte_flow.c b/lib/librte_ether/rte_flow.c index 884e4f6..2001fbb 100644 --- a/lib/librte_ether/rte_flow.c +++ b/lib/librte_ether/rte_flow.c @@ -248,8 +248,10 @@ struct rte_flow * flow_item_spec_size(const struct rte_flow_item *item, size_t *size, size_t *pad) { - if (!item->spec) + if (!item->spec) { + *size = 0; goto empty; + } switch (item->type) { union { const struct rte_flow_item_raw *raw; @@ -262,10 +264,10 @@ struct rte_flow * spec.raw->length * sizeof(*spec.raw->pattern); break; default: -empty: - *size = 0; + *size = rte_flow_desc_item[item->type].size; break; } +empty: *pad = RTE_ALIGN_CEIL(*size, sizeof(double)) - *size; } @@ -274,8 +276,10 @@ struct rte_flow * flow_action_conf_size(const struct rte_flow_action *action, size_t *size, size_t *pad) { - if (!action->conf) + if (!action->conf) { + *size = 0; goto empty; + } switch (action->type) { union { const struct rte_flow_action_rss *rss; @@ -288,10 +292,10 @@ struct rte_flow * conf.rss->num * sizeof(*conf.rss->queue); break; default: -empty: - *size = 0; + *size = rte_flow_desc_action[action->type].size; break; } +empty: *pad = RTE_ALIGN_CEIL(*size, sizeof(double)) - *size; } -- 1.8.3.1