From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0139.outbound.protection.outlook.com [104.47.38.139]) by dpdk.org (Postfix) with ESMTP id 7E9BC326C for ; Tue, 4 Apr 2017 22:29:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bushare.onmicrosoft.com; s=selector1-bu-edu; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=/iS0xyTvH4i4sKQ1RJuGBaiWFF52Np2IzUP1mZYuBCQ=; b=F+PpqOEGSAwN90wiE7+QTrd0HRJ/NbypKubik2EO4KvBjwc67QOeI7lF133jTlPRsFpZjQ4NWchxNF5zP8l1ojLOo9Ofi+krdQ88wy9gthOOJ3m+2tfGj1HsBLJD/BTl3czq8G8Yx2ikUF+NPIfjFmySwpdZGzamflmSiUycZP8= Received: from DM5PR03MB2426.namprd03.prod.outlook.com (10.168.233.8) by DM5PR03MB2427.namprd03.prod.outlook.com (10.168.233.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10; Tue, 4 Apr 2017 20:29:27 +0000 Received: from DM5PR03MB2426.namprd03.prod.outlook.com ([10.168.233.8]) by DM5PR03MB2426.namprd03.prod.outlook.com ([10.168.233.8]) with mapi id 15.01.1005.019; Tue, 4 Apr 2017 20:29:27 +0000 From: "Fu, Qiaobin" To: "users@dpdk.org" Thread-Topic: Work with IP variable headers Thread-Index: AQHSrYIn6keg/CmuGEegMmIVNBYWVg== Date: Tue, 4 Apr 2017 20:29:27 +0000 Message-ID: <7C7AFFF4-92C8-4CE0-8515-A1B3E430C233@bu.edu> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=bu.edu; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [155.41.35.239] x-microsoft-exchange-diagnostics: 1; DM5PR03MB2427; 7:P8pTeN08zvfGgNX1yGlE+hm2iuvendH4wbXiBKViyJ1jHtamMAewoUQx7hW/emSGGFytXDHIrb/OYxPujAmDQfAHtGZkWVhkmDnDm6uXU6qWJqUlMw8gb3PLycCpQMGlHE0iVPzbnK6GIm0bzPaEbX8ozVgE35yxYAde1F55J+uIVZo2zYu/+6AnB58hcePNUCU2ABWDFc/0/GOlcOSLoCuJyAjWyBY4W4ywlFUBIkYP6ERMoI18g0npzHB5Ie+xR+dTvpaQq3bOCtCK2u40vAprYNklKaaDkc9o76yzJc2Q7pxRpD7+yx33oouxYiTjxEk7vyPEpE8CtVs2Uwud1Q== x-ms-office365-filtering-correlation-id: c29f0f6b-2ac2-4e75-1d75-08d47b994a5d x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:DM5PR03MB2427; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(6041248)(20161123562025)(201703131423075)(201702281529075)(201702281528075)(201703061421075)(20161123555025)(20161123560025)(20161123564025)(6072148); SRVR:DM5PR03MB2427; BCL:0; PCL:0; RULEID:; SRVR:DM5PR03MB2427; x-forefront-prvs: 0267E514F9 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(39410400002)(39400400002)(39840400002)(39850400002)(39450400003)(82746002)(25786009)(36756003)(83716003)(53936002)(81166006)(6436002)(2906002)(8936002)(99286003)(102836003)(5660300001)(3660700001)(54896002)(6512007)(3846002)(7736002)(6116002)(8676002)(1730700003)(86362001)(3280700002)(88552002)(6506006)(2501003)(75432002)(6486002)(122556002)(2351001)(77096006)(5640700003)(2900100001)(189998001)(33656002)(54356999)(50986999)(66066001)(6916009)(38730400002)(110136004); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR03MB2427; H:DM5PR03MB2426.namprd03.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: bu.edu X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Apr 2017 20:29:27.2160 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d57d32cc-c121-488f-b07b-dfe705680c71 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR03MB2427 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Work with IP variable headers X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Apr 2017 20:29:29 -0000 Hi, Currently, I am working on a module that classifies packets based on the L3= /L4 headers, like the destination address, port number, etc. However, due t= o options, we need to deal with IP variable headers: e.g., the options for = IPv4, and extension headers for IPv6. For the ntuple filters, I found that they can direct packets with variable = IPv4/IPv6 headers to the corresponding queues as specified by the filters. However, after receiving the IP packets with variable headers from the NIC,= we cannot use ACL rules to classify them. This is because only packets wit= h fixed IPv4/ IPv6 header are supported by ACL rules in the current impleme= ntation. So, I am wondering does DPDK have some functions to help to deal w= ith such packets? Any suggestions are appreciated! Best, Qiaobin