From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0051.outbound.protection.outlook.com [104.47.41.51]) by dpdk.org (Postfix) with ESMTP id 37A83FA6D for ; Thu, 19 Jan 2017 22:38:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=studentuml.onmicrosoft.com; s=selector1-student-uml-edu; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=l0D5XCsXrL/FfsMHfnjpsKFk6PQ0OL/+E1SrtImkQeA=; b=NbR0NwBo1k6cY0rL/tgviKZulLR40067Qqqv3xrJr0+mD8IzYFwzuourhf9+8giQfvUB2ScTcEPB3LQcr2VuovOe8C7vtgr7BbcHTtwfoPzd//wkGyleQ3VDW5ihLLmlW6c4HU1x2sY3VUTU0viWRMYYBfiLHLZ7yUaWydL0/YI= Received: from BN6PR02MB2706.namprd02.prod.outlook.com (10.175.95.20) by BN6PR02MB2705.namprd02.prod.outlook.com (10.175.95.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Thu, 19 Jan 2017 21:38:00 +0000 Received: from BN6PR02MB2706.namprd02.prod.outlook.com ([10.175.95.20]) by BN6PR02MB2706.namprd02.prod.outlook.com ([10.175.95.20]) with mapi id 15.01.0845.021; Thu, 19 Jan 2017 21:38:00 +0000 From: "Wu, Xiaoban" To: "dev@dpdk.org" Thread-Topic: A question about the macro "RTE_ETH_IS_IPV4_HDR" used in the example l3fwd-acl Thread-Index: AQHScplaq2jVPcUch0WY3uBLpNojAQ== Date: Thu, 19 Jan 2017 21:38:00 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Xiaoban_Wu@student.uml.edu; x-originating-ip: [129.63.205.25] x-ms-office365-filtering-correlation-id: bb454e0d-151b-4370-257f-08d440b37116 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:BN6PR02MB2705; x-microsoft-exchange-diagnostics: 1; BN6PR02MB2705; 7:FNAmjJWiKpyeqcU2VBXLitTX3EATRAhqQtEQEjUP4F8AjH3pFoK8Q0tbWmqKx530Zj0kaqXNcMXPONeH+51l6BA24D93KbGe/So69llwo++u0TcS9RtxJoK9G0p73VplBQG/sJ/k9jA/BBybDfTp7nBFGl1H0oG8RUwJt3FplRMAwyY9RsxW7ta83PPSRao2Kms+M3WFnZQ0OY8A6RuCnFbpWVfJ9uBdX1NnKF1WmM+AtmDYIRZCcktLAri0RFd0YtkMMNXiBB9zyDUtCPNsXo5Tv41dtzdUD+kiQ106KMQjsoN6oVGWFdWFKddUTyANlcqpIzlPpAdwVfdhYtQSAqNz8Rb2bgfbXRw1uyG5UKRZvTcRB4DYxmJeIIcT6sH81C81Wu48uWCDhrUSAARYZSQpgokSF2iTbGWSDn1rdOiimCsWxleyqtrOoQGDl8v5nMaksipkWHZiGxzjwHVFtQ== x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6041248)(20161123560025)(20161123555025)(20161123562025)(20161123564025)(6072148); SRVR:BN6PR02MB2705; BCL:0; PCL:0; RULEID:; SRVR:BN6PR02MB2705; x-forefront-prvs: 0192E812EC x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(7916002)(39450400003)(45984002)(199003)(189002)(54356999)(2501003)(7906003)(88552002)(99286003)(33656002)(102836003)(3846002)(6116002)(2906002)(101416001)(75432002)(55016002)(3280700002)(2900100001)(74316002)(92566002)(450100001)(15395725005)(50986999)(7696004)(38730400001)(5660300001)(6306002)(189998001)(54896002)(68736007)(1730700003)(19627405001)(236005)(9686003)(97736004)(42882006)(66066001)(6606003)(81156014)(81166006)(53936002)(106356001)(77096006)(2351001)(106116001)(122556002)(107886002)(6916009)(8676002)(3660700001)(110136003)(86362001)(6506006)(8936002)(105586002)(5640700003)(25786008)(606005)(7736002)(6436002)(15760500002)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR02MB2705; H:BN6PR02MB2706.namprd02.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: student.uml.edu does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: student.uml.edu X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jan 2017 21:38:00.4291 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4c25b8a6-17f7-46f9-83f0-54734ab81fb1 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR02MB2705 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] A question about the macro "RTE_ETH_IS_IPV4_HDR" used in the example l3fwd-acl 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: Thu, 19 Jan 2017 21:38:03 -0000 Dear DPDK users, I am working on the l3fwd-acl example http://dpdk.org/doc/guides/sample_app= _ug/l3_forward_access_ctrl.html. I just find that the macro "RTE_ETH_IS_IPV4_HDR" used on line 699 and 752 o= f the main.c rejected all the normal UDP packets. Hence, I want to know if the PMD driver is required to parse the packet and= update the "packet_type" field in the "struct rte_mbuf" whenever the packe= t is received? If the answer is yes, then the PMD "librte_pmd_mlx5" seems to fail to do so= , since all the packet_type I got are all zero which are not the required 0= x00000010. If the answer is no, then there would be better some warning on the webpage= . Thank you very much! Best wishes, Xiaoban