From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20052.outbound.protection.outlook.com [40.107.2.52]) by dpdk.org (Postfix) with ESMTP id 28E0011D4; Wed, 30 Aug 2017 09:07:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=3VP9C8XmTwDWc3isa4e1JSrIPawYbvQBNHdr2L/6OtA=; b=yGSz54MFzJ7/gI3bfiCITiOZEr0IgECFGyC2mYvr6CGlSooB2QjaY3y2PUNgAH5v9HE0lDxuSfh9o710fwuF3IyyauMEzz3+DRXbHMQZdNbMooQjdRyacr2BH77kCvZ2j3FeJ73Lg+acWEiv7i7iqIb54eJXFDo2kPLKlCOBX54= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; Received: from mellanox.com (82.166.227.17) by AM4PR05MB3138.eurprd05.prod.outlook.com (2603:10a6:205:3::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1385.9; Wed, 30 Aug 2017 07:07:19 +0000 From: Shahaf Shuler To: nelio.laranjeiro@6wind.com, adrien.mazarguil@6wind.com Cc: dev@dpdk.org, stable@dpdk.org Date: Wed, 30 Aug 2017 10:07:08 +0300 Message-Id: <22e16781b4231bc202a377f95e51cdeb999598bf.1504076528.git.shahafs@mellanox.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170823073358.116786-1-shahafs@mellanox.com> References: <20170823073358.116786-1-shahafs@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [82.166.227.17] X-ClientProxiedBy: HE1PR09CA0090.eurprd09.prod.outlook.com (2603:10a6:7:3d::34) To AM4PR05MB3138.eurprd05.prod.outlook.com (2603:10a6:205:3::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 15fbce76-c971-473b-705b-08d4ef75c1bc X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(48565401081)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:AM4PR05MB3138; X-Microsoft-Exchange-Diagnostics: 1; AM4PR05MB3138; 3:hZumbwTop+ndyOOH82uOAfGuLNNCQ5XDBp7A5mYa2ZS+8tys8Ti63KnF8rIIYh7/oWUas1kok7VaKpI+T+w3V+Mus/RazN5vaP0GjAEWX/XH5raeXJdTErV2R1054Xa3AnWfemWk2xwkw0IfG0JsU3R4i2rSF+BgBlelRMKLQROCx88d3FaPr3hR5YOO6X5T4qUk3cxme57Znl9zaM5LH77KK4dnEoL0U62kGld7wJjS1AXe0fKVhLtByql7H0mj; 25:imN4rSTZYOTpvD0rZpHCINcoqd2jlvhAvjqOfQ6DDnK4ciYohDta5DHUVHLP5avz6KxUXyrtJcjXOmIr4MiHC0C7qXxflh4Gc7SUxsx+fSONFTc9O8QO3SSP//3TTIYlswu2n/Z/XLw5W4vHxha1Fxzcho1KOe2MGO8IHIeX2U1kOpg3iXnLKHT7iHYhVgIxAIeFqiEhrrezJRqnxYtM4tyuvOcRIQtci6LyNK2HDbk9M51vEI6Mh9NASo7iJlCDwSvf4f5HEMtp4kzu7PbScLAT6hX/sU9axz35n2pgsEdkG84rkh2UjpzxkFIxq5xcf0njjXbbZeylAP2XDWthsA==; 31:PWXzEwd8UjwR2E2WZ10Y83QP1EVBQnSjODrb29wvfqDuWVU2Lh0ucCiFOL2ib/MQsNVnvJ5J06QYoUgEf89H1gGGN8ewUmhvfp4GWvlal3tDogOMvpppWEPyiQ02dnerqspJAYAXkCiRStSWP3XfERTlHSaNasfkYRgHHrfwFETVEIsyCM8JrAF3b/wX7QhMHMGHg5YNFkQJLHAyPWQwuyPRPdUHsseRlrRdBvQlCZs= X-MS-TrafficTypeDiagnostic: AM4PR05MB3138: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; AM4PR05MB3138; 20:n1ss5Sq4s+EAGxCMqyq/ObYaUODDYl99VIXoJOl87McO/c4nDF+LYgBOqYtV24pvLqv7SEQ/JGcW6T1KPTVEWf++w+JTl+H2uTbGc3OTGP+4+QrywYvqcGAjlYxhYedjBAvWUUvbJMoDLwe4g70qJT1+avWhJjG0Hr7BYPBWypTxSnilS/U5AnW56P9tQVYiOlrtXrPxQFWqJknlX9QGddcAqqmWNBtAvx51JmhX532I2hwR2k3HXiehMxWpWl6POFg8WWsdIMOPcw20Cq6tHouz5kFOGCxpWi0k9NFGRvHlM1WzIjhsW8l4Sh4a37sAKOsHoZo74tMn5ZFe9aY4xotefeKs8D1vRAUR4MTtM+oN1rK+2gB+wL/VmM4pn0muNxyj1eLhY4kihyV5VmGoETAEb2NAZCi1tk1Rd5jaVjRwjYl1yS/OoTIhfVRHcImPFmDy0uupN5xLv3mOjDX6IJyqKQKzIWLEfozolggNZG9zycux0wTAq059DvlOYDJV; 4:vIHvK+lYk1+bKd+WvtMf9RVwxhbG+IUgcpNo5QkG6bpGJNmRH2KHwGr+wC3BJX5pUA5t9xxON/06UWbHINacH8khhLUv08BJ8QJnc3tGwnFZumkJo+s4v3f79xl/J/vDfdETgIxYR8RHJpfph9tGwXDTE6oxnY5kDLT4QHplsyKtw3NyvaSP+zA9FsYDDlKC7nePE8E2RJqEQ6TnGOzSL8MVFcu9PgPgx//sUupYI49XuppuZuwffQD7p3TKAxJf X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6041248)(20161123562025)(20161123560025)(20161123558100)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:AM4PR05MB3138; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:AM4PR05MB3138; X-Forefront-PRVS: 041517DFAB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(7370300001)(6009001)(199003)(189002)(8676002)(6666003)(110136004)(6306002)(2906002)(53376002)(25786009)(966005)(97736004)(4326008)(66066001)(69596002)(305945005)(55016002)(68736007)(53936002)(6116002)(3846002)(7350300001)(86362001)(575784001)(478600001)(7736002)(50986999)(76176999)(101416001)(33026002)(21086003)(50226002)(81166006)(81156014)(106356001)(42186005)(36756003)(105586002)(189998001)(33646002)(50466002)(5003940100001)(118296001)(2950100002)(5660300001)(48376002)(47776003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3138; H:mellanox.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM4PR05MB3138; 23:SiLEY+8n9Su7OuWAys9LrnmL6HS8vqMMBB17ohpyy?= =?us-ascii?Q?3Us9SOm2pn/sE0/xPk8SJpfJ5dNSD2iNh8oTph1fSuUnks3EGASqKnAXJVPv?= =?us-ascii?Q?1tau2JpV2QV1P9k4mI1nt3iG0Pk7tWdDa947j5Jc96vBhhFInOq3/PlyG4yR?= =?us-ascii?Q?UWtXt2KPpP306a6P0rEyFHx/5z0g0TUd4tJICHFEkMrAV4RwF0Wp+A5tgeVq?= =?us-ascii?Q?/AgAGxRvY1IseDJEgOeBdd7DjjVC38uv5++ff4g/U9Yw4subZQqySKbw8SUJ?= =?us-ascii?Q?Vb2ZkT+jOQo4nMD7FmdZelWykAQv5Q6WdwIa53FQT7btwtdpqb4zJuUEh3ln?= =?us-ascii?Q?+CrQa4o7jjMEaa9+4+m2HThZgnKR94ECnNmiZ829mglgQxOhePIZmtXLcDrK?= =?us-ascii?Q?r3Hr42jW4czXmV34NN0YndNi1mCVha+ZUQ2ylZd6tM6xTBWxk9SM6X9jkNox?= =?us-ascii?Q?fiGor44eYsaeP5/f11GW/al2HG0o9zXwGMbDicduCswjI+Em9FG8jTMe4qFf?= =?us-ascii?Q?deV2e6S8o15EBTx7bEzFG8zjaQaGNT+UsPY00jXzE53Ta3rUoIhZZc6E+vOM?= =?us-ascii?Q?mEp2znXcKGM4h6Jb3mZqE1IDOsexYo5qVDnr1rWCaS8SG73AEtq0JyHC3gJ4?= =?us-ascii?Q?JSp+JfPtYGh1d2fMJNsod9dKaIuH1PF/xa7Ua9eaae1eASEcik5Rkd3xqWer?= =?us-ascii?Q?vnN0z6W1Iwxj6W2/IrAGG3Z6LJ6NPkEhjoBe7kgpRTysAItTenE6pioNQjUl?= =?us-ascii?Q?jx41ltDy9Y0J1Oo5H+JTgQcY6Bbi36yM5DqQ2A152i4lh7R7Knk2AvhnDUEZ?= =?us-ascii?Q?OKDU9B2IsY/aVIASOuKF5Zavv7ZTE/wUH2QmtUfBSTW83S7sR0NctpaKV7Nq?= =?us-ascii?Q?Kn3RUT+ON8E2S5xy803CbfXJoMY+Ev/EbZTeyqX8Bd+UrAkE5CF+mesz7qws?= =?us-ascii?Q?KpM6lHWykaVXMatvo8roAfnsNRnshhGFhEcIxLIMBvpAoOckPANs/829Hkcm?= =?us-ascii?Q?6OWtKoEz25SUlUfM2CmwD+p0HmlKSdT3Dzp4JpEwqtSIf9+OKIC8NHpTLe/W?= =?us-ascii?Q?yq+47s5W2ln4cbbKiCAs6s4H6ydJIYd+X7C5tRQVNcZJHYBfgayMMHHW6LrW?= =?us-ascii?Q?yt3NvcytU4KOITtjdWKiy2BG/II93QUIeWS4QAxlA4yiQqzuDgGTfdQMHpfa?= =?us-ascii?Q?YEavjAIZotfmZE=3D?= X-Microsoft-Exchange-Diagnostics: 1; AM4PR05MB3138; 6:zD//N2bRBetD5ip+kaDC0SFM5BEx4LFeWY2JWUVc6LBfoWxFBWXstdIT7qfdv1OQ4640E+wsaPOHeL4MS3DkWQq/QMvpQAlGv2ohWN+gfZWGIVlc+N7Qios8djWg/CI/zqBs1Cefjkdo2zp+y0hmmR93gL9g+xp3RmnjLg+/e+HZf5XghCuWfCP6eutl+f99DsDapY1894Hr6qkUAPNA+6bP9bpJ4bmb9klq3+zqBxY+2HzqY0f5moFWUK67BdA99M5cFGD19wlajbXcSe3j4ksbtO13++7km9rINlBgLUPrG/gKpFv5QAp93ezYcI3pzermCcHg9yu67KB3Ztg9IQ==; 5:4SSYVxSCwAmG/XduaU/VFVlJwqY8EUuHbMxePzrpTlPb2JaKdBiSfW0vzSTmy6tVE/VbOL6d41OnnPcnQbi5HlXEkAwPFVh6voeV3CpdswtHGIfHAAl7aGdIQK7HMpHSNB34t0YWtLqH9wZ0hvC+VA==; 24:o2O+5kJyU9FSgWdz6kPMuTxpOf+QFZBwTL5jir/0fwR4r85gJkYUpmdD10DZxZ0gezu7kzEr98uZmWQ7FMGkrNh+P6nDxgrcQLboj0kV9JA=; 7:7Qphle7giMABwWrJlvJqH4Dez+sRoPJjipKcN4XCMiLpFOnCSk2bRdjw649JgXNnAr6ifZz3Sc+yOKnDHHGwgBgtucTOjFnzZLGvYcL6h3v0YXKUFFCpqjn7I2xTYwED3IdXxhGC8UvlT0x7vDGMVbErSH/vbhR1Q0PpufKiaW/nPdSArO7fa8QZfXLhWpkCOuosJgjxgwV6jHrTBGqp5COdNK5qeDRI2jgQnJ64jWg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2017 07:07:19.8521 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3138 Subject: [dpdk-stable] [PATCH v2 2/2] net/mlx5: enforce Tx num of segments limitation X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Aug 2017 07:07:22 -0000 Mellanox NICs has a limitation on the number of mbuf segments a multi segment mbuf can have. The max number depends on the Tx offloads requested. The current code not enforce such limitation, which might cause malformed work requests to be written to the device. This commit adds verification for the number of mbuf segments posted to the device. In case of overflow the packet will not be sent. Debug prints were added to help application identify the cause for such case. In addition update the nic documentation with the limitation. Considering device limitation is 63 data segments in a work request, the maximum number of segment in mbuf was calculated taking TSO as the worst case: max_nb_segs = 63 - (control_segment + ethernet segment + TSO headers inline + inline segment + extra inline to align to cacheline) Cc: stable@dpdk.org Signed-off-by: Shahaf Shuler --- This patch should be applied only after the series: http://dpdk.org/dev/patchwork/patch/27367/ on v2: - remove parenthesis around MLX5_MAX_DS. - add limitation to nic guide. - update commit message. - fix typo. --- doc/guides/nics/mlx5.rst | 2 ++ drivers/net/mlx5/mlx5_defs.h | 3 ++- drivers/net/mlx5/mlx5_prm.h | 3 +++ drivers/net/mlx5/mlx5_rxtx.c | 30 +++++++++++++++++++++++++++--- drivers/net/mlx5/mlx5_rxtx_vec_sse.c | 8 ++++++++ drivers/net/mlx5/mlx5_txq.c | 27 +++++++++++++++++++++++++++ 6 files changed, 69 insertions(+), 4 deletions(-) diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst index f4cb18bca..d8244de97 100644 --- a/doc/guides/nics/mlx5.rst +++ b/doc/guides/nics/mlx5.rst @@ -124,6 +124,8 @@ Limitations Will match any ipv4 packet (VLAN included). +- A multi segment mbuf must have less than 50 segments. That means mbuf->nb_segs < 50. + Configuration ------------- diff --git a/drivers/net/mlx5/mlx5_defs.h b/drivers/net/mlx5/mlx5_defs.h index a76bc6f65..3de0e5d81 100644 --- a/drivers/net/mlx5/mlx5_defs.h +++ b/drivers/net/mlx5/mlx5_defs.h @@ -100,7 +100,8 @@ /* * Maximum size of burst for vectorized Tx. This is related to the maximum size - * of Enhaned MPW (eMPW) WQE as vectorized Tx is supported with eMPW. + * of Enhanced MPW (eMPW) WQE as vectorized Tx is supported with eMPW. + * Careful when changing, large value can cause wqe DS to overlap. */ #define MLX5_VPMD_TX_MAX_BURST 32U diff --git a/drivers/net/mlx5/mlx5_prm.h b/drivers/net/mlx5/mlx5_prm.h index 608072f7e..bc2b72333 100644 --- a/drivers/net/mlx5/mlx5_prm.h +++ b/drivers/net/mlx5/mlx5_prm.h @@ -154,6 +154,9 @@ /* Default mark value used when none is provided. */ #define MLX5_FLOW_MARK_DEFAULT 0xffffff +/* Maximum number of DS in WQE. */ +#define MLX5_MAX_DS 63 + /* Subset of struct mlx5_wqe_eth_seg. */ struct mlx5_wqe_eth_seg_small { uint32_t rsvd0; diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c index fe9e7eac0..d7aa382f9 100644 --- a/drivers/net/mlx5/mlx5_rxtx.c +++ b/drivers/net/mlx5/mlx5_rxtx.c @@ -657,6 +657,15 @@ mlx5_tx_burst(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) else j += sg; next_pkt: + if (ds > MLX5_MAX_DS) { +#ifndef NDEBUG + WARN("Cannot send packet %p with %d segments " + "wqe.ds = %d, wqe.inline_sz = %d", + (void *)pkts, (*pkts)->nb_segs, ds, + pkt_inline_sz); +#endif + break; + } ++elts_head; ++pkts; ++i; @@ -843,8 +852,13 @@ mlx5_tx_burst_mpw(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) if (max_elts < segs_n) break; /* Do not bother with large packets MPW cannot handle. */ - if (segs_n > MLX5_MPW_DSEG_MAX) + if (segs_n > MLX5_MPW_DSEG_MAX) { +#ifndef NDEBUG + WARN("Cannot send packet %p with %d segments", + (void *)buf, segs_n); +#endif break; + } max_elts -= segs_n; --pkts_n; /* Should we enable HW CKSUM offload */ @@ -1064,8 +1078,13 @@ mlx5_tx_burst_mpw_inline(void *dpdk_txq, struct rte_mbuf **pkts, if (max_elts < segs_n) break; /* Do not bother with large packets MPW cannot handle. */ - if (segs_n > MLX5_MPW_DSEG_MAX) + if (segs_n > MLX5_MPW_DSEG_MAX) { +#ifndef NDEBUG + WARN("Cannot send packet %p with %d segments", + (void *)buf, segs_n); +#endif break; + } max_elts -= segs_n; --pkts_n; /* @@ -1353,8 +1372,13 @@ mlx5_tx_burst_empw(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) if (max_elts - j < segs_n) break; /* Do not bother with large packets MPW cannot handle. */ - if (segs_n > MLX5_MPW_DSEG_MAX) + if (segs_n > MLX5_MPW_DSEG_MAX) { +#ifndef NDEBUG + WARN("Cannot send packet %p with %d segments", + (void *)buf, segs_n); +#endif break; + } /* Should we enable HW CKSUM offload. */ if (buf->ol_flags & (PKT_TX_IP_CKSUM | PKT_TX_TCP_CKSUM | PKT_TX_UDP_CKSUM)) diff --git a/drivers/net/mlx5/mlx5_rxtx_vec_sse.c b/drivers/net/mlx5/mlx5_rxtx_vec_sse.c index f89762ff8..9d6f6df32 100644 --- a/drivers/net/mlx5/mlx5_rxtx_vec_sse.c +++ b/drivers/net/mlx5/mlx5_rxtx_vec_sse.c @@ -248,6 +248,13 @@ txq_scatter_v(struct txq *txq, struct rte_mbuf **pkts, uint16_t pkts_n) if (segs_n == 1 || max_elts < segs_n || max_wqe < 2) break; + if (segs_n > MLX5_MPW_DSEG_MAX) { +#ifndef NDEBUG + WARN("Cannot send packet %p with %d segments", + (void *)buf, segs_n); +#endif + break; + } wqe = &((volatile struct mlx5_wqe64 *) txq->wqes)[wqe_ci & wq_mask].hdr; if (buf->ol_flags & @@ -365,6 +372,7 @@ txq_burst_v(struct txq *txq, struct rte_mbuf **pkts, uint16_t pkts_n, max_elts = (elts_n - (elts_head - txq->elts_tail)); max_wqe = (1u << txq->wqe_n) - (txq->wqe_ci - txq->wqe_pi); pkts_n = RTE_MIN((unsigned int)RTE_MIN(pkts_n, max_wqe), max_elts); + assert(pkts_n <= MLX5_MAX_DS - nb_dword_in_hdr); if (unlikely(!pkts_n)) return 0; elts = &(*txq->elts)[elts_head & elts_m]; diff --git a/drivers/net/mlx5/mlx5_txq.c b/drivers/net/mlx5/mlx5_txq.c index 4b0b532b1..091b1a93d 100644 --- a/drivers/net/mlx5/mlx5_txq.c +++ b/drivers/net/mlx5/mlx5_txq.c @@ -288,6 +288,8 @@ txq_ctrl_setup(struct rte_eth_dev *dev, struct txq_ctrl *txq_ctrl, .comp_mask = IBV_EXP_QP_INIT_ATTR_PD, }; if (priv->txq_inline && (priv->txqs_n >= priv->txqs_inline)) { + unsigned int ds_cnt; + tmpl.txq.max_inline = ((priv->txq_inline + (RTE_CACHE_LINE_SIZE - 1)) / RTE_CACHE_LINE_SIZE); @@ -320,6 +322,31 @@ txq_ctrl_setup(struct rte_eth_dev *dev, struct txq_ctrl *txq_ctrl, attr.init.cap.max_inline_data = tmpl.txq.max_inline * RTE_CACHE_LINE_SIZE; } + /* + * Check if the inline size is too large in a way which + * can make the wqe DS to overflow. + * Considering in calculation: + * WQE CTRL (1 DS) + * WQE ETH (1 DS) + * inline part (N DS) + */ + ds_cnt = 2 + + (attr.init.cap.max_inline_data / MLX5_WQE_DWORD_SIZE); + if (ds_cnt > MLX5_MAX_DS) { + unsigned int max_inline = (MLX5_MAX_DS - 2) * + MLX5_WQE_DWORD_SIZE; + + /* Ceil down*/ + max_inline = max_inline - (max_inline % + RTE_CACHE_LINE_SIZE); + WARN("txq inline is too large (%d) setting it to " + "the maximum possible: %d\n", + priv->txq_inline, max_inline); + tmpl.txq.max_inline = max_inline / RTE_CACHE_LINE_SIZE; + attr.init.cap.max_inline_data = max_inline; + if (priv->mps == MLX5_MPW_ENHANCED) + tmpl.txq.inline_max_packet_sz = max_inline; + } } if (priv->tso) { attr.init.max_tso_header = -- 2.12.0