From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0069.outbound.protection.outlook.com [104.47.37.69]) by dpdk.org (Postfix) with ESMTP id 59B862C08 for ; Tue, 27 Jun 2017 09:21:55 +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=w6DQ+6zgIhRA/cimEhQiNAwxRKHRav8glpQo+S1N7cw=; b=CthhC8cIE+t9vEWQ+hWeSEyznxQh0nH03xYy3wqmFJEPJK6Kx6TAnMa09oKqF4ZN89Gc6aB5E1qM8sJaRWDgW1Ykij/g2J8SWhFPn5Z3VEJ9xudYiGL4eGbthHfFS4WwG/eGszE33KJPFvJuwZhR88PKlSZ1xi9JF2ikgiLd1Gw= Received: from CO2PR07CA0056.namprd07.prod.outlook.com (10.174.192.24) by BLUPR07MB419.namprd07.prod.outlook.com (10.141.28.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15; Tue, 27 Jun 2017 07:21:53 +0000 Received: from BN1AFFO11FD021.protection.gbl (2a01:111:f400:7c10::153) by CO2PR07CA0056.outlook.office365.com (2603:10b6:100::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15 via Frontend Transport; Tue, 27 Jun 2017 07:21:53 +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 BN1AFFO11FD021.mail.protection.outlook.com (10.58.52.81) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1199.9 via Frontend Transport; Tue, 27 Jun 2017 07:21:52 +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; Tue, 27 Jun 2017 00:21:51 -0700 Received: from avluser05.qlc.com (avluser05.qlc.com [10.1.113.115]) by avsmtprelay01.qlc.com (Postfix) with ESMTP id 0AC3E8BF74AE5; Tue, 27 Jun 2017 00:21:51 -0700 (PDT) Received: (from rmody@localhost) by avluser05.qlc.com (8.14.4/8.14.4/Submit) id v5R7LpW3006566; Tue, 27 Jun 2017 00:21:51 -0700 X-Authentication-Warning: avluser05.qlc.com: rmody set sender to rasesh.mody@cavium.com using -f From: Rasesh Mody To: , CC: Harish Patil , , Rasesh Mody Date: Tue, 27 Jun 2017 00:21:32 -0700 Message-ID: <1498548092-6472-2-git-send-email-rasesh.mody@cavium.com> X-Mailer: git-send-email 1.7.10.3 In-Reply-To: <1497736634-11231-1-git-send-email-rasesh.mody@cavium.com> References: <1497736634-11231-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)(39840400002)(39850400002)(39410400002)(39450400003)(39400400002)(2980300002)(428002)(189002)(199003)(9170700003)(2906002)(36756003)(8676002)(575784001)(230783001)(189998001)(305945005)(101416001)(86362001)(50226002)(5003940100001)(81166006)(8936002)(5660300001)(47776003)(356003)(105586002)(38730400002)(107886003)(72206003)(87636003)(42186005)(106466001)(4326008)(2950100002)(478600001)(33646002)(76176999)(4720700003)(6666003)(54906002)(50986999)(48376002)(50466002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR07MB419; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD021; 1:aAPXMuoyR6U66G8eC7WoWfuHUJwjIHsecFnHPTjFFfGuC9AA6wVM3ixhfYk3+32403WVt7aT9qMMlBSL9jyr0CzjAiQ3rJvnZjcZbsjuABRG/S0dL9sxrHLRhCTlFYJi2k9yZrQvRQLbm61dEyl1A/q4H9pVjjXsOLTrB9tsTKUBZysGJnthaxUvDDNJkBsJfm6mr53FR3s29isTVCPfR2n6fKqRovyUYH+Yr+PP7aZs740xqiyppDORP8A9Ssl9iWlwdXUr1BJ/V+KVn1PrqjRWuOLcV/JRE9Wjo1E771bITXRjf1KenL0VgK0r/Vk/gCh7yikH+hhXV5BiiKjV91DIY1Hc4kF0HXzSUXzkYfLzyMVx4yze0FD4pgp1eFAPfyG+k0cbZ4ABxtqjdTAYD2qqhjGZJOw98AbMggaIWEvmrOIul78KZkS2nHNuDjwtvS1Tk1oNVp6shQcwppSPjIPnRj3rYYLqVm+b3vqmwghLci9e4obr+0MSAnfaAZ4NxT8V0Ni5J/IhKZrXEjTEu3AwVsnViEKuKc+OB7IGkYhmm3+Uxf7GVTM9DEPo0BlZl9uF9DrEiT2fq4Gbo6ttb2Y2fzrI3Xm/IfE4guP1Mh2JQqXMQkD/yJYkYJdf7BUzly/fEGvP+pyFePsDMKkm2SgXF5cJPmbCY23cRRo8fOqUA2yXoZ/sQeIHr4i7HG3OaD5MgGlF27iLdgfsl/NKTEr8xJ8b6N+u0rsVysl0dIQc7ctvNfAbH2AXbvq7wKfrbazm9EwcG+wNRqPlcLAX9eC6QxLoHAB6Zi4Gfdgbe7QRf/Qk7S9KyOErQOAYr0l093Qp/NTK1xOW116vbqZUffgyyN4Ut6TRmrsQ4u7frXM= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 262f4370-04bc-48ff-bd2f-08d4bd2d2f1f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095); SRVR:BLUPR07MB419; X-Microsoft-Exchange-Diagnostics: 1; BLUPR07MB419; 3:Mf7QTmLgUWTSjBO50jNtdv+UgQ6gj5cj3LbTd0bRIzEVZ8snXPN3poKSSbs/uyNpuHuazOJtW8UdHNq9tnq5YT8cHUd8BGqc+HIEctKAkq2+/fTolq6F5VoVhCN/oMUE7QaLq6Ec6WphXgq71XU0tlaR29HOk4kMwP5TcjLG1/FZMmIkFjpDlukIAkAj8im+qMI6ySvjaUtCeBwtIZagm4GhMqEMwQjAbz4lF/PrOXCTmpv+BTBPdloVv6CdUj+mO9AH01Ua/dcQfhGWYRhQg38Ch+TyoIKjxF9gEIMZ6Aw9Zt3HBfk5IYlLLGQBpXWdpTW3s+GuUdwJe1KxJ6KwJHcNY0lmKUAkDgN/3Ls7k0TxCTya8yHedZIodH7p/CSt0GzvYVrWBwJ0PoYjf2sN8ZcOzHtJkJI/4SAqO7h65h5Iwv8UPus4kFv0lX3z9dDG5blDBVxjsdqspxlz6GU6P6P0k4Ox+wSp+232c5nkzEaMmhahXAcE9xX5VNJnS42vvhGGOR1WFJ7SpyKpeqpbyS6XhJOg7GpGOqQwjilCd09CfbA3+SpLiNRwsOocj1A5c2d69NklxgBy6gBWJ29rKuhjnkLQIqanC8qESC7iPo+i9c1VaaZCKSztvsW2TuIyj+Y6EBKocO0tr05si8NcAkiTna3Bs1fN2UlpotoUicSKRr6u/5zgVRzfbrE019oxKZupFgi8ehEax7moi8crXYo+N1h/+6TiwPUnVgHl9x1ubQfe68F4VtVDqwUYD3JUjuKMsdl7/h1GoBYBrdKE0IIa0WUk+8lVXLhb8NV/VsJ8Y/OdyvHSS4dpSpYEL9vw/f/HiVZ9QvYKbvrgL28BeQ== X-MS-TrafficTypeDiagnostic: BLUPR07MB419: X-Microsoft-Exchange-Diagnostics: 1; BLUPR07MB419;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W70/UYx8IXMDYcTKPS+2cxieu3Wb6T15RKFFEX6I26IA2cPsqCOrisrxSfEVFof/y2rnhuA9QkcTWY+7spNR0+dEcP X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(133145235818549)(236129657087228)(131327999870524)(247924648384137); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(13016025)(8121501046)(13018025)(93006095)(93001095)(3002001)(10201501046)(100000703101)(100105400095)(6041248)(20161123564025)(20161123560025)(20161123558100)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR07MB419; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR07MB419; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR07MB419; 4:QdAljDPoou1xLV9BwXfwDP+t/VNgQywedreDLufC/zf?= =?us-ascii?Q?BsWcJDObbcgrIXdbNN1+WAwIXpFwnAVyVU9k5OrVFNzcKqStgJZOeHSBfOko?= =?us-ascii?Q?9dFPOy3RQ+IL6i0uabEIiM2mQDfsEK5W8EH/FQMJ9+7VZ/4tyEbjUmNKsTqI?= =?us-ascii?Q?i9xz2sg7jvOCgg6PUO4zazkrxHQxrDq9f2gVkUD5vxxCw6+m6BUQyn36BzDr?= =?us-ascii?Q?UkYUOyTW4qpm12f1RVnZVXR4KWLgDc4sFzlFp0KFhfd+4giU0ZwHdBDbwKR5?= =?us-ascii?Q?vJVLuIjVeZl3LWTw5Td0vskxJVJJQ5kjjbW+x+KVwFVlFbbL0YDItcWScISS?= =?us-ascii?Q?aZmLamj6nduj7IBNe2DFUuBMhf8cgkEtLBl4Tv8MdWWzQNmvGtBfhNs64BXW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6YWxNqM+B0m2tLWfX6fM0FwKhWBEPGH+dYHJfBVqLvtsstISti?= =?us-ascii?Q?mRxDTg30pee9HhJspSI08u3Qg2RMro/6pp1eTHAi7?= X-Forefront-PRVS: 0351D213B3 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR07MB419; 23:/YeM6T9gqJ8VyoUFO5O+vZSc+dol6AMMLVPuuhDVl1?= =?us-ascii?Q?uN6r/3XiY8g6MdoPOUxAE/Ner8zdcOgftGgMXC5jTfblfeM5TTyZ5hErXllp?= =?us-ascii?Q?7SM00mlwj8914Gkw3SS++qovr3gyobLac1gCJGwSU0Jbjra7eJWV+TLATBkt?= =?us-ascii?Q?A6kqs0R+98g/7zmWI2wZ7naCon3cacdaegcf+8GJ2Oc3vSUB0lDer3eKMlNS?= =?us-ascii?Q?7Tgyo2JYtEzASBg6YrZX4CFNbppyQC17vJKPWN+Z1ABisyWZ4wmU/T3aIQGN?= =?us-ascii?Q?Dkw/Rj05WCD/QliN2bPPgmuYfYnRaxB/GFnSd/KSJhSPYT1kolPJgchEy4hp?= =?us-ascii?Q?95doFhgfg0UHmO0h09ixK+tNzy6w4yFnbH4YlDbWYuO/YX3tTKBKyehiJ/MN?= =?us-ascii?Q?qfVtcUEFK030mpbFFHmvcgEi9Ki1eXiT84ZmV8/hHPyTL4vIXEeDAhvpmH53?= =?us-ascii?Q?CKYmZcW4U9XoNGvawhbw47h2RiidJJos2ivmEOkSqzEodJhb6Li+Ou//9rqG?= =?us-ascii?Q?FtTkjpWjKatd9YRCtXh+/PC7kXdFJBSRUMDbjiuREU6N8o5ddIGvymW1RufL?= =?us-ascii?Q?P5fiFZ5grOvVsLE+iSVpYveUwqNjL9kvBHTOV3BWWyhGGaNz5VwB8N045mwL?= =?us-ascii?Q?ljH0WpSicIW2XcVOkRl1Cyi6iwJfgJ9gAlDz3Q3PtRwdFniqxqKK7+UlCCuK?= =?us-ascii?Q?+q5vxHTo9hVYCwwPEh0YsbXKnTa98zY136Je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BfLMufoENjh8FLvYGc3FpNM/QUeP9R5rpYljeB6SPPARMNaPhuwnPb/cWaxm2iwMuznTY5nFl+GTtQ4uDWD+U2T2W9HOL4KTfyX3MQbORlFYGGD+qucqarNtVIIAvJgnw= X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2017 07:21:52.3345 (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: BLUPR07MB419 Subject: [dpdk-dev] [PATCH v4 2/2] net/qede: add Tx offloads for MPLS-in-UDP packets 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: Tue, 27 Jun 2017 07:21:57 -0000 From: Harish Patil Add support for inner/outer L3/L4 TX csum offload for MPLS-in-UDP packets. The driver checks for PKT_TX_TUNNEL_MPLSINUDP in Tx ol_flags and updates TX BD elements with appropriate offsets/length of tunnel headers. The pseudo csum calculation is removed from qede_xmit_prep_pkts() since its not needed. Note: Some lines are exceeding 80 columns and is intentionally not fixed since it affects code readability. Signed-off-by: Harish Patil Signed-off-by: Rasesh Mody --- drivers/net/qede/qede_rxtx.c | 198 ++++++++++++++++++++++++++++++++---------- drivers/net/qede/qede_rxtx.h | 3 +- 2 files changed, 152 insertions(+), 49 deletions(-) diff --git a/drivers/net/qede/qede_rxtx.c b/drivers/net/qede/qede_rxtx.c index f65c833..f0fbfe8 100644 --- a/drivers/net/qede/qede_rxtx.c +++ b/drivers/net/qede/qede_rxtx.c @@ -1445,7 +1445,9 @@ static inline uint32_t qede_rx_cqe_to_tunn_pkt_type(uint16_t flags) uint64_t ol_flags; struct rte_mbuf *m; uint16_t i; +#ifdef RTE_LIBRTE_ETHDEV_DEBUG int ret; +#endif for (i = 0; i < nb_pkts; i++) { m = tx_pkts[i]; @@ -1478,14 +1480,6 @@ static inline uint32_t qede_rx_cqe_to_tunn_pkt_type(uint16_t flags) break; } #endif - /* TBD: pseudo csum calcuation required if - * ETH_TX_DATA_2ND_BD_L4_PSEUDO_CSUM_MODE not set? - */ - ret = rte_net_intel_cksum_prepare(m); - if (ret != 0) { - rte_errno = ret; - break; - } } #ifdef RTE_LIBRTE_QEDE_DEBUG_TX @@ -1496,6 +1490,27 @@ static inline uint32_t qede_rx_cqe_to_tunn_pkt_type(uint16_t flags) return i; } +#define MPLSINUDP_HDR_SIZE (12) + +#ifdef RTE_LIBRTE_QEDE_DEBUG_TX +static inline void +qede_mpls_tunn_tx_sanity_check(struct rte_mbuf *mbuf, + struct qede_tx_queue *txq) +{ + if (((mbuf->outer_l2_len + mbuf->outer_l3_len) / 2) > 0xff) + PMD_TX_LOG(ERR, txq, "tunn_l4_hdr_start_offset overflow\n"); + if (((mbuf->outer_l2_len + mbuf->outer_l3_len + + MPLSINUDP_HDR_SIZE) / 2) > 0xff) + PMD_TX_LOG(ERR, txq, "tunn_hdr_size overflow\n"); + if (((mbuf->l2_len - MPLSINUDP_HDR_SIZE) / 2) > + ETH_TX_DATA_2ND_BD_TUNN_INNER_L2_HDR_SIZE_W_MASK) + PMD_TX_LOG(ERR, txq, "inner_l2_hdr_size overflow\n"); + if (((mbuf->l2_len - MPLSINUDP_HDR_SIZE + mbuf->l3_len) / 2) > + ETH_TX_DATA_2ND_BD_L4_HDR_START_OFFSET_W_MASK) + PMD_TX_LOG(ERR, txq, "inner_l2_hdr_size overflow\n"); +} +#endif + uint16_t qede_xmit_pkts(void *p_txq, struct rte_mbuf **tx_pkts, uint16_t nb_pkts) { @@ -1510,9 +1525,10 @@ static inline uint32_t qede_rx_cqe_to_tunn_pkt_type(uint16_t flags) uint16_t nb_frags; uint16_t nb_pkt_sent = 0; uint8_t nbds; - bool ipv6_ext_flg; bool lso_flg; + bool mplsoudp_flg; __rte_unused bool tunn_flg; + bool tunn_ipv6_ext_flg; struct eth_tx_1st_bd *bd1; struct eth_tx_2nd_bd *bd2; struct eth_tx_3rd_bd *bd3; @@ -1529,6 +1545,10 @@ static inline uint32_t qede_rx_cqe_to_tunn_pkt_type(uint16_t flags) uint16_t mss; uint16_t bd3_bf; + uint8_t tunn_l4_hdr_start_offset; + uint8_t tunn_hdr_size; + uint8_t inner_l2_hdr_size; + uint16_t inner_l4_hdr_offset; if (unlikely(txq->nb_tx_avail < txq->tx_free_thresh)) { PMD_TX_LOG(DEBUG, txq, "send=%u avail=%u free_thresh=%u", @@ -1540,7 +1560,6 @@ static inline uint32_t qede_rx_cqe_to_tunn_pkt_type(uint16_t flags) bd_prod = rte_cpu_to_le_16(ecore_chain_get_prod_idx(&txq->tx_pbl)); while (nb_tx_pkts--) { /* Init flags/values */ - ipv6_ext_flg = false; tunn_flg = false; lso_flg = false; nbds = 0; @@ -1555,6 +1574,10 @@ static inline uint32_t qede_rx_cqe_to_tunn_pkt_type(uint16_t flags) bd2_bf2 = 0; mss = 0; bd3_bf = 0; + mplsoudp_flg = false; + tunn_ipv6_ext_flg = false; + tunn_hdr_size = 0; + tunn_l4_hdr_start_offset = 0; mbuf = *tx_pkts++; assert(mbuf); @@ -1566,20 +1589,18 @@ static inline uint32_t qede_rx_cqe_to_tunn_pkt_type(uint16_t flags) tx_ol_flags = mbuf->ol_flags; bd1_bd_flags_bf |= 1 << ETH_TX_1ST_BD_FLAGS_START_BD_SHIFT; -#define RTE_ETH_IS_IPV6_HDR_EXT(ptype) ((ptype) & RTE_PTYPE_L3_IPV6_EXT) - if (RTE_ETH_IS_IPV6_HDR_EXT(mbuf->packet_type)) { - ipv6_ext_flg = true; + /* TX prepare would have already checked supported tunnel Tx + * offloads. Don't rely on pkt_type marked by Rx, instead use + * tx_ol_flags to decide. + */ + if (((tx_ol_flags & PKT_TX_TUNNEL_MASK) == + PKT_TX_TUNNEL_VXLAN) || + ((tx_ol_flags & PKT_TX_TUNNEL_MASK) == + PKT_TX_TUNNEL_MPLSINUDP)) { + /* Check against max which is Tunnel IPv6 + ext */ if (unlikely(txq->nb_tx_avail < - ETH_TX_MIN_BDS_PER_IPV6_WITH_EXT_PKT)) - break; - } - - if (RTE_ETH_IS_TUNNEL_PKT(mbuf->packet_type)) { - if (ipv6_ext_flg) { - if (unlikely(txq->nb_tx_avail < - ETH_TX_MIN_BDS_PER_TUNN_IPV6_WITH_EXT_PKT)) + ETH_TX_MIN_BDS_PER_TUNN_IPV6_WITH_EXT_PKT)) break; - } tunn_flg = true; /* First indicate its a tunnel pkt */ bd1_bf |= ETH_TX_DATA_1ST_BD_TUNN_FLAG_MASK << @@ -1592,17 +1613,89 @@ static inline uint32_t qede_rx_cqe_to_tunn_pkt_type(uint16_t flags) bd1_bf ^= 1 << ETH_TX_DATA_1ST_BD_TUNN_FLAG_SHIFT; } + /* Outer IP checksum offload */ - if (tx_ol_flags & PKT_TX_OUTER_IP_CKSUM) { + if (tx_ol_flags & (PKT_TX_OUTER_IP_CKSUM | + PKT_TX_OUTER_IPV4)) { bd1_bd_flags_bf |= ETH_TX_1ST_BD_FLAGS_TUNN_IP_CSUM_MASK << ETH_TX_1ST_BD_FLAGS_TUNN_IP_CSUM_SHIFT; } - /* Outer UDP checksum offload */ - bd1_bd_flags_bf |= - ETH_TX_1ST_BD_FLAGS_TUNN_L4_CSUM_MASK << - ETH_TX_1ST_BD_FLAGS_TUNN_L4_CSUM_SHIFT; - } + + /** + * Currently, only inner checksum offload in MPLS-in-UDP + * tunnel with one MPLS label is supported. Both outer + * and inner layers lengths need to be provided in + * mbuf. + */ + if ((tx_ol_flags & PKT_TX_TUNNEL_MASK) == + PKT_TX_TUNNEL_MPLSINUDP) { + mplsoudp_flg = true; +#ifdef RTE_LIBRTE_QEDE_DEBUG_TX + qede_mpls_tunn_tx_sanity_check(mbuf, txq); +#endif + /* Outer L4 offset in two byte words */ + tunn_l4_hdr_start_offset = + (mbuf->outer_l2_len + mbuf->outer_l3_len) / 2; + /* Tunnel header size in two byte words */ + tunn_hdr_size = (mbuf->outer_l2_len + + mbuf->outer_l3_len + + MPLSINUDP_HDR_SIZE) / 2; + /* Inner L2 header size in two byte words */ + inner_l2_hdr_size = (mbuf->l2_len - + MPLSINUDP_HDR_SIZE) / 2; + /* Inner L4 header offset from the beggining + * of inner packet in two byte words + */ + inner_l4_hdr_offset = (mbuf->l2_len - + MPLSINUDP_HDR_SIZE + mbuf->l3_len) / 2; + + /* TODO: There's no DPDK flag to request outer + * L4 checksum offload, so we don't do it. + * bd1_bd_flags_bf |= + * ETH_TX_1ST_BD_FLAGS_TUNN_L4_CSUM_MASK << + * ETH_TX_1ST_BD_FLAGS_TUNN_L4_CSUM_SHIFT; + */ + /* Inner L2 size and address type */ + bd2_bf1 |= (inner_l2_hdr_size & + ETH_TX_DATA_2ND_BD_TUNN_INNER_L2_HDR_SIZE_W_MASK) << + ETH_TX_DATA_2ND_BD_TUNN_INNER_L2_HDR_SIZE_W_SHIFT; + bd2_bf1 |= (UNICAST_ADDRESS & + ETH_TX_DATA_2ND_BD_TUNN_INNER_ETH_TYPE_MASK) << + ETH_TX_DATA_2ND_BD_TUNN_INNER_ETH_TYPE_SHIFT; + /* Treated as IPv6+Ext */ + bd2_bf1 |= + 1 << ETH_TX_DATA_2ND_BD_TUNN_IPV6_EXT_SHIFT; + + /* Mark inner IPv6 if present */ + if (tx_ol_flags & PKT_TX_IPV6) + bd2_bf1 |= + 1 << ETH_TX_DATA_2ND_BD_TUNN_INNER_IPV6_SHIFT; + + /* Inner L4 offsets */ + if ((tx_ol_flags & (PKT_TX_IPV4 | PKT_TX_IPV6)) && + (tx_ol_flags & (PKT_TX_UDP_CKSUM | + PKT_TX_TCP_CKSUM))) { + /* Determines if BD3 is needed */ + tunn_ipv6_ext_flg = true; + if ((tx_ol_flags & PKT_TX_L4_MASK) == + PKT_TX_UDP_CKSUM) { + bd2_bf1 |= + 1 << ETH_TX_DATA_2ND_BD_L4_UDP_SHIFT; + } + + /* TODO other pseudo checksum modes are + * not supported + */ + bd2_bf1 |= + ETH_L4_PSEUDO_CSUM_CORRECT_LENGTH << + ETH_TX_DATA_2ND_BD_L4_PSEUDO_CSUM_MODE_SHIFT; + bd2_bf2 |= (inner_l4_hdr_offset & + ETH_TX_DATA_2ND_BD_L4_HDR_START_OFFSET_W_MASK) << + ETH_TX_DATA_2ND_BD_L4_HDR_START_OFFSET_W_SHIFT; + } + } /* End MPLSoUDP */ + } /* End Tunnel handling */ if (tx_ol_flags & PKT_TX_TCP_SEG) { lso_flg = true; @@ -1646,14 +1739,10 @@ static inline uint32_t qede_rx_cqe_to_tunn_pkt_type(uint16_t flags) 1 << ETH_TX_1ST_BD_FLAGS_IP_CSUM_SHIFT; /* L4 checksum offload (tcp or udp) */ - if (tx_ol_flags & (PKT_TX_TCP_CKSUM | PKT_TX_UDP_CKSUM)) + if ((tx_ol_flags & (PKT_TX_IPV4 | PKT_TX_IPV6)) && + (tx_ol_flags & (PKT_TX_UDP_CKSUM | PKT_TX_TCP_CKSUM))) { bd1_bd_flags_bf |= 1 << ETH_TX_1ST_BD_FLAGS_L4_CSUM_SHIFT; - - if (ipv6_ext_flg) { - /* TBD: check pseudo csum if tx_prepare not called? */ - bd2_bf1 |= ETH_L4_PSEUDO_CSUM_ZERO_LENGTH << - ETH_TX_DATA_2ND_BD_L4_PSEUDO_CSUM_MODE_SHIFT; } /* Fill the entry in the SW ring and the BDs in the FW ring */ @@ -1667,12 +1756,12 @@ static inline uint32_t qede_rx_cqe_to_tunn_pkt_type(uint16_t flags) /* Map MBUF linear data for DMA and set in the BD1 */ QEDE_BD_SET_ADDR_LEN(bd1, rte_mbuf_data_dma_addr(mbuf), - mbuf->data_len); - bd1->data.bitfields = bd1_bf; + mbuf->data_len); + bd1->data.bitfields = rte_cpu_to_le_16(bd1_bf); bd1->data.bd_flags.bitfields = bd1_bd_flags_bf; bd1->data.vlan = vlan; - if (lso_flg || ipv6_ext_flg) { + if (lso_flg || mplsoudp_flg) { bd2 = (struct eth_tx_2nd_bd *)ecore_chain_produce (&txq->tx_pbl); memset(bd2, 0, sizeof(struct eth_tx_2nd_bd)); @@ -1685,16 +1774,30 @@ static inline uint32_t qede_rx_cqe_to_tunn_pkt_type(uint16_t flags) QEDE_BD_SET_ADDR_LEN(bd2, (hdr_size + rte_mbuf_data_dma_addr(mbuf)), mbuf->data_len - hdr_size); - bd2->data.bitfields1 = bd2_bf1; - bd2->data.bitfields2 = bd2_bf2; - + bd2->data.bitfields1 = rte_cpu_to_le_16(bd2_bf1); + if (mplsoudp_flg) { + bd2->data.bitfields2 = + rte_cpu_to_le_16(bd2_bf2); + /* Outer L3 size */ + bd2->data.tunn_ip_size = + rte_cpu_to_le_16(mbuf->outer_l3_len); + } /* BD3 */ - bd3 = (struct eth_tx_3rd_bd *)ecore_chain_produce - (&txq->tx_pbl); - memset(bd3, 0, sizeof(struct eth_tx_3rd_bd)); - nbds++; - bd3->data.bitfields = bd3_bf; - bd3->data.lso_mss = mss; + if (lso_flg || (mplsoudp_flg && tunn_ipv6_ext_flg)) { + bd3 = (struct eth_tx_3rd_bd *) + ecore_chain_produce(&txq->tx_pbl); + memset(bd3, 0, sizeof(struct eth_tx_3rd_bd)); + nbds++; + bd3->data.bitfields = rte_cpu_to_le_16(bd3_bf); + if (lso_flg) + bd3->data.lso_mss = mss; + if (mplsoudp_flg) { + bd3->data.tunn_l4_hdr_start_offset_w = + tunn_l4_hdr_start_offset; + bd3->data.tunn_hdr_size_w = + tunn_hdr_size; + } + } } /* Handle fragmented MBUF */ @@ -1709,8 +1812,7 @@ static inline uint32_t qede_rx_cqe_to_tunn_pkt_type(uint16_t flags) rte_cpu_to_le_16(ecore_chain_get_prod_idx(&txq->tx_pbl)); #ifdef RTE_LIBRTE_QEDE_DEBUG_TX print_tx_bd_info(txq, bd1, bd2, bd3, tx_ol_flags); - PMD_TX_LOG(INFO, txq, "lso=%d tunn=%d ipv6_ext=%d\n", - lso_flg, tunn_flg, ipv6_ext_flg); + PMD_TX_LOG(INFO, txq, "lso=%d tunn=%d", lso_flg, tunn_flg); #endif nb_pkt_sent++; txq->xmit_pkts++; diff --git a/drivers/net/qede/qede_rxtx.h b/drivers/net/qede/qede_rxtx.h index 3f38d0f..b551fd6 100644 --- a/drivers/net/qede/qede_rxtx.h +++ b/drivers/net/qede/qede_rxtx.h @@ -135,7 +135,8 @@ #define QEDE_TX_OFFLOAD_MASK (QEDE_TX_CSUM_OFFLOAD_MASK | \ PKT_TX_QINQ_PKT | \ PKT_TX_VLAN_PKT | \ - PKT_TX_TUNNEL_VXLAN) + PKT_TX_TUNNEL_VXLAN | \ + PKT_TX_TUNNEL_MPLSINUDP) #define QEDE_TX_OFFLOAD_NOTSUP_MASK \ (PKT_TX_OFFLOAD_MASK ^ QEDE_TX_OFFLOAD_MASK) -- 1.7.10.3