From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0042.outbound.protection.outlook.com [104.47.41.42]) by dpdk.org (Postfix) with ESMTP id C5F2A5689 for ; Sun, 28 May 2017 10:38:59 +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=mBqhBWDxFMFVde33rxeLYI/yCnjJuO+XfWxyE0O+j0IGAQb9vU/YOSlXMigDmmOBheVMttzypPb9N6vlN73DIGO9mq2pzHfGseOpyUNOkDk5ACYf7KavVTDOoZ+Y/3geybzPJJJFzDPo2Q28tEnJwLkUSCa1j6ov7O2bPcegNXk= Received: from MWHPR07CA0012.namprd07.prod.outlook.com (10.172.94.22) by BY1PR0701MB1578.namprd07.prod.outlook.com (10.162.110.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Sun, 28 May 2017 08:38:58 +0000 Received: from BN1BFFO11FD001.protection.gbl (2a01:111:f400:7c10::1:121) by MWHPR07CA0012.outlook.office365.com (2603:10b6:300:dc::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9 via Frontend Transport; Sun, 28 May 2017 08:38:58 +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 BN1BFFO11FD001.mail.protection.outlook.com (10.58.144.64) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1075.5 via Frontend Transport; Sun, 28 May 2017 08:38:58 +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; Sun, 28 May 2017 01:38:49 -0700 Received: from avluser05.qlc.com (avluser05.qlc.com [10.1.113.115]) by avsmtprelay01.qlc.com (Postfix) with ESMTP id 8D7C28BF762DD; Sun, 28 May 2017 01:38:49 -0700 (PDT) Received: (from rmody@localhost) by avluser05.qlc.com (8.14.4/8.14.4/Submit) id v4S8cnhS000519; Sun, 28 May 2017 01:38:49 -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: Sun, 28 May 2017 01:37:33 -0700 Message-ID: <1495960654-352-7-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)(39400400002)(39850400002)(39450400003)(39840400002)(39410400002)(2980300002)(428002)(189002)(199003)(9170700003)(105586002)(42186005)(2351001)(76176999)(106466001)(50986999)(230783001)(305945005)(356003)(5660300001)(2906002)(8676002)(81166006)(101416001)(189998001)(86362001)(6916009)(47776003)(8936002)(6666003)(2950100002)(4720700003)(36756003)(4326008)(33646002)(72206003)(48376002)(54906002)(50466002)(5003940100001)(50226002)(110136004)(478600001)(87636003)(107886003)(38730400002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1578; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD001; 1:vBXjGQpZZ4rEa75J4oS5B39la9A0Tc61EFr/2EvOOFnPRbJTwhoBFtAd3ph9kDRu1dM1kB1sBt0K7VKWdE8pySu0jhQOM5YOdAhdZN5xHF9umqKr5OpIFYmQDNYPYWpET4tXIDifJni/U6re7XrnqsynQeHEyicQsHQz/7LHNnRt2Y/d2QJoNYJ64lcxTvp+nqksJDESRowBfexcCAi+lIjHXzhhI/uf1zEHz00/TPrEGg3eDszobRAmuCPRmqhrlbI41kACnPQfjR2Qqgdcyymc1wVbo8G3r+ALCmoB3jm8l3cdVpJyVRnOEfl7pVWp1lnG9wDlVCLxi5CxVdUtEDPW5YBinpheqgXRjOFZ93HytbfoI1Nf6D3ZrbBP3b5cm3FJLSIum62o52vB0gdmWBNM6qkcw6LemWvF5PDPyI23T/kqNFndg3cIYb4msFBs1Irf6CzfDclJsbMAkipoxw== X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY1PR0701MB1578: X-MS-Office365-Filtering-Correlation-Id: 8cfbf263-a013-422e-0c28-08d4a5a4fbe0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:BY1PR0701MB1578; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1578; 3:2Ljqgmrp07HfW+G08eJzHbEGKCX4yPDxI/vgJq0VHiFD8xd1Zhl0zKR+5AS7HpZwtj3Gnzb2+XN6rgCY3unawKRCXmI3hOkpwqLEzX4kzFTbxFmn/Flm7GXbFpeffE4pNUMJhisZIv55OPuzvRaDppNCZ0Y2QDdfEg7XQOFkaaPiKWo6iO1j/shaHra5v2yvfuv7yMIDe43rmLj7MB8FvS3kvyQVs4cbFMY6YIVgcEO3+nq+QZ/Pxzjoz4bGG5BfZ+V8ARgQncAWzYgwACWI8BiwRF5Wv6ZYvWfy5eyUB9e7vvXW3KO0jjJEbincGCf62TKJN5mfusmRRnH4SviP2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lDPZwJYyey3j2XYzg9WOnzwumFuwGY9XDf7sHZqdxYdmsbQr9e0nsKTt5ofBc4R6YhzmMu2F4rGXt98ULQaEAPYZ4eiqhyTzDJjJjKzBfIwc4E+PvRi3HO2wFMqFOy3rd4371AEV7L1r8ZNEDGfJWWiuc3J6i6CXF3irAu4CIitne9/57lj4F7cU/lzXOOA1g7/YKMZn8hjruQjYoolF6v2FRaUJdjRm4aPQYx4+WiJwODN+Lna0vlG61yma0BlxuPVFZW++MTTlwBTG76DgFGbDNvd70aFXDrk0FvTAEi2cFxFCKqn59sLHBJQi6E1UHsGzrRuBkk9+lr2sbXK7Bj063a3E781/U1slfgCY/l9XxEfEiWTWR9Z2zzoZExxfzpmNyGw28yZyvaHzN2+akhiRiV9qRR7j+OjVNtn5YW56qzBP9TsxmmXZHqfPFjEmrRbixrl/NCzENzD X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700073)(100105000095)(100000701073)(100105300095)(100000702073)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(13018025)(13016025)(3002001)(10201501046)(100000703073)(100105400095)(93006095)(93001095)(6041248)(20161123564025)(20161123562025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123555025)(6072148)(100000704073)(100105200095)(100000705073)(100105500095); SRVR:BY1PR0701MB1578; BCL:0; PCL:0; RULEID:(100000800073)(100110000095)(100000801073)(100110300095)(100000802073)(100110100095)(100000803073)(100110400095)(100000804073)(100110200095)(100000805073)(100110500095); SRVR:BY1PR0701MB1578; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0701MB1578; 4:8VQkV5rIy4Wo0ipD68BPPpABbmZpMYYvPxJmn90b?= =?us-ascii?Q?BxxCa2jmDSEyG0HYN6UMEy02KT7PkBh2EQx48f+0N2xuRJlEYiR7kiDvzOdx?= =?us-ascii?Q?w3eLsVzqSkE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?= =?us-ascii?Q?7uoo4uklS4zIrO7q4jMuJjPiNPBqtDEIw015HX/R//UHiOup7OKDYaZJUbft?= =?us-ascii?Q?ecfvYnF2w9lLA6CjAhK+w5iAdR7d7M4JQHs2WpAj0o7gpvo8Qq5tBtFHDNkF?= =?us-ascii?Q?QRZWPC5BZP8scveP+WkLiMhU+Hc2omICV78HzG/2+or6IBAqwE+MVl4Gj69f?= =?us-ascii?Q?A2PbZLAAaEeR+iM=3D?= X-Forefront-PRVS: 03218BFD9F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0701MB1578; 23:IDgDSNSVH9j2ep6pnL70T2odIHCUWJ/3DKSPvik?= =?us-ascii?Q?TAN66h2qsewgKIKzoNzNk1h1EsfAsB1rFfNUo2wYitVfjrqSRJfMHmMWPJhG?= =?us-ascii?Q?eJY/GGVXX2vw9J1lPGh/gZvN0ogq9D9NtDXGLZlPhhyLOBKGBNm2OGbmH2CA?= =?us-ascii?Q?D5cJhKiE2XoqHLN91XHwmLmj/c0PzCz0ubew3zClZnmAIvuQtOGa6LGaF4yC?= =?us-ascii?Q?nR/12xYYIf2l6cmhRHdHCK/THzeQU/GqGKx+iJQ4EIFJ2NRHvWMDLWx9undF?= =?us-ascii?Q?lM8KvwvHydTmta6fXaeNUGfsKfdu1hhAr82VrTGLGC9IetGqgwgxjFaiDRHo?= =?us-ascii?Q?tfqxKxbY7z15e5F7Z1n2KPmDPER4RS+JtEAaPNe9sz8zzgskOdic9OisCmkh?= =?us-ascii?Q?lUyD5t7Lbgt13pamgJcNPYLAcB4sdf0LU8XpK0Oh9IWYqGS/S+iTPbBKHN+n?= =?us-ascii?Q?SV5ZxDmBWGbP6+DaJR25FQtbhMNImoxzr3VAd2D6DCWNvwn3oHTEux3b9wfk?= =?us-ascii?Q?wt6N7fWqm45iCkkxKTYoOBC6Uw/F78EgUKlAN1pXl34ewZUwLgy6q93ZzN8d?= =?us-ascii?Q?CoGyfmXWyRfG8aoTjmT5k1Ayc2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tOGZmCrhqFpE022SuQTpIRvpGWCkToTj5ywigYf4Y/ZwW4ccrgBiLYEw4zEEcuhHD22+3OTjo2rtvyBJYtkfzXc6oLhPNaOvVU1LQiAcLTwIJqgsLh9LcB8TnunUkNAL3SUDEsM0q/bmVFOKSwz9W3LF+ZTTWW0POfRSucA5uUuDMJlhDFXVF07r2FxKM3IqlOW5mDqLaJOtzkIYbmJk0ml1Pb13m4keT4PTR8ZJjQTHVjVZaQ== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 May 2017 08:38:58.1634 (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: BY1PR0701MB1578 Subject: [dpdk-dev] [PATCH 6/7] 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: Sun, 28 May 2017 08:39:00 -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