From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0054.outbound.protection.outlook.com [104.47.1.54]) by dpdk.org (Postfix) with ESMTP id 5CE3C1B737; Tue, 24 Oct 2017 08:16:24 +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=uF2aDy551P/2zSA0GpeSgLA1IjFcj7H94xzJvsUOVtw=; b=KsNWQ9qs979V4gHpWn1MLujoqQYcjyldbxotvZVNfCin74AMVnov0miF7s6gHanI3ox8nvDseakM2QbOigXI7tzbSiCbQxjXRZO1chziCcSw8QycEPicK66FB+bTbeJHGmPVwEQXgjEac+pTG+LED5kH9LVObFvJYxmksJe42/Y= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; Received: from mellanox.com (82.166.227.17) by AM4PR05MB3140.eurprd05.prod.outlook.com (2603:10a6:205:3::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.156.4; Tue, 24 Oct 2017 06:16:22 +0000 From: Shahaf Shuler To: yskoh@mellanox.com, nelio.laranjeiro@6wind.com, adrien.mazarguil@6wind.com Cc: dev@dpdk.org, stable@dpdk.org Date: Tue, 24 Oct 2017 09:16:09 +0300 Message-Id: <20171024061609.120662-1-shahafs@mellanox.com> X-Mailer: git-send-email 2.12.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [82.166.227.17] X-ClientProxiedBy: AM5PR0502CA0004.eurprd05.prod.outlook.com (2603:10a6:203:91::14) To AM4PR05MB3140.eurprd05.prod.outlook.com (2603:10a6:205:3::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3804ddae-b095-4d19-389e-08d51aa6c024 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(4534020)(4602075)(4627075)(201703031133081)(201702281549075)(2017052603199); SRVR:AM4PR05MB3140; X-Microsoft-Exchange-Diagnostics: 1; AM4PR05MB3140; 3:pOdLs74o3oN+yD+KCozS73ATQUc6vV0hT8kywVRAoROq7IlINXrlWbyDGclq+ThGvDDVxljfeaDHaVazC9sZ2Z0D2onAQ1VpYSk/g0IoOryBoiAeF4wcPzEuyAPGlA4mO6h4T2DlhJYu9/LnmdE//jMws3eVzj9XlDBxQUgn48T937lY6nAklsdleaH3EX38alV8+i+WQACOThXKKatLggAqw/QNSKYD/oB01YOw681ihAPIMPetpkedP/68HUtJ; 25:gHd8GpGDMzdp5YbHkRh1o386UqnG4yVkGoMWyjfIgdbtQvsj6lw8gFj4UEk3/L4ETRSZ9cO92sP+Ip0buyFjLnHDsxrwgKyT4CmVmDC3wa4lfb2cWNElHCGzaS+vWMRWTLNg/aKp2o3Z+xprVO8VqM+o/DR7FjuJ5F7WKa0gQ9sZYHtfrzR5fUya/cHVpMfU5ZyQhrDQ4dRXWl5vVowhoY10fu35OEtKOtFch5vGtsvBCwSJahqFtKdJ4tmYhJ/0B4PtONtqBxewAOL3ReTkTfGF4VpRl5PJhOhqJ5XM8UN0fb/J/Q9K/N9BasJQhGXCS3yvqCWPioG0Wme6og4E0A==; 31:hKQRZJRmhv2J6SLjK+YXKhLLEQlvctLEGoo2CcqObHZCv60qjuugKq8cLlj0GQoVwpqXnht0HkvNTfc1xQ4LV/pX5muWjS1FpXF7aLp7PU0IAD9uU8FQgQjFv3sqDIaRCo9FClY5bcrV5gJzGTiM45iLXyom1jypNRqzX4m0Dml1/5ImD0lU0PNhliNDm9mWvdF4nQgDh57ySopGX97aIuPovmbzTXoZbBlP7tJK2bM= X-MS-TrafficTypeDiagnostic: AM4PR05MB3140: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; AM4PR05MB3140; 20:t08T4NCiZ1MWB8YcjAq6bg/K4AvuhcO+GZTFpMhhQJPvN1DomePZzjcfocLz+vs+y4neGfzt/OPxX26aslmT8LbCXpDGHgB5xdRKCpv/7BCZZ5wtGf7TtHoLRweysOWY6UjwGX0evj5/UC6h6eydI+cH4URheN78QAIodTvLhBCeEK5Pd8kHTnqpQSG2Za2E5iMkAjCJtQUVvkxnP5zkzEWkH1fbkM+lAFxcJsPkwp4FDZZXtT4UKCWmo+muiDvUACM9q5drO6SFoM6Bl23MenLy2QsEA7GuK6QImZF4/kn0nuP3BTqjAA3NxTuuJqVBj4Q08QvDKkf+FLTflxxA/xBNPC3+cAL/3JuNPIwDXCtjIeEAe/djj/c0jU2rEgTx+QpfR/gMvqJ8A3eDM4Uzi/jegdTOdjmFtSUQKMmP6hqY50y5WwFuhf1K2iy+dLwQbuMye5KM7MHOsWYQWxK8YaiRvmLKfNPVTOnnT9jAsCQHQOAgnXq0JcqRL+T6FJUj; 4:nLkt06nUsYKVSEiP3uRZkC9U1loQBedX99bThS7u0iNtGEHHE6g0TbuuLbF54vDIFU8i4zoouciJzvxiHN0m7FgH9j1C0Y/+7XBK8QhNW/N7eBRdNjYHLH+vCqObaGgohNoulghNw8yddKltGm1HOiVG/ZKseihOHZ5lx5oF8qPIfbT3lr+r7u6PwQaiRMb88O7B4A11M1iJdVBORF1HlXBUzTAyyh3muL26zF5r12eDlplbYNhdkbafb4okoPbN 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)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(3231020)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:AM4PR05MB3140; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:AM4PR05MB3140; X-Forefront-PRVS: 047001DADA X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(39860400002)(346002)(189002)(199003)(81156014)(5003940100001)(50986999)(86362001)(6666003)(106356001)(7736002)(305945005)(101416001)(105586002)(21086003)(53936002)(81166006)(33026002)(33646002)(16526018)(4326008)(36756003)(3846002)(16586007)(48376002)(55016002)(50466002)(6116002)(189998001)(50226002)(2906002)(8676002)(47776003)(8936002)(25786009)(5660300001)(69596002)(316002)(68736007)(66066001)(478600001)(1076002)(97736004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3140; 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; AM4PR05MB3140; 23:7qxDkk/wTta1HXpbBPnAKjpy3WJAy09Pu8KIQnI0T?= =?us-ascii?Q?9JFCmhEAj0B+/gMNBTbjtDwxaNIZltK0Tm4D08CJTHT9NINDtlM1ujScR3/y?= =?us-ascii?Q?oA4dSlAvhMYFn5it4I9Vvnj605ErOk9bC5D2c6fDnCgxd/GVkcbHAX7VUhuh?= =?us-ascii?Q?6O5eG/uehtTYJHva+KinNpw16tcAPOu1yEuvZXwMC7/EntREI2cZ0+Wxoths?= =?us-ascii?Q?hGNFNpJSxcrIFaSR4SVqzlt1QzGUJPZbkVXmC3pmt0HkmS2D/rBBilAyYNX5?= =?us-ascii?Q?u+IE0+xQl7gH5AqH16/F2D3PU3YOhgcQcdc+CktH/gOlWb1wIya25O/ZVbTW?= =?us-ascii?Q?MumYgLfEDU6wX6dICA47iu/KhCS5gjsOBbbjFfDH04Hr/9Qksh7GyGidAsWT?= =?us-ascii?Q?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+xMt7xajfIBZ+id7zwmV4VaAD9W3eMstpQ+CGBIXl1MafKA9rd9Ax9pkDjMjrpKnxAzyKALg98LgJe5urSwdb+M7/ONeV5QBhXFRK+0dTtHBdk+C8k1bEsKAzkaJA3aTyc0/Bo5Sk8g/pQw==; 5:ymlPDCfWzo3h6JSBpd7HdMRwKx52xzBR7Lk0vGzBk0a6SrGxseuLqRs61J3hy0n1FZKwpt3M+yoENH2yUd1Q6ob8+YbXWDNhprMMcmPuVqmNlWa0N5HAupEkvhv5ERemLcqpZnYcRaz1LUMzkbOOCQ==; 24:bhTrYvZ8uqKtZb+R0ZHbxlbF9Ty/2dtTKVBg/6RbGY1djcpH+/W0d+uH7PwAY3VsdhiYH662a3eKqeWqNWqX1GgrXnGkDEaApZ04bVRibH8=; 7:2lEfEqCOywWC5NeosUMx742bHD7cqsJ/PTAahV4jKA3OpKJWEjA30D6EaqmVeZFmks/uI9VhU4UdopPpFQvNi07IznrjeBQETs/SxtreR//QDAK2CmX+lzSsDloh9lmV5lS6T5M6v5OUQbz7/g2+hABrpcKIuF/sm1eDbKWc9/QjtuIWz5CZlHpJglHfR7ZQPw5Xgev3N/9Il41JxMdzNCL2RU24mnW0tIb4UlGvi+8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2017 06:16:22.7660 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3804ddae-b095-4d19-389e-08d51aa6c024 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3140 Subject: [dpdk-stable] [PATCH] net/mlx5: fix packet type flags for Ethernet only frame 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, 24 Oct 2017 06:16:24 -0000 Considering the PMD supports only Ethernet transport, packet which arrives without any packet type flags in the completion should be marked with L2_ETHER flag. Fixes: ea16068c0064 ("net/mlx5: fix L4 packet type support") Cc: stable@dpdk.org Cc: yskoh@mellanox.com Signed-off-by: Shahaf Shuler Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5_rxtx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c index 961967bf4..67e7e0639 100644 --- a/drivers/net/mlx5/mlx5_rxtx.c +++ b/drivers/net/mlx5/mlx5_rxtx.c @@ -97,6 +97,8 @@ mlx5_set_ptype_table(void) * bit[6] = tunneled * bit[7] = outer_l3_type */ + /* L2 */ + (*p)[0x00] = RTE_PTYPE_L2_ETHER; /* L3 */ (*p)[0x01] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN | RTE_PTYPE_L4_NONFRAG; -- 2.12.0