From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20053.outbound.protection.outlook.com [40.107.2.53]) by dpdk.org (Postfix) with ESMTP id D344E3772 for ; Wed, 29 Aug 2018 07:35:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=44/1PI3zoIWOqNxS/Dp9gemEUDiV/VeGMd1/MiXygpU=; b=VRsH1V8Kf7ZK/krz8NsUv5vLvDEi8mjZpBZFMTZ5QBm4zEWhpvXk8PPR6rwpZUkO9HUTC+uRll6Qb3Kcgn+GRWL+QwPIEx3WVvz+iFXKVvY+4T9jsCVgaWxVrAzErbZSbwByF5RHE0+LrSD+dTKW1pTSUH+e8FU5Rro7vsaXK0E= Received: from AM6PR08MB3672.eurprd08.prod.outlook.com (20.177.115.29) by AM6PR08MB3606.eurprd08.prod.outlook.com (20.177.115.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1101.13; Wed, 29 Aug 2018 05:35:34 +0000 Received: from AM6PR08MB3672.eurprd08.prod.outlook.com ([fe80::649b:b10d:ef69:7fd2]) by AM6PR08MB3672.eurprd08.prod.outlook.com ([fe80::649b:b10d:ef69:7fd2%4]) with mapi id 15.20.1080.015; Wed, 29 Aug 2018 05:35:34 +0000 From: Honnappa Nagarahalli To: Jerin Jacob , "dev@dpdk.org" CC: "olivier.matz@6wind.com" , nd Thread-Topic: [dpdk-dev] [PATCH] mbuf: add IGMP packet type Thread-Index: AQHUPgL0L9qTYnIqakioRi0Q560dTqTWN+0g Date: Wed, 29 Aug 2018 05:35:34 +0000 Message-ID: References: <20180827123835.27531-1-jerin.jacob@caviumnetworks.com> In-Reply-To: <20180827123835.27531-1-jerin.jacob@caviumnetworks.com> 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=Honnappa.Nagarahalli@arm.com; x-originating-ip: [217.140.111.135] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM6PR08MB3606; 6:LHQRkOqx4DsgpBzo6Aw3kagcZYJusFuADt+wSBJ9pXppwZxL4ivI9Hbthrzhwl69lubS5bkZCUfyFE9aj072xpFnOCTFQ7waCm4YFtD6ISmAhIyWcdpz18g4aEBFuiVoWO2+ywZogI+MM0uIYuNulUtGt+AoEHbrjR+V2w8ekx+7RfQImns80TeXzyiaBZlno3mLbyFHkGGTu/Pvx4nhdzyKsZEcy3n1n+RM57k+9FOd16yeppGVtqY/oJWcGKVatDxVCN8eWFdEyhXgrs4bYgQajqqK7e3y8bab5Q4OwYwSGsupUfdUMwGRZSAvGaIMVgT83J9LwPg3cS93J+R3CMgxeU8bnypuE4r04qIqLeCNg1yMyAC8mqMKUK82mypbJGzh3SwzdEZ1rJU0JaoVByhMftbbB8m7oTPxQkAFSQ0ziNNvRxZrQyXjxmC50/SbnO1JcBczrpDSimGbv3bEtQ==; 5:xyCY9lvrIvNfxZF6/6OKR4pq0L6jsqhXe3qC1pYl+2a4c5e4mKTAotvqOamlXN+ogJ/x2evEYqLqwVpynlT+0rxOnW2xE19+gl4ugfBszHmhxybaO/jLo4xMHC4cRZZlhLh/g3zkCOd+bzGOAZrzAAa6k3VNMb3U3t0qDMILdvg=; 7:b0Xvf3D6u7I6qsQwe0zt1LxN+sW+4uDTBJGI1GYnMIKjN8ZmiVeSlaqegjjDJSpPImuXoIP0AXb/EbPcwwGS12sjKDehdcRU+P9tBemEG1DHM762HULWZPEe8LSZpK2GOtFFt300xYk1ZwE9KEBLIYo+8FW39vJxR+RaoHSQeJ5AEcCj5xt8rw2WlhTV/fe9Sn5zp3PFdjDh1Foq92Sqq9av9LfYDdnIdR2dY5CfzJifg29sgVYBR+Ns+8ieOOn3 x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: f738b330-e764-4a55-3583-08d60d713e51 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM6PR08MB3606; x-ms-traffictypediagnostic: AM6PR08MB3606: nodisclaimer: True x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(180628864354917); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(3002001)(10201501046)(93006095)(93001095)(3231311)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(201708071742011)(7699016); SRVR:AM6PR08MB3606; BCL:0; PCL:0; RULEID:; SRVR:AM6PR08MB3606; x-forefront-prvs: 077929D941 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(346002)(366004)(39860400002)(136003)(396003)(189003)(199004)(13464003)(76176011)(81166006)(7696005)(74316002)(99286004)(305945005)(7736002)(68736007)(6436002)(55016002)(81156014)(9686003)(8936002)(53936002)(5660300001)(86362001)(476003)(2906002)(97736004)(229853002)(486006)(256004)(478600001)(186003)(3846002)(14454004)(102836004)(8676002)(33656002)(2501003)(6246003)(110136005)(446003)(2900100001)(26005)(11346002)(6506007)(4326008)(53546011)(316002)(54906003)(72206003)(105586002)(66066001)(106356001)(6116002)(25786009)(5250100002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR08MB3606; H:AM6PR08MB3672.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: X3bqifh16hoDdkpo5mglG/fQ9S4d4LxV9jwxgcXdmlWFwYWwR+6+9nm7FVLwUYb3ViwmSHLbROHoPTa8xpe/4hiOuAcc19I2SYPmGrtT3ASWi/ZPEZJtyKPkHW6DU9B+toLHU/jg/ihPXzr3HAEKAdtuxxsQMC1mePYbo1hStRe604v/+1+kf0yiVGYjzHaNUfwUm8xKy2AT0ga5ILZRV8wN3ahUTAWLKOSBqdWT9E17w6SFvMYoFuMQEF/EUsDsZM3V/yjPiuYkRpzX3J/vakePOJzQENYlwZj7KpIyQ65lHKj1cDyeM7kaHDyIhe2gnzGpG/NOjHm/rE3+1RKKe1E6wk5dNhrGGjOQwacmkjU= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: f738b330-e764-4a55-3583-08d60d713e51 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Aug 2018 05:35:34.6848 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB3606 Subject: Re: [dpdk-dev] [PATCH] mbuf: add IGMP packet type 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: Wed, 29 Aug 2018 05:35:36 -0000 -----Original Message----- From: dev On Behalf Of Jerin Jacob Sent: Monday, August 27, 2018 7:39 AM To: dev@dpdk.org Cc: olivier.matz@6wind.com; Jerin Jacob Subject: [dpdk-dev] [PATCH] mbuf: add IGMP packet type Add support for IGMP packet type. Signed-off-by: Jerin Jacob --- lib/librte_mbuf/rte_mbuf_ptype.c | 1 + lib/librte_mbuf/rte_mbuf_ptype.h | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/lib/librte_mbuf/rte_mbuf_ptype.c b/lib/librte_mbuf/rte_mbuf_pt= ype.c index d7835e283..b483a609d 100644 --- a/lib/librte_mbuf/rte_mbuf_ptype.c +++ b/lib/librte_mbuf/rte_mbuf_ptype.c @@ -47,6 +47,7 @@ const char *rte_get_ptype_l4_name(uint32_t ptype) case RTE_PTYPE_L4_SCTP: return "L4_SCTP"; case RTE_PTYPE_L4_ICMP: return "L4_ICMP"; case RTE_PTYPE_L4_NONFRAG: return "L4_NONFRAG"; + case RTE_PTYPE_L4_IGMP: return "L4_IGMP"; default: return "L4_UNKNOWN"; } } diff --git a/lib/librte_mbuf/rte_mbuf_ptype.h b/lib/librte_mbuf/rte_mbuf_pt= ype.h index 01acc66e2..00db3eeed 100644 --- a/lib/librte_mbuf/rte_mbuf_ptype.h +++ b/lib/librte_mbuf/rte_mbuf_ptype.h @@ -286,6 +286,14 @@ extern "C" { * | 'version'=3D6, 'next header'!=3D[6|17|44|132|1]> */ #define RTE_PTYPE_L4_NONFRAG 0x00000600 +/** + * IGMP (Internet Group Management Protocol) packet type. + * + * Packet format: + * <'ether type'=3D0x0800 + * | 'version'=3D4, 'protocol'=3D2, 'MF'=3D0, 'frag_offset'=3D0> */ +#define RTE_PTYPE_L4_IGMP 0x00000700 /** * Mask of layer 4 packet types. * It is used for outer packet for tunneling cases. -- 2.18.0 Acked-by: Honnappa Nagarahalli