From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0074.outbound.protection.outlook.com [104.47.1.74]) by dpdk.org (Postfix) with ESMTP id 2BF142F42 for ; Mon, 24 Jul 2017 09:11:05 +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=bp5DWCOVB+ZbKpqjyQAzd+VR6YBLKKgBNsrLPTh2pMo=; b=NYFUEjd3MV9QqphBl7YLa+Q3vZA5InuBASBprsvqTaZwAshJnbNjiRrii5bH899tt0fMhARwCVqs5LGPRUKZiGD+/PH7hyDF5IKheBfRjGTNizgJYg6u7q1znEdSfYEEo5Gyk5Xt8VyTJ/9s6o3nGgc7lzUWV6mYty6RIXqKza8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=matan@mellanox.com; Received: from mellanox.com (37.142.13.130) by HE1PR0502MB3049.eurprd05.prod.outlook.com (2603:10a6:3:d9::14) 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 07:11:03 +0000 From: Matan Azrad To: Jingjing Wu , Adrien Mazarguil Cc: dev@dpdk.org Date: Mon, 24 Jul 2017 10:10:22 +0300 Message-Id: <1500880222-13347-3-git-send-email-matan@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1500880222-13347-1-git-send-email-matan@mellanox.com> References: <1500880222-13347-1-git-send-email-matan@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: AM5PR0601CA0048.eurprd06.prod.outlook.com (2603:10a6:203:68::34) To HE1PR0502MB3049.eurprd05.prod.outlook.com (2603:10a6:3:d9::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e88534c6-2d7d-4f96-0474-08d4d26325fb 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:HE1PR0502MB3049; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0502MB3049; 3:cQ4jGOSUbGjwp3eXcD8ptlPmcpFaoN+gVYuwlHJUbK2+MVzMkp1CtmNXOZlJFugaNZA7yHkHxs0nsky8uIMukUfvMshZ2+C/8klOmpKeIWOJUanA23J4FEJJIXnRQamDALTBprkacvX+Ik7QJnNTNVCapATm+z2TW3H1ZD4rzvdIfWGZR54jWPz4WFQFmg9eVBdoF0NU47scGmVJn4gOYdrzsBybuw6f2y/2r8P/axAw2hXPmHU7le6XOxob8eqw7F5gPbCAE2E84erxH6MMg4HV/NOcegwXMP7ZnDXny//Ehb7SrqRS8t/z2djrFUgN6Um7z9h/D0c0+ldg0ZJYaBHHOOns24cWctbxHHbqGnaL0vNWBmno4MRGEptJp7vThc2jUcLb0pwtu7hQVjDGMS0P2q+l3bfAXFFuF+wiDZ1aK6e8UHdOvFKDJllvQkfjvNpjIMkyENoILL39NCOCyFyWQWZrvwuSwodh1yebIukAjAHh0xhA6VXz9jjg1uUT43+eH0AGuy6y+SGt0znhKIjhAU/CBVuo8jFDwpnXGcJv4xq14FXXMbpTpju/NOYL1fhCyEtDoQ/XNhGkJww+4W6MAxi5r3006x61lqrBrYnsA0Cpq2VWG1F/qwr22uqp5jancn2t+miUTbOGZxhZmvAloS9pkt2Gdwor2qFQDcJk7nRP8uvM9F6Epimyf8s1r5A/lbaBKxbXL1AY14Z1kV+XagF4aQOEIvZVnHnb2YvjtgMyVxf+g31jVcVbL9iD+VenGIhHCPju1g1AUFPcgQ== X-MS-TrafficTypeDiagnostic: HE1PR0502MB3049: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0502MB3049; 25:Hj9oF5LuriHfq+fInlMJ03E+oWX3TnIgGBCNjhDoWU7GnFi+DjvisAJ6C7X6EwMu6EJsiK7T/Ql0DIXAgoItBLgr+XRY4QVM6MyqmsIqf4XUxJs0sANxwIsX1XU9WuKZs72KrVhCLnTb3FSnylCZpJukqdTBWll/kgdKLuZMfW9cpQqu9uxPvTW7kS6swdF9V31RzBCZ9deVELyzWMeqnHG36sqejTkjvwJR9XFCv1sgemO/9L126KMPMISnko6LTS4ZmJQpcZCn/prNpfPU9Z9GXqXhZuV96c4Xs/5IN6hpzXrrEIAMN9ra8yA2UDtvIioYxkQGvztfSkprYU3C6g10kHkP7tYt7T05ZJOcfJ7IxI3ckSAnmK58USSuUZb1gNzUFsf0WjX4zX1ZlwAqohLiugkgw5pjIMhre6PxcKv0bFVHwpugWqOn7kS2EEIGqtZiUHnWCULzJlDiejGWa4I2H0fSW/AUQBU4n0GHZf0ybjhHSENWjLWM6mxBAAuqn9KyeyF/jwyco4rgcJimgPYW09dNuJWkKSgVv81osXZHab35SZ7OA+QSON/SOd1lylUnWnZ9NI90ljmVe7BrS9IozT08UGdEpKbKAjS1sEsfzzUYlSTJjHo9D51iq6YydPWrpSx2U9qhFmSFdofFnkuKcTEh9elWTHNhhxKtylQeo3THTBx+4V0dxlXXH1cd+YzCBsIo6rVcX6R206U+DOdYICwDx8de91KTI59ViFsz5bKCDFhxkx/9WhuAvBSKFsoUq5eKRwzziF8PGCoy1jAM8/lwSCOG0yF6+uD5wK0oaVys9gLl43/e4y/83mmPPoywNEKrON34G4q11HH3oLK1oXf/Gms1yforDmQt6YoWFie4W+K6AtNktVGXkLwgeGuvk17ACo3JEv6hVfIRIfz7LaS5zvJwtn5abo9IjkU= X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; HE1PR0502MB3049; 31:NvzM1kEZ9E4iJf8CMdOxov2e3/NofiIFtmosAdEodHxxme75dH0o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8IAp6ED8r2r+J7LAzoxOHHjRPfClueutqWJlvyFMuzguRFkZwEYN01y5QBh4+0AZnaPJ3lGopMuWzUCbu962ZoFJas5BRA7dwcUDhbjY6s+K6T6sNW0PNSfsQ5r15 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)(3002001)(100000703101)(100105400095)(10201501046)(6055026)(6041248)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123560025)(20161123558100)(20161123562025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR0502MB3049; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR0502MB3049; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0502MB3049; 4:R04AR1JOWiWSmLeSfcP3sijJpe8yR1zP4bw6+cPk?= =?us-ascii?Q?Q2mikivuFnxmnu8hS+cc34UgzZSh6vzsCHkPZWY6RgMPz2+HQDLTwbnJTyLm?= =?us-ascii?Q?DHUC1PMhIAC1WzVox9XCFfm3aMMM6l/A18qe7cwpcMfCRWmHsKp1wLwHeQqL?= =?us-ascii?Q?elRQo8B4kYj2KWkPISBcH7YO6T5nBm90Ct/zUk4MyPZUwXGm6kocWJ3Hf8P6?= =?us-ascii?Q?xhN2kPHSOAMFO7omdOP7KOdxJX3/Yo2B0aDK2IlnE+pyB2UHzAm7j5VXQf6e?= =?us-ascii?Q?wSPcfFDOIvjfe2GyYmKZqFwTczEhsPXhbXlY8kMIcBun8h/HVOviGigt8QvY?= =?us-ascii?Q?Dq2D2AicloTEJd6CkolZBs4CLDiXMsORrlZ85ZgcfGyoKhfa290F1L86YSri?= =?us-ascii?Q?uEGaJw37nTxFyHWwOgNEfDTbZh5c4BpZgq+foPdJOmVWeIbt6xXgp835xQIV?= =?us-ascii?Q?ZHw8XJplJxBT6GiOZLrGurUmbeEQZDbPSW67896bxsqb4UgbuApLQjdsiyhK?= =?us-ascii?Q?EKv7DQy7eB5bMDewDmwBItIJG14gl+4o7aymiG3brHqdcb4NbZGM/HQS5gLK?= =?us-ascii?Q?nOXT70Q+E7z7Ij4FHIp3+7tJQQt3pYkY6p4vz1fEP/RthmLLPjK/PzwNCw+3?= =?us-ascii?Q?NRiHICEeGzpSPrh0VqAd1MPl0TaRknNo18A92Hj+cxVtOG/m7+LBRXFVijPM?= =?us-ascii?Q?g4aaYlN3+fXbuQWxrzk0aB4xuthBHyD7V6h6QQp5T3uzEXoEEfdFqY1Z7Xi/?= =?us-ascii?Q?IOI7M1KiMNvhyZc384aaOLmOy3c1g+HZEMkzN9KqiwG9yoNGB8HaRp2ju8YF?= =?us-ascii?Q?GmqKgdLKyRgqbQbR8wqz4fP42fFG5vbcQ3KOKXC48/k0vcvWUnm+FK1WZKXS?= =?us-ascii?Q?XLswSviPbuyIFHF7zrnXm1L4rMxQvje5tMpM+YPHtkzul5i6dW7vixbbJRSL?= =?us-ascii?Q?LqkHFudHBotk+y/kRYRH13HiZ+hNUGG6KJQEIl1MnFUEmJQVa3dtXwHG6/Ci?= =?us-ascii?Q?hz2JP8vFAaw9eHW0atvss7sH2Gxv9Ni/5smGbs01iO4ALHtsiHGlnvnR/Srt?= =?us-ascii?Q?cLOsPIM8XYA6uUteBc6gQgTLIJoAiOzjVWGPc3gaUEBHBvSICrgskPmUDIxj?= =?us-ascii?Q?BmVkepSU4e+YDa4oYFMCwKDph45wayfIx2h8mzg/oSZIv0MumUExcQ=3D=3D?= X-Forefront-PRVS: 0378F1E47A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(7370300001)(4630300001)(6009001)(39400400002)(39410400002)(39850400002)(39860400002)(39450400003)(39840400002)(189002)(199003)(2950100002)(4720700003)(478600001)(97736004)(6666003)(8676002)(36756003)(3846002)(6116002)(42186005)(101416001)(50466002)(305945005)(25786009)(48376002)(7736002)(81166006)(21086003)(81156014)(50226002)(5003940100001)(86362001)(76176999)(189998001)(69596002)(68736007)(2906002)(55016002)(106356001)(5660300001)(33646002)(50986999)(66066001)(7350300001)(38730400002)(4326008)(53936002)(33026002)(105586002)(47776003); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0502MB3049; 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; HE1PR0502MB3049; 23:VFsQdT+Ul4walSDwcJHi4itoOQp6QZf0NFWJMcL?= =?us-ascii?Q?0PNvENLj0Jov6H679xrUMFL6BCDuNot+CHp3ym6fzikg8SR53XppSimj4MEZ?= =?us-ascii?Q?C/+IBKtq2mBek4ftggTRNv2KoKL1q6vIe770FXbXY2H3cACQ74PdVcpHOe5p?= =?us-ascii?Q?irpoBM3nBki6DZiDNM0KdGXJCpu628neWiqhC3X/hSjPK6a5zJHDZ77XKqyp?= =?us-ascii?Q?ieEFmSDMvK2CWEWkr7kE/lo62uhQ9lVzqbJbJdA4pTFrN296Mqw9a9hzRkWJ?= =?us-ascii?Q?aRWwzRXCRmFvgKCmxww3IBsS6II/uGCb/qMtDgpMLY4rx4A17t7rhv25V7TN?= =?us-ascii?Q?/aG2pdW3eD0UGnuvmb2bRob3S3ZlUy71FpBFazLBfBg3yT/4jgPR+SDMxi5G?= =?us-ascii?Q?hRT/JYnKh7Kh82p1lRPmpbedE8RXh4mh5EUd3+If71d5676T3bDvmQcwODwZ?= =?us-ascii?Q?fCkljQOggy03h86ORrghu6MoxgCiWTeMCwagVOvkC78Yo4kpUES9XlhzZKcq?= =?us-ascii?Q?pWMGvjdztemRAeIxyraPaTjztvM8m3VbB67loMarptFI2/xBCRE4LrIXBPL9?= =?us-ascii?Q?oirzXQVIZtDEOzQChoCEkhlZJVWMljlVbaCMVH11mn/vIIqOiVq6YbQOZH1p?= =?us-ascii?Q?1Q6npjao+tAZtWv7c1LU7o0td4m8Ib9z2dl36Sg+btwAHM3R5nqnHTyKqaMV?= =?us-ascii?Q?98v+63goKn1JTBqvcsSjyzUac7Va+EhOs/Nrotdwt2hWxXWQ1ZN/YMs48kOp?= =?us-ascii?Q?PEUV2sle/zOWzlyGIwycheGAfPVL5GGQpkKB/FiQDpXG+CsiQHWI4glcmGHs?= =?us-ascii?Q?Njy9vVPD/wktAVek7RyqfM1IjFql5j86IqEh0/jjg2VKtcLj3JqVM3SyUoLH?= =?us-ascii?Q?5khB7WXOCUrs97tMJV2Y2PxpGm4CEMuhViAC9JqRsoaEhVfo0GAthEWVEQWJ?= =?us-ascii?Q?fbehle3YCHaUFyJu/C3063I9dpAqpIDCYAecR2OSOGM00m+jwR2wicTcPGby?= =?us-ascii?Q?TY+jiNqUf0qDJvYQutNAeQ3CWcJksytmsoEtGD600anAx1lZJ3DPCGwwEv6Y?= =?us-ascii?Q?GAKymojSAMoGpcHiaIPA8FR9LEXWvLYIz1NJyodaxflMINMsbTYEEY7gWC4y?= =?us-ascii?Q?RuggiYENUFUfYJrjka2PD2TGZeVw6kx06U5aMHG5WGgTyQWfIZqdDVFMPKD7?= =?us-ascii?Q?D1lxRnnUU5nk+wQXezVa4KzT3RTiMFam9x9nCOSBaWW9geTqxOOi8E/cbkfU?= =?us-ascii?Q?DddF1seWtQGRavQns023eN3kVXnvh6BxrTSBk7N07jkMlI3n+OQHFhMsrDmd?= =?us-ascii?Q?9gA=3D=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0502MB3049; 6:k1gKi/HdJKRILNzZwZkxwBCWs95KFTj/5+ChDym7?= =?us-ascii?Q?OqIvfkDWukHxrVhkEunjnpZKsiCD1G0F80gKXviwFUPT6Z5Xb5OWeoFV4B1/?= =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HbFJSR0PQaL6bdBEHovXE1BI0+e/t2onXo?= =?us-ascii?Q?eM12BWyNAb/W0/A5NXRTDnIj?= X-Microsoft-Exchange-Diagnostics: 1; HE1PR0502MB3049; 5:Tszd8ciRd+xOSUKQ1TJTEgHh2o3ypJjyrSJ0nR5suU6gnmtOP5rERo7LrC+5H2Rjte1Ld6YfKONTNBbHTE9fp43xfNJof5CyOAfs6oFuJVIn28lkS5PQ+I6aviWrOlZFZH8jUErE4Qfs5Ufh1UYeCnWzrJZF8Pymy0mmctju2wF9R2+FYAT+CZsS2vEJqhVFQWsd3vR18FSW3O+cCyZsKU4Sfywv+K5d6foIfLYvp1H4btaq5eQoBNvGgxv8YhwqDNMDd92lsCkYra2wMBVO2ItOSru23w11xZr9MMTtDgT9FB9ng4box/ZQF6+oAH86FNnmCO1z2BXn0L3Oh77WPO4JabR5WapXwZjzbpC9SX3hkVIjS753Vm1yl59zgtFD+I0iISAhZQfvzOlm4+d+gOFP0yCZhr924oyrhVigbQDHvdkayqKnun6GYUmpbInFuR37P78uafeooRGHagkWt0nGofG+otCKUXr9czAqulFaV/t3G8vfU/AELYCytEfI; 24:bkk7vVjjBBhowuwfzwh+34G/yDGPBXtO2EsE4lY/9sQqvGpTn/kDGrFPUCxgrflr5sZIxDhvrAp2MgbWKroqmkrh3ONgi9aKh7tL1QjJFPM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0502MB3049; 7:t62yuAzKkX5YC+sVFghwqCv+YyWdQ9EDSDtfgJi+lMsL89qpChdc8YFGt6P7rK/R1xSnqn09LPjbGSfR1lZCuvY7RVvzPOi1n8CmDUZP/HYdkehPYR/+8ai88INDAUJ82dAaNLg6ei8IAndAE0ldoPkVScvK3z3DLee0mgfRYboe7FYlSLyNzBNrjqWTSv+WjBWu+AQ5z2H0AxL3Wp7RLV4wXeTyZnCv6+HC6hMpQyvQzqDfXwd+qElup4s4XWJUeQi98jpce+BZKn/rJsuIs0HT/ldZy/Nycd5eNOHP6Re/zOzSX4F5MKe9pp/D8/KHbVpowRSkCPwMIboKPFVMZfeZGbesZieeUdEhSWhmHJigKboBiRm5MYGEvooYcqaPa0iIcB3pbTiiNlv6cLmWPuj/hKUn/h0EaDpaxGf8pro9++CfuWQFxqMXbwMmJgIQhk/QLIbT1tH67x1zYfNBT6YQ0FcOUO4H00jfnV63omMtugQeSc9H7Amp6gkmAzkj0tdaR8uikkKGJdi8YI9ZQK3mEe/AzWTbpp1Q3QlKpWLghep1DCdRfbUrp8SqUWg9XKCrpdyxcFdyUR6QsQMW1O9OwFy+8X8F849xKYx5RhvQG+S4JV+zvCrJNgOIcccgjGPlIY69XyBrRMpalmi1uXoEUqz6ItfQAf/lz4Z67RzBPmTSxTGrrs9+q/qYZsXF647o26GrUBjZUmV+/Kr8DHoeWR1ZtCB+UtXOdlqt+Wtvj4qEIgQF8rJQ5C87J6XYn05Z/SeF12DEg3NyxZj4xOPAx8wA4acWveJMdSs6yqM= X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2017 07:11:03.9854 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0502MB3049 Subject: [dpdk-dev] [PATCH 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 07:11:06 -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..00a07a1 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