From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0068.outbound.protection.outlook.com [104.47.32.68]) by dpdk.org (Postfix) with ESMTP id 438552BBD for ; Wed, 7 Jun 2017 09:44:04 +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; bh=G7rpFogoH+L0/9k69JlgA4O1dpWKc2UQCu92LU0EfbY=; b=b0UIpsftV+4MKsB6qLMFFWY6JiicI4qkwLm6g/V2xIsKe04OFBOwNFMaCiTwKRmzmK19Z5WYHguYGbIz5m77CCrsbJ9gtr7DYNerJODBscunKzu+fXLcuZiaPes6KU4xRF7zlbjhXmwbSL8hTrIV6XdF96JenxARAlZqoncOga0= Received: from MWHPR07CA0008.namprd07.prod.outlook.com (10.172.94.18) by SN2PR0701MB1021.namprd07.prod.outlook.com (10.160.57.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10; Wed, 7 Jun 2017 07:44:02 +0000 Received: from BN1AFFO11FD035.protection.gbl (2a01:111:f400:7c10::142) by MWHPR07CA0008.outlook.office365.com (2603:10b6:300:dc::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12 via Frontend Transport; Wed, 7 Jun 2017 07:44:01 +0000 Authentication-Results: spf=none (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=cavium.com; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BN1AFFO11FD035.mail.protection.outlook.com (10.58.52.159) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1101.12 via Frontend Transport; Wed, 7 Jun 2017 07:44:01 +0000 Received: from avsmtprelay01.qlc.com (10.1.112.194) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Wed, 7 Jun 2017 00:44:00 -0700 Received: from avluser05.qlc.com (avluser05.qlc.com [10.1.113.115]) by avsmtprelay01.qlc.com (Postfix) with ESMTP id 189F28BF7379E; Wed, 7 Jun 2017 00:44:00 -0700 (PDT) Received: (from rmody@localhost) by avluser05.qlc.com (8.14.4/8.14.4/Submit) id v577hxbv007000; Wed, 7 Jun 2017 00:43:59 -0700 X-Authentication-Warning: avluser05.qlc.com: rmody set sender to rasesh.mody@cavium.com using -f From: Rasesh Mody To: , CC: Harish Patil , Date: Wed, 7 Jun 2017 00:43:48 -0700 Message-ID: <1496821429-6954-1-git-send-email-rasesh.mody@cavium.com> X-Mailer: git-send-email 1.7.10.3 In-Reply-To: <1495960654-352-1-git-send-email-rasesh.mody@cavium.com> References: <1495960654-352-1-git-send-email-rasesh.mody@cavium.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(39410400002)(39450400003)(39850400002)(39840400002)(39400400002)(2980300002)(428002)(199003)(189002)(9170700003)(356003)(42186005)(86362001)(50226002)(8676002)(72206003)(33646002)(48376002)(36756003)(5003940100001)(81166006)(54906002)(189998001)(5660300001)(50466002)(8936002)(47776003)(2950100002)(4326008)(478600001)(87636003)(6666003)(230783001)(305945005)(76176999)(101416001)(106466001)(107886003)(38730400002)(50986999)(2906002)(105586002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR0701MB1021; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD035; 1:jTtsZn0m1EO0ls/D7vPkvZzvBu9b2N4aKxwIffnuyXIGIYNCreXxiGnmep8yd+GGW2MEhm2or/tQJ1KL/jZPBjErbVaLURFx4rTpm7lRtwEYsqHDObfqbCsurtUa/Gcufb/S1hqizQat0zIsDwWC/oIQf5ssrs6HdfjnLyR3qN6rL4Le/bPrlvJBzs/6W05zIZgAQRWkhlb97cpwqR6xbX1plMC2v9hDltUR1RvL4bLGvd8gVIY2mDpQzHsyENHhhy/MHdU4oAGeoG7IhzxdFljp8SEQsC3LD+QOPOagHkk/EKtfFEq33xtiCPZPO3HNlQwj3iOAsc5UsLUhKbgwbLQJUQkLyClQNnOvpM8NvZfiEJRdCiNUx67QcEX/LAhgW+/YRPeVu/1yJEQSGBNrFSeqjLmOYTQdwfB4ucfH93T+dUdfxKAe22XTnNUMtMZxEgc11lATie3Q6VrznBbALw+PDL1IA6ehmWtwT6JRr8AtWJ9tRdjEaITowQPoxCNmy1KMHX5Tmf8DkjlMNPlKZg== X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN2PR0701MB1021: X-MS-Office365-Filtering-Correlation-Id: ee418e05-ce35-4468-e950-08d4ad78f6c4 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081); SRVR:SN2PR0701MB1021; X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1021; 3:0mKJlv9IJmJb38SfbkRvyRZ5zVpIgNXWYtmJUfCQzLLu3cKHFGFpSrbwiTBqll+5ya3prxSuS5ZIxaXrSCqGH9qZVcOl6OvMoE5e76KX2nhupYOzdQ1bFLNiMUuzhMoW6CGWQUY1iy9Vw5uUa9ghmHwcajjnl477Ig+D02nq+XS7mhrRTf0rFAfvs67GI9QLZ7k1+efgqpiJsfA6BzUXUCp22QGhSAkn/7q9QBxObcBmJxTEJYiao2ze4DpjYRGgC7nnIDg+KNgu3s+vPCkc1mnTmG7ua+wqrGm7GN4h7E6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LiG4c8MTBEDDvI70tfcofvS+nPCdAUkXCAOh/HTjMnYSo7CXD7BEpVVtk2M1c3LO89fCwXbzVzn5Ct670bRcgs6Rh324qDdZBH1Bkyuadh6tXZIzn/vr3/fG2wUzJAODgPVHiiikSeFaiUHJHovj+JwYOuaje37p0UXAT7SURp837iU0SvGuvEhHQyKOqbpwZWtXLGEU3Jesu+PGtIAkaQYNtwSH2acma54jcZBpm4xlaV1Z2L+mKUyDZ6mLRxEbkuy2sPUlYLHu11XeN5nKGpGWI2xmMzyj6OvBTfKK0giSsk1Zxts8IbJEEZ/SsMgNNCcn3g2CKXqFYg1ntgApaErjwJTnxgQBEPGYmmSOhL2/RPoCfYwi/S5YGvZ9a4C1g3QefIYjrGlkthWc3g2+PCQXDhxOS5xiB8Gj/y8LGi/yP93RmzYwWdWmSRSou2u3E4uEHx1gW/VE6i X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(13018025)(13016025)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(100000703101)(100105400095)(6041248)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123562025)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SN2PR0701MB1021; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SN2PR0701MB1021; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR0701MB1021; 4:6/l0Pd+mKoN6zFMx+KuG4TtGGJVpPSwtfCiTNM4/?= =?us-ascii?Q?2WgDrslzdIBfOKchxnm9PG5CZiBUyDCY6j9l2sVYHsw2O3mbqQ+87UTt/H0s?= =?us-ascii?Q?4ND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vPTVstEnZ0BFk?= =?us-ascii?Q?CVLxFIznGZFSO6a1MfVc/d/ywt8pJCjrtdw6cji91ZR+0jzfoYEkeIZOzuM7?= =?us-ascii?Q?lH/KkQEX5+FBZkWJXx/Xf4qAbXBeU6ggdh+W3JVOBUeLfF064S85gNRp86mr?= =?us-ascii?Q?Lgmx5C03onOrdxlTI2reWow85398oBXZnnUANA55ntjktoDNVn47758GXdob?= =?us-ascii?Q?Al6sGlelNJ0MWcs=3D?= X-Forefront-PRVS: 03319F6FEF X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR0701MB1021; 23:2d8aJ6jxjWya0WC+hbWb4u47p4653KgFdqVhpTK?= =?us-ascii?Q?syuaJJ8+T5xxH/JnAmaRpVgj1MrLm4VuUawMH82CRo9BW1lqM/255h3Ga4sh?= =?us-ascii?Q?nBB0WscjdwgMpv0FVjDx6CTLVUofUfzsGwlym0uWtGiAGznviaksjgYRQMwD?= =?us-ascii?Q?GZCSsBvELS7PRGfEudGxyhkP9vXbCyAaEh4Dq2zeBRkZzQP8K5poxWKBdKxH?= =?us-ascii?Q?oDCNLyTA/KiVgXf2wynT7/fYpezVUpVJU0fdzyoHwihDWbRW1HXYgzENF1Yn?= =?us-ascii?Q?1aTp8YDTqH5URe3pW+fTOJqPPheZEfI79afLNTsksFgssT6wqOmGfFPbxoD2?= =?us-ascii?Q?Cn6mZWIdIIyaDv81xMOwIaP6g31gckN1mx2V75N9aMO58xudExKCuKGEQIsB?= =?us-ascii?Q?AIWLAjcAhxwFQJze/gYjzmXEDQQJMBli+myqpr933Y44M3uGC1Dqf6ziEMGN?= =?us-ascii?Q?A3TqM7r+eZWPgpxsjIySe85h8ZhyeNjW0dIlVQwZg5t5EY1ZxXADHNJ0VZd8?= =?us-ascii?Q?pAO9Zq7DD3YsD+owqizyEJmWa+3+fhTLXYF+eWa7OdGx2QPHtx+ibFj9RL8/?= =?us-ascii?Q?No65F6n8ix0qf7/CwLGL7cKJ2OeVpJm5rdj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iQ2rWqQSu8t7tzetCN7gaTt4UGcdoBKNHO16tj8urym2Na0zcaY6VcPoZ+flTgHwvWlv47T+wC1h5lC1eY7NnsQmrfdiWDPXWGHKui4/t2iNqA== X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1021; 5:9K9oYXwIVKC4yi3QDz0Btthx11u8SkbQrkLCUDhcQwOhj5CzjHRNfWeIu83HjGTv8AricJlGxo++BJ6WblNUQjgjmNDMH3Dc9eeOSu6qO6uU/dFzKvohAS8SWWghBEQvxejxSBobuuC4VxbOY3BjDCAf511nI7hl6aFtrA6b6RRokiLvc2QMqLRkOM26PBCFHqr8wyvG7zS4WnAM7n3dECQwfa5t1eky6RYTZWDkEsIWEpe7P0He8tWe0yoyQCw9H+Di94kb1F1A1VZfV9lhi3mkf06dvY5F8e5MZQIinMaFeHea820FzJiNKkISI2/JWLHYXSPClYbSvSRsw3J+kV1PeU1csBnrusM24cSG0DDjKTtBsxOCDckJeo+SLZRaUpdDgut/WDH/DjJr7ZNpU7fRg+dhFujqQgNHSFcLelhDb6kKFQEOJf7c2kCTzpK28GQEMCSMLb/EK8W6LjqyC5P2F3kEsGwgGvGQTm/u2860tc7cYeYqbBckyOV5J3OZ; 24:TUPkOfQwR7wAK7eNua1O0suKn78/hOpxOyTMv1Wvf0HsR4iyVYUchlKx9sgsWp31bMBZNuUKrZvVa6vLHJQhKFmAKurkJ4Am8brRL66ESiY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1021; 7:9rgyEPeRT6LIcveMUJUVjlGTXMrVZawvZL4v0hcd4+6pWXqvKmkDcbVDJbsg19ohftQ55GRb/+F0ixzXrRW63QD/4QWuBvzrFT/p9AyhJJUXnLzAPqXpaVtpAZIozrXSAFGvmJWmPOni9vq4h2dwiZioCbQfEAAv3M41iz7eDfcnEjkGP4m0/24e7pXcJS68ch8F8ogw5OiY1K27wfhV/ld7A2pkf6JGp1AFPxt6bDUmo3p1ZrbMrtBLaUK2VM563OTff4u/QshmebaYeH4r5c1YN6Ro2Nu65t2CEvDf26N2SLOfzLDWEs/pLIIlOUPG8/xmJxHquPHcJUmV1towRw== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2017 07:44:01.0431 (UTC) X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194; Ip=[50.232.66.26]; Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR0701MB1021 Subject: [dpdk-dev] [PATCH v2 1/2] mbuf: introduce new Tx offload flag for MPLS-in-UDP 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, 07 Jun 2017 07:44:04 -0000 From: Harish Patil Some PMDs need to know the tunnel type in order to handle advance TX features. This patch adds a new TX offload flag for MPLS-in-UDP packets. Signed-off-by: Harish Patil --- lib/librte_mbuf/rte_mbuf.c | 2 ++ lib/librte_mbuf/rte_mbuf.h | 17 ++++++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/lib/librte_mbuf/rte_mbuf.c b/lib/librte_mbuf/rte_mbuf.c index 0e3e36a..c2793fb 100644 --- a/lib/librte_mbuf/rte_mbuf.c +++ b/lib/librte_mbuf/rte_mbuf.c @@ -410,6 +410,7 @@ const char *rte_get_tx_ol_flag_name(uint64_t mask) case PKT_TX_TUNNEL_IPIP: return "PKT_TX_TUNNEL_IPIP"; case PKT_TX_TUNNEL_GENEVE: return "PKT_TX_TUNNEL_GENEVE"; case PKT_TX_MACSEC: return "PKT_TX_MACSEC"; + case PKT_TX_TUNNEL_MPLSINUDP: return "PKT_TX_TUNNEL_MPLSINUDP"; default: return NULL; } } @@ -441,6 +442,7 @@ const char *rte_get_tx_ol_flag_name(uint64_t mask) { PKT_TX_TUNNEL_GENEVE, PKT_TX_TUNNEL_MASK, "PKT_TX_TUNNEL_NONE" }, { PKT_TX_MACSEC, PKT_TX_MACSEC, NULL }, + { PKT_TX_TUNNEL_MPLSINUDP, PKT_TX_TUNNEL_MPLSINUDP, NULL }, }; const char *name; unsigned int i; diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h index 1cb0310..27ad421 100644 --- a/lib/librte_mbuf/rte_mbuf.h +++ b/lib/librte_mbuf/rte_mbuf.h @@ -197,19 +197,22 @@ * Offload the MACsec. This flag must be set by the application to enable * this offload feature for a packet to be transmitted. */ -#define PKT_TX_MACSEC (1ULL << 44) +#define PKT_TX_MACSEC (1ULL << 43) /** - * Bits 45:48 used for the tunnel type. + * Bits 44:48 used for the tunnel type. * When doing Tx offload like TSO or checksum, the HW needs to configure the * tunnel type into the HW descriptors. */ -#define PKT_TX_TUNNEL_VXLAN (0x1ULL << 45) -#define PKT_TX_TUNNEL_GRE (0x2ULL << 45) -#define PKT_TX_TUNNEL_IPIP (0x3ULL << 45) -#define PKT_TX_TUNNEL_GENEVE (0x4ULL << 45) +/**< TX packet with MPLS-in-UDP RFC 7510 header. */ +#define PKT_TX_TUNNEL_MPLSINUDP (0x1ULL << 44) + +#define PKT_TX_TUNNEL_VXLAN (0x2ULL << 44) +#define PKT_TX_TUNNEL_GRE (0x3ULL << 44) +#define PKT_TX_TUNNEL_IPIP (0x4ULL << 44) +#define PKT_TX_TUNNEL_GENEVE (0x5ULL << 45) /* add new TX TUNNEL type here */ -#define PKT_TX_TUNNEL_MASK (0xFULL << 45) +#define PKT_TX_TUNNEL_MASK (0x1FULL << 44) /** * Second VLAN insertion (QinQ) flag. -- 1.7.10.3