From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM04-BN3-obe.outbound.protection.outlook.com (mail-eopbgr680077.outbound.protection.outlook.com [40.107.68.77]) by dpdk.org (Postfix) with ESMTP id B649D1D8A for ; Sun, 26 Aug 2018 14:55:33 +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=tugvOojyKLvQE75Jd/QYXq+fcaeaA0oNjFX1o+a72Vc=; b=i4Qt8jTkcx7dFvDtUivrPDRKUh9bsrbSnJqiGVdRLmS6Roz5ukdph2/V/XR4fGShEqzbVTolhuW23qFuOkZzTAfdZfmcEmchoqrvhWMy+IgvLuoN0jytEGrI8Zi6LEGq6iVpVVhS6PJn84450RUxLLq83MNS6Z7EgR6wesd/bTo= 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:30 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: olivier.matz@6wind.com, Jerin Jacob Date: Sun, 26 Aug 2018 18:24:54 +0530 Message-Id: <20180826125455.27393-1-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.18.0 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: 19066653-fc71-4fe3-bb58-08d60b5334e0 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:9YLjq0ISwGe9bsBIubh19S1IYFzSOlfiMhojTlRUnlN3l0XCs4rJyGsY6FnMJ0Q5HFBQwvcfhsNhZJH/eV+IpCDslja5pchhi9z1za/U/31ppgYgRCdE67oxYMDcvYwCM3Oi1H/XCoETftvEl9sTT8qJbZTM+WAPFh1/GDrxh0d4uW9BNUvcZisfqvQkfd5cPPn89EjWBYKFAuvjE/7zrWaEuStbwAFTH/KJThAcG6LXyjHwrwW+IZ4XCSsvmE3i; 25:ZLN8ZsbFZCPdi1RsX9KY904U2aPpnyv1/OhQe/D3r8c4wPuThlJuZ+U6Y6BkygUib23svzN+0/waG+4/pNQZWiK6ho/I+qjqBNd8fe3Q0PTghvbeNHi/YW5Pqy188Uk61rDdJ/NC4lVaGIeESP7vzwh9Prvp0LraNeyaHIlGraqmiQpo9whz+ic3qKevNdv/hCiKZZMgoHyUbs814eGJRAmrT+SmYiQfaFmOLgxMlKf4iZrbCdOD6T/8M8qdwmmKYLFf6hisGGC9r62caMXf6oiI9WwsNbOyfw3CSqHRil7HV/81w3HvJclHIizaHSNkbn/4CYWFXtPE5xYO5tZ+sw==; 31:E8b8z4M8FsBuGw5Gqh+DxbPpo3ydWAJn7A9QLoay6JtvNuRZ7O0KptwlnmxCET9A9Wyy9I0kWf2F2W7BI2fxvRDC5kzB2KZwxaRPHYvU1Ply/9ZuyO0gErLkY8rzSyQlmAu2AgOmLSPbla9IGaWCVyRBbwzX0cA4WtaiznooLl2etRNsb+yNsaVzDivrKPmKogSZKn3im4VNHbDuV/GAxq4WIW5uXlooXhZfDGgOB38= X-MS-TrafficTypeDiagnostic: BYAPR07MB4998: X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4998; 20:ApawbI7e0LXLTS5iIUmqYd4zGWP+4mG89IhMH4oKTEGW4oOATDFgQs44p78nRx+BAmWPMkatb5bLeUrrS7Zny7TahYem84Du7G/ZY54CQtcgaYgy6yaPJ9kFcLfjrjeq3nCBKEzE3DlMr7kJ4hE9oWm+zrMnRN06rMPR/pwgK/tD/+TUXuGPm5Jv8focZin0ygrl3SExLSfOuuZGdfuLHuvys3auqxcIpg07NymnGirEantRVXMhYX8naGRPXTAVaW7dOeY/gKXejAvrxrVrvY1mI2hnPm0dt0kyWpqz+NvlZIhAHXse8OH0p8yb0B1QCsYDlT269JHafTCRj65F+VZHORi6sISyh/kcdZ0C501dnK7nhlIjpEGfDXLkTmNlw8JkGGGJkVxjv7OtGHgO+SI058k5RLq1qZ8IQYiTiXsogFLdT1pfnHk7P718mlWZvJUW9+T38xSoPyryT1DcE3zyjNRF8mhhHC+6mTYS7HLHGBSlbS1Dkbz3kOA4B6pyEWkzRE3/FUb7qPheGnypl0WKB3La55BoGCGSIDic47yUvOJhSZB7ZsxsB0R5c9Ob2qMVLpGdAdcOYBGsUURMggC+YlscVMf38tI7FKMRUb4=; 4:PaEw5+0Rech5Ze2y6bfpCUBrdbS2uqE3F8SJy8LrdnPAA/cbCNjBlsIHkWHFSxVIu6t0DaH+dRQg7nPdzqoqKdUkvPcmrNPQP/qDENkBCBsK+UwkiC3JUzoyiyhBg+OhANZqo6u80UFHJc80RvVnR3k5nKxIFUzMjBbLaNDvxRvAErlso3nYH4YQIWYtzv5yyiG6V2FfzU5YaT+RMk8+Clwz6KM5xFHZ86G2XfhX6LOPFtCK0xYyPnHKyV4i6JutpPMJUdfBJ43Dt4F5s/o7VQ== 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)(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)(50466002)(386003)(66066001)(48376002)(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:5cxmD887X/bq5LCx+8zsFlkGWRpYAZnInvT8HSm5W?= =?us-ascii?Q?W/zQi82BUMRMFMu+cv6xnbcW1Mhshm9MiI8BAuNpsj64W+HHh7kVh4r1lk2C?= =?us-ascii?Q?eqlNG0uPsveK7D8i5mqk1AT4OKDTixutPaX9n0ecy9WUxuIkX++db681DkBP?= =?us-ascii?Q?zVSNV+05PBXNLhWForW8T6MdnuUZOooTwXlNCHK+pr+quCBnG0Gp5Y19tMCS?= =?us-ascii?Q?0ZPWJ6tfVpQja9nRJqAeixBdUteD1ktrxd4Yzc3zS6Vl6R93MnJteEVphNqt?= =?us-ascii?Q?MgPW9hVjMC7OcBsGNejm2/w6uu1eVKMzysXfUtDlZZX8I88JWkp/zAPWXAP/?= =?us-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ustv5nUWxQAg8PQmploaFA=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Antispam-Message-Info: Uu/OiFTu9LkVaGauhoC4SzzgtdKuSlkTYU2jhN845RJyDcphQTtHlOlnGEnSjJM0tR6hYQwoddCpDoudE+Adsblgkd+NqSTczXYmmpRyvXdF4WVJ2RLgDY8NCLXv2ALTBoSSoL6DmNt2ITc28aNDIdgqYQWs17yljxxebb2oXjh8jwETX8a0ayBuQU8uEEk4knFeUoSQu65NXlPuavZsO32Q1ftu/KPGt/PmXT/z2B5TIPrJmBxDL6j/Qcrhpycw+HTC+8tk4sDPXxpeJAuk4fu4i8EGvuRJkn//HhL42oDTopzm9RznW8lkugTLhvQSjedlYl3vtC76HhHOq4CkppvpqrAmTgRGGito9mfhQUY= X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4998; 6:DqCDVzK+t79qcSLCMn8vCpCGUw66AzJO0MlxpKokFA4vLgPPUUbsH8lJtDM0ar+bfZUT5AkJNfnHO4wr5ACXDIELsFR5gpD7KkJLllwBuvNVb3C5QGOOipNoobjBeau6NCCuyFjL2j5HwMreo+qwBUeYKVc2fe25doKPIhCqHSS40wrzX5aRcQ2x1cujx62y11zqhUfO+jcTtCqInxf8mSk0zDcqBIhfJHJQCL8jt6OcEgT3YnqHQQRPP5mEHGYbLahYWnW12fPJ3X6zV5EF2zIxD3YyKpcNxb+FBwBYVEtuoBxg83voLcRly3vpviEyEg60mVCesHfoQv3FGP37TDaL6qZPF0w3now/dIGx1iB7QMiqdKubGIDNjedA78xXJVtrwcBS0fcNYHwJTzwYhzXOLLAc+K/K87rPsHHqQGoMGh2KHa8iCU/INqVC1RIeEhWWb3kAnJc+fzRJFwmtTQ==; 5:IBLZhcEAB8UvXfdXkEUFl360AOSgxZgo9X3SVBC284KgRvTAheXCMpRX9W00Sc91HTwVm7lGPhEoFdkCTUEuTGdcCu+Yo0E0035XChpyofZySDeRrH20YdISW+kzG7CdIRkJlrBtqWU/K07I+rVU2gL5nASQD6Y6uBPbNzcosGM=; 7:Q67i5YZNGdongj0HCji0TmowXvWgjgpRzzPSHbFik+wipxJ0/HCwGImYE7sm/Ra3qZJuTYTXmmKQXbB/p2ryeaP0v1YUbgDpUlvL4XJJOGiP+pXfR+y/Oyh4Cn1o5K1K7pCoI+CinA1waTLIvJnpP8Ubp1QO3XwlwR0UR/TGJBf+9L8TIzrNCnSte7tlZt8B55LY6gNmpLXp1deq8UYEysT3FRCi51YzROaTd1VbRFEMLFTiKZigKlows918y1iQ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Aug 2018 12:55:30.5019 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 19066653-fc71-4fe3-bb58-08d60b5334e0 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 1/2] mbuf: add FCoE 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:34 -0000 Add support of FCoE 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 d7835e283..71577f9b9 100644 --- a/lib/librte_mbuf/rte_mbuf_ptype.c +++ b/lib/librte_mbuf/rte_mbuf_ptype.c @@ -19,6 +19,7 @@ const char *rte_get_ptype_l2_name(uint32_t ptype) case RTE_PTYPE_L2_ETHER_VLAN: return "L2_ETHER_VLAN"; 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"; default: return "L2_UNKNOWN"; } } diff --git a/lib/librte_mbuf/rte_mbuf_ptype.h b/lib/librte_mbuf/rte_mbuf_ptype.h index 01acc66e2..5693baeb8 100644 --- a/lib/librte_mbuf/rte_mbuf_ptype.h +++ b/lib/librte_mbuf/rte_mbuf_ptype.h @@ -130,6 +130,13 @@ extern "C" { * <'ether type'=[0x8863|0x8864]> */ #define RTE_PTYPE_L2_ETHER_PPPOE 0x00000008 +/** + * FCoE packet type. + * + * Packet format: + * <'ether type'=[0x8906]> + */ +#define RTE_PTYPE_L2_ETHER_FCOE 0x00000009 /** * Mask of layer 2 packet types. * It is used for outer packet for tunneling cases. -- 2.18.0