From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM04-BN3-obe.outbound.protection.outlook.com (mail-eopbgr680047.outbound.protection.outlook.com [40.107.68.47]) by dpdk.org (Postfix) with ESMTP id B10072E81 for ; Sun, 26 Aug 2018 14:55:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MSAJwvmUzJvi8GF5m4VAf0o/kHjvNLJbZkrZQ4Tut4Y=; b=VmGD6lZWeHVacXuHRswTLcSskFGvL6pxOkmc7sMAYYVvQfyzasXVnETLLMUxipMtVOZMIRZ0b60XbC5/hxH2QrGqDGjKoFfMASlF2CbVXganDVjvAzwxSN7qtDHrm0NafOP1hqQFFkuRy9FNzm8J9EewSLS9exBzofLoyRJIjwk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin.8.8.4.4 (171.61.95.228) by BYAPR07MB4998.namprd07.prod.outlook.com (2603:10b6:a03:5b::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.14; Sun, 26 Aug 2018 12:55:36 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: olivier.matz@6wind.com, Jerin Jacob Date: Sun, 26 Aug 2018 18:24:55 +0530 Message-Id: <20180826125455.27393-2-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180826125455.27393-1-jerin.jacob@caviumnetworks.com> References: <20180826125455.27393-1-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [171.61.95.228] X-ClientProxiedBy: MA1PR0101CA0009.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::19) To BYAPR07MB4998.namprd07.prod.outlook.com (2603:10b6:a03:5b::23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f10e95f2-e366-4fc0-1d60-08d60b533859 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BYAPR07MB4998; X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4998; 3:A6O4mZRkEjsuDmDmGahrkNwhm6UnIL/g1LWxL/cWAEDo4DfeRHWKFABQeV6cr2MJ7Svm9dQdoE8+BPuks8Gk7mz+2Lcfnm4wgnmFYg0Ml0e8bdiHxQXD3NyoQfEhqU8FX2lLKML7XaJyWKY2W6cyZ7o5doWBAcVJpd45mUdW1E6BxsVlNOOsZsXZFcXEaInyBijStVzUa2VFqktbpLeY+KGJbs/eE1p8LcTHg99mx4ZCcmJiUTlMF4dbDzul9ezZ; 25:afWkZHtJlTuWkMUwfMNbnFKMAZC3DA0KFTvp8NkhouxrU/BBpTe+wEPijZLlHPlO2KLbA+PV71ZPH819OqXNJHN+fj2rckMsUct1SFD0MdfHXmmv3gE7wAyGR1aKfQnYfRFm9l71MGGJLZ54KXfNZBzlQYpzghty9ghsZk2Pspl/WmAK3qhGFfE40kMKzFqliFOUKB03ZexWxmeQK5nHD6Ct2q5WlD4HqwoX8DNg5aESlinjc4T1mCewqogS/282oRMkvhIFv+t5TzyjwSFHzghtxqfa/km0l2mxewEzVJH+et2wXfwqmOv3WI3iXyGcZBazSa7Lbugma30VZLaHFQ==; 31:iX2CTvgo1o0PUeFcrDGubGrE8icX6J3tx7S4u2N2biMWnUw1jlUw8KUCCYkSBtuaxe/rA9fWYvYHU6sctuTJDja55zZwPg277OIKvw/+AeJCXPmCj5lPNyFz4KiuaduLDHlhKot1TiDjxRbpJXs09WTX9KVRO3FN6eXCKW8F9oveBykoxB265u2DxET6oU9RzF0/VC+L9hG8SC5LXjv5mTaDjjO1MUKhFfYXXOfHaP4= X-MS-TrafficTypeDiagnostic: BYAPR07MB4998: X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4998; 20:VGpF5xkuiPR+6hnKZrKPloF0IBjU1Emj3i9+yIqnvvjvzdhGi3Btd+BGG5PBX+eMlsDVm6MPx7jjnf7pjwoTc46pF3SnmcJBhQWqECBuaUqXrdjOP5n1Rka4p3PVrVZvZ7+U0TWrZNl3ohmIVUpGNswIRFaHZgqG4JWymc4hNA4pMLcelGiMYEaZzwmRUUEk24P6uEQLQ6wNT1K6sPk57qcqOMHwH/qjlST8YKodyDqeQalAgLYy8UlRCn+Ig/kqo1HPTiMILuAJPjNNdVL/V5+fnK3Yf0YBPwZj72EsuFqRQGl9GfI/+ht9C8/C3b/EH5tDg6fBhPnJXWP0+SJ7VWnDpqK6/xiDm/qhqPEnv8ZcSTa+1HsCGZAgqFlK8wsWgHnLhhAWpspKRpxJw4JwBqzb7ULeLVzBZTrSXeCb1VPYEIHka4QgYZ208mD5yRv+YUIGpNuGzo1V85BfPXCviSo2q4DkdOG+B6LOn46+R0pa68/6lvMEdrH4sXTtRoWrGiL2Kv4eDCT+XC56BMDPoqZIOHKWr45hExFtejjlcycX2LyY6NixEOLAasfm5NkFZtW6SFBI/QsHc3uTTFaXw1hexaqdLwGBeggVKQRnMbQ=; 4:esAPucsh10BYKikxjX20sK+GHE5cz7iUM7Winq7cy0C/RJql9l1hperbcC0T0wIVM6coZUDxckYJOfvocb2kxhAXP94T/xnNP99c4XYxv1WpzXCjXWHiCAYx5/hkb01CxY67kD8Mix52+Ru3HXz6LMb/36bKIs3cwh2UM99/sXNjkTtE7LobaQnUcSAT4N5lYZT3RkfDQs+0Y0CE2eRDr3fxYecw4h32BIGvIj+N0YwGe/Sx6zXoAyM0r5nNlJuUSZVLxJ+umNJG1nTtH4REnw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231311)(944501410)(52105095)(10201501046)(93006095)(3002001)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(201708071742011)(7699016); SRVR:BYAPR07MB4998; BCL:0; PCL:0; RULEID:; SRVR:BYAPR07MB4998; X-Forefront-PRVS: 0776C39A48 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6049001)(376002)(366004)(39850400004)(396003)(346002)(136003)(199004)(189003)(6916009)(956004)(97736004)(44832011)(476003)(2616005)(50226002)(76176011)(2906002)(486006)(3846002)(6116002)(51416003)(1857600001)(52116002)(25786009)(42882007)(16526019)(186003)(8936002)(4326008)(53936002)(1076002)(105586002)(81166006)(478600001)(7736002)(305945005)(81156014)(68736007)(16586007)(6486002)(106356001)(26005)(2351001)(8676002)(72206003)(6666003)(36756003)(2361001)(107886003)(11346002)(50466002)(386003)(66066001)(48376002)(446003)(47776003)(316002)(5660300001); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR07MB4998; H:jerin.8.8.4.4; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BYAPR07MB4998; 23:xeHZ444D4WFoyTOJdQ4fHMm0SLZ+tcCqwIMmJnnnp?= =?us-ascii?Q?bJZmUuyLAKwmraDQr/Js6HiIwfne6Mq1+Sfm3tmZeJdphhQ88COhIagoaeM7?= =?us-ascii?Q?LVcMVKrWIKfRspq37ahSlZpMwvPAqsq0czBGn3OxMfEoKU+WreoKiP2QQccf?= =?us-ascii?Q?wmS9WTSalKkG+M5BWZhew21VoY+qFSYIvGi6k51glFYW7AE7C+BcCigaEchs?= =?us-ascii?Q?e49wPV6Pgt6rJ5hhR6LKtXh2nwLK9t3y0HaOc4l//IpzRT5wzRi5YN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rlyBQWCcfkCFkkhXPTrA==; 5:Lln0HeEv+Hhrcc5oc8/vzIFqULIG132NWMZsfVoMvdKPBMjhoHEpjuH0a3g3L3mMfH32GJZUojjjaqKWYzwn+sXxqLvNZUSZRPHUlQhTKni1gLKoiHzm0BcBdGZgT9K/5myjZDzVD1HPcIjFi/SoEeP0Ujl//BX8zbMgdW1GJHI=; 7:zZ/HhD7aI0jB5Ydoobwn4A8reMh6XyIkmGgQPYRUEo7byRq8b/kCdJsQpQ2B9RaLyj4+QbcWPv1rsRZ3vpHXd5Z1D2YIJ5ho0knud6lDTc1FTRoEzYHACwqQNnKaYQG9xzBkizV3nQyHgH6HPeROqm+dBWzwA0kzW4d8jkmAuKtJbaqy/MqA8znwJPrggYCrt0rCU9FfVtFfoucJmEdAgcjPn4wvUop511RDUT4ED+2VE6CtuTxae99u0D1D9jqT SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Aug 2018 12:55:36.3411 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f10e95f2-e366-4fc0-1d60-08d60b533859 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB4998 Subject: [dpdk-dev] [PATCH 2/2] mbuf: add MPLS 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: Sun, 26 Aug 2018 12:55:39 -0000 Add support of MPLS packet type. Signed-off-by: Jerin Jacob --- lib/librte_mbuf/rte_mbuf_ptype.c | 1 + lib/librte_mbuf/rte_mbuf_ptype.h | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/lib/librte_mbuf/rte_mbuf_ptype.c b/lib/librte_mbuf/rte_mbuf_ptype.c index 71577f9b9..5954c2bc5 100644 --- a/lib/librte_mbuf/rte_mbuf_ptype.c +++ b/lib/librte_mbuf/rte_mbuf_ptype.c @@ -20,6 +20,7 @@ const char *rte_get_ptype_l2_name(uint32_t ptype) case RTE_PTYPE_L2_ETHER_QINQ: return "L2_ETHER_QINQ"; case RTE_PTYPE_L2_ETHER_PPPOE: return "L2_ETHER_PPPOE"; case RTE_PTYPE_L2_ETHER_FCOE: return "L2_ETHER_FCOE"; + case RTE_PTYPE_L2_ETHER_MPLS: return "L2_ETHER_MPLS"; default: return "L2_UNKNOWN"; } } diff --git a/lib/librte_mbuf/rte_mbuf_ptype.h b/lib/librte_mbuf/rte_mbuf_ptype.h index 5693baeb8..8fe000a82 100644 --- a/lib/librte_mbuf/rte_mbuf_ptype.h +++ b/lib/librte_mbuf/rte_mbuf_ptype.h @@ -137,6 +137,13 @@ extern "C" { * <'ether type'=[0x8906]> */ #define RTE_PTYPE_L2_ETHER_FCOE 0x00000009 +/** + * MPLS packet type. + * + * Packet format: + * <'ether type'=[0x8847|0x8848]> + */ +#define RTE_PTYPE_L2_ETHER_MPLS 0x0000000a /** * Mask of layer 2 packet types. * It is used for outer packet for tunneling cases. -- 2.18.0