From patchwork Fri Oct 14 01:48:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Qiu X-Patchwork-Id: 118170 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 133BCA00C2; Fri, 14 Oct 2022 03:49:00 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 992A14014F; Fri, 14 Oct 2022 03:48:59 +0200 (CEST) Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2065.outbound.protection.outlook.com [40.107.215.65]) by mails.dpdk.org (Postfix) with ESMTP id 4FC7B400D4 for ; Fri, 14 Oct 2022 03:48:58 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q7HXr2dDB35WusAWTKbRyhEV3Wy3MWamNCo0uozzNLZIIesni5uBpi7+Vh1x8tfInJ6Et08W7r0E0x3vix9tMXnYVbaLP4uJ9/sCoZ0hIN5yA5aOxjDZxj9OdzIDNLoMPeO8u7b+UdlA9HpvkOtoHEfhkiJ6Csu0UWdCArQX//OGBUn1QrbBnCFoNmRF4Fj0ZEGE86Qy3gIHt2zZAca8Fcb4CXAknIrDl87QmLNAu3bSEA/E+bOfzoMchdOKrJyvwXDKsylPWBsiOpUuW2SvEo66Arnip6/HF6RTAspSfTQ3QbDSehi7fuHnoXIomPYonUZtOLSFxSW2a46dmM6J+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=tXmsVyY9zl/7lhRsejejrwRoeUK4SJgtIMunFtzvPDE=; b=N0ArEI9yiuOGf/JVw5oZGPPhyddlUxZASa9Vln/rcdrXIHcB/0hflW3RzAfuVKzv3lw7w3s3P9fmac2hYXONFjSeimoHnEZ9b0LdO5+jDt9Yo9bpbjaHJfbdTfOiYwMMoHshwBE/AmfnoOGUGduJLMQauQc40SHJOXuDbe75QlCnnNXP5nIkeQa7oPFxS+u6hxr57IiODBCQkaMbqSVXrkZ/dwzloVS8LCgPPly0h5lmP27cmmLwR+yyVqL0jBwNuV1HL77j6/TbvR6GgBFLAL4n4lBrOKZk02D0jdjAWUYX67XT6gjeruF0caCJjQKIlplkbiBKGASfDynXMCkjog== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=jaguarmicro.com; dmarc=pass action=none header.from=jaguarmicro.com; dkim=pass header.d=jaguarmicro.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jaguarmicro.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tXmsVyY9zl/7lhRsejejrwRoeUK4SJgtIMunFtzvPDE=; b=dIUF3Y28TENR+ESzs4iOZCNK8trT30cUAAUkd83TJrirCaUBluiO42zY0we8wqQnu9Iqzb0Lal538f0wdHKbFSsBsAoUpieW5DAb1YIUxBf1AoHO0VmSR6jr7sxPKpCG+l4CveZO3aeMRnplECTz2H4LpxC4imt+RiUNiBGas+Cb891v+DmQxK6c6UuCT5/lM+U34I9Z91yxlyWZhsvS/7ca/koITlR4vh7ZNBdLwOf0EkfPkf67hUM0y7AN4UYDxJzNj91tdVjkbUx04VgyTW8Uctygnus4qJnuVQ7jTFhXLV9+9085icMpeZ1fWuZdXhfnlb5Rb1KaZYJknj3JjQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=jaguarmicro.com; Received: from TY0PR06MB5683.apcprd06.prod.outlook.com (2603:1096:400:273::6) by SI2PR06MB4153.apcprd06.prod.outlook.com (2603:1096:4:f5::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.26; Fri, 14 Oct 2022 01:48:53 +0000 Received: from TY0PR06MB5683.apcprd06.prod.outlook.com ([fe80::ffe:bed9:6923:1925]) by TY0PR06MB5683.apcprd06.prod.outlook.com ([fe80::ffe:bed9:6923:1925%8]) with mapi id 15.20.5709.021; Fri, 14 Oct 2022 01:48:53 +0000 From: Jun Qiu To: dev@dpdk.org Cc: jiayu.hu@intel.com Subject: [PATCH v2] gro: fix gro with tcp push flag Date: Fri, 14 Oct 2022 01:48:20 +0000 Message-Id: <20221014014820.3506-1-jun.qiu@jaguarmicro.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220726061741.21021-1-jun.qiu@jaguarmicro.com> References: <20220726061741.21021-1-jun.qiu@jaguarmicro.com> X-ClientProxiedBy: SG2PR01CA0198.apcprd01.prod.exchangelabs.com (2603:1096:4:189::7) To TY0PR06MB5683.apcprd06.prod.outlook.com (2603:1096:400:273::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TY0PR06MB5683:EE_|SI2PR06MB4153:EE_ X-MS-Office365-Filtering-Correlation-Id: c703c111-c9c2-4410-a014-08daad863f6d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: C+jab4ONN6HDT9qvi9+9gVJMRYVLFyNzWT7XlCJidjTErjPNs9pcuwF1dOMEkxmfKFHs47WJaLQ+TBdN5fOYQT8FCml7b394mnv/Arcyxs5Tpz3HPAYpYLyH/NxubE4vlHyVjzsITFhUsMFpiK+ISQu7W1O5PkopLYK+zynz1r3aSKU/e50cJVzLYowtEJPnjjHLOsi5tWGazUFHm5EypGau1rj/RZFGM0FEDp58J/J1wZMPoUqxofRbOqVvazf4oc+0sC/A4IPOupt0dobZtAuQjNRDZOvcmNZ91uFIb2HWKTlvRo50I1chOX8RTeAqcrnLis77pXiDhXl0f30+wQvuRh80EUOMmUklJ/o/Vg94Mqmguo7zwCvKQD0IXBmCMvbdJDVG+DC1cqsCcyfRHzA9YMGzkYxMGZnI4PDs1lKTojGlDNJr4J6wLumsRAKy7lFGrbqo5KfiKIEKkMxkbBhHrJrJM9VLsLQVKzGcv2DNhNjb18mojfaMzuOzlvlfNy4zcMuPLePtzKnbk/2uEbncSlNFbNQiB78YxnjGXMqqPNETNBceevtQvjGp7SL6M94jCIBdjoGF5Ig+31fnkkSfLBj/i3Sl86A3+ediBfyqKqMqshR58kZZiNUtOyVYiaeLVsoY5A9C0frQaBveLvzsPy/DkxEYBowGXCo0u8SOYn9tnxEWBID8DQT/Biu+cyPrj3lFQAaRhYQ1x6aK6AaAfMkBkfCMADxgbDepZyxfFJNC6uS7meaFzsPLHtXkzoyLAshZjoDj4GJjbajsXQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TY0PR06MB5683.apcprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(136003)(366004)(376002)(396003)(346002)(39830400003)(451199015)(5660300002)(44832011)(1076003)(2616005)(2906002)(186003)(52116002)(41300700001)(6512007)(6506007)(8936002)(26005)(38100700002)(38350700002)(86362001)(36756003)(83380400001)(316002)(6916009)(6666004)(478600001)(6486002)(66556008)(4326008)(66946007)(66476007)(8676002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: aAFb4EObKETb+tl9i5Nh3JK+JayzsGLALL+iP0IlHEsnVkUC3wuKTLiWWHub3gN2/6Qe4rKIuyo/h7g/gOgLBGgxQmf1vtFk+kgB0sN6TES9TTwXcAdmlKzcvRI7Zze9GKZPL3YLzoyqMdcSh37Wrb0cpZH8kLyYbxbZK8C9cFTFCqGWHUtm+d2KLnPCiPuVWS8P1tsUs4geWRhV8lved6eeBYnskytgtdA6tjAuRasNcyMnmrEgMKxFahRoPaxfng6OzK/r7xao+B+X59JJ5jXenQqkp9qw5fXuTvAPr7LVm9F3yTK+ubAX2fk20zwMCKwKebBGJFJ7AQ8/rRALB0Lg9oQQ4p9ncxtqXv1qYeX0vd2EgB/1yzvGTdzxPFCDT+MKSfRPInGn4y8z+me9SoNsdSQVkP5HdRrQWpK/d+atsr8sgDGaM6Wx0TKI7sYUSBdRypvD2P/5SshinlH2zZ+jWEsyQMcsJfIEWlZwXSxGyNzMIJGGh/4ZDW4AHcaYYdLXnAP+8biC/3Zi/jc8cnjpsSXRJtwhHYWlLEfJMzQZueKp8VXq0GzllQu5JRS9qQ4btgrz5H3FlX+xTEDxUqTQicn4ycEqNDsVsyJAwU2L7qIKb/QnRMmzWuC0MIxITezysX6O5lHl1alGK4JDoX+d020XJpqFXigzC88yCNA4l874VTdOlQ4nLctgrfd4HCU/wIeicg2pxHxt7tBiP+xGZnJSSFsNI9+AjlyXd+S6Ag4EIB1VlgediGAMA8p5D5AzNqIUa1d64qN2RW97M2cLXkXOi94E5HeONQZ0l+8C62ytfh4tivUoBpedf1FqmRyNKjOSKB2JUNFjTWXnnis/+MeRLGBboRvuDxQS0+sAic8vM1gPMUmXwJbXKFWJS+pHrhFeooZ/c2mZTWgZYhDUyqIL9kKlA6AF/k707BSn8KyJ3bzYFYpPdVb6dv3QkXxNDgm8nSPuUTwUkf9KWs978mQUZc5TNvSAsYAp/VSDdbBtk/2mNM0E0P4L+6HSDAko0LQaZDhXsi5CKvKmk/Xza79QG4P/T+I0WYPEYuXBA1cH8MmMmTq9zFNbvU03xLfhX5S+wAOheqTvLrX1pL6wzcfg0rPCn93Y8BBsKtbnHmTF+C4VL9WTmD5ZEl5x0C3h86s9F3yVDUej4eQlUD57WSu7MAxUxt1hDfd02J2sCZ4Jgl3VT657NqfDPX98CJJZ+TdmBCWwe48bXUVHDysq1Fo76X0lXG8319o65JjbbF3Cct5p9/ABpx7MRC4X2SyWdwTGfpvdmEuNz0rD2HN+c5cWnQqGj74U4VgRTWjDtf+utJ4CUAB6rp38wK2ZcjLhFd62tpRD/FRaXrCue5Aog3hL4OQwxYOjEveoF/DBnNotJ6vz+7uuCvT6pyjTBXXr9a6wTKEx6OWBPyCgi/hgAACLlOmD3Iq35TlP6fI+oM1zL84gJ4YZ02/i9pzp8Rr8BaCh0JS+gMekCbvLiTejeXJ3ndGCI5pCxClvOgCq3xw8Mtmy9KZHj3NuHkiZVtI843VwqfHm2ClcoA9T/umblzkv4CVl4tDAlGyua01XyIjCtQGBoCpcTwltCrZsWHu/uigQA7V8zOsrOJX+6g== X-OriginatorOrg: jaguarmicro.com X-MS-Exchange-CrossTenant-Network-Message-Id: c703c111-c9c2-4410-a014-08daad863f6d X-MS-Exchange-CrossTenant-AuthSource: TY0PR06MB5683.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Oct 2022 01:48:52.9593 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 1e45a5c2-d3e1-46b3-a0e6-c5ebf6d8ba7b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 4YKJtzCqOw2oLraXwHcnb5IQrbLIa+eAIvKFw40mLDBfgs2FoZf1CxDg+NB5KFGhGqeKi4CdkKkDrHHUG8SqtA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB4153 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org TCP data packets sometimes carry a PUSH flag. Currently, only the packets that do not have PUSH flag can be GROed. The packets that have a PUSH flag cannot be GROed, the packets that cannot be processed by GRO are placed last. In this case, the received packets may be out of order. For example, there are two packets mbuf1 and mbuf2. mbuf1 contains PUSH flag, mbuf2 does not contain PUSH flag. After GRO processing, mbuf2 is sent for processing before mbuf1. This out-of-order will affect TCP processing performance and lead to unnecessary dup-ACK. Referring to the Linux kernel implementation, packets with PUSH flag can also perform GRO. And if one of the packets containing PUSH flag, the packets after GRO will carry PUSH flag. Fixes: 0d2cbe59b719 ("lib/gro: support TCP/IPv4") Cc: stable@dpdk.org Signed-off-by: Jun Qiu --- lib/gro/gro_tcp4.c | 13 +++++++++---- lib/gro/gro_tcp4.h | 5 ++++- lib/gro/gro_vxlan_tcp4.c | 15 ++++++++++----- lib/gro/gro_vxlan_tcp4.h | 3 ++- lib/gro/rte_gro.c | 12 ++++++++---- lib/gro/rte_gro.h | 5 +++++ 6 files changed, 38 insertions(+), 15 deletions(-) diff --git a/lib/gro/gro_tcp4.c b/lib/gro/gro_tcp4.c index 0110db5748..b93eb5e6a4 100644 --- a/lib/gro/gro_tcp4.c +++ b/lib/gro/gro_tcp4.c @@ -6,6 +6,7 @@ #include #include +#include "rte_gro.h" #include "gro_tcp4.h" void * @@ -191,7 +192,8 @@ update_header(struct gro_tcp4_item *item) int32_t gro_tcp4_reassemble(struct rte_mbuf *pkt, struct gro_tcp4_tbl *tbl, - uint64_t start_time) + uint64_t start_time, + uint16_t flags) { struct rte_ether_hdr *eth_hdr; struct rte_ipv4_hdr *ipv4_hdr; @@ -205,7 +207,7 @@ gro_tcp4_reassemble(struct rte_mbuf *pkt, uint32_t cur_idx, prev_idx, item_idx; uint32_t i, max_flow_num, remaining_flow_num; int cmp; - uint8_t find; + uint8_t find, tcp_flags; /* * Don't process the packet whose TCP header length is greater @@ -221,9 +223,12 @@ gro_tcp4_reassemble(struct rte_mbuf *pkt, /* * Don't process the packet which has FIN, SYN, RST, URG, ECE - * or CWR set. + * or CWR set, the PSH flag is ignored at the user's discretion. */ - if (tcp_hdr->tcp_flags & (~(RTE_TCP_ACK_FLAG | RTE_TCP_PSH_FLAG))) + tcp_flags = tcp_hdr->tcp_flags & (~(RTE_TCP_ACK_FLAG)); + if (flags & RTE_GRO_TCP_PUSH_IGNORE) + tcp_flags = tcp_flags & (~(RTE_TCP_PSH_FLAG)); + if (tcp_flags) return -1; /* * Don't process the packet whose payload length is less than or diff --git a/lib/gro/gro_tcp4.h b/lib/gro/gro_tcp4.h index 2974faf228..b005bfe7a0 100644 --- a/lib/gro/gro_tcp4.h +++ b/lib/gro/gro_tcp4.h @@ -134,6 +134,8 @@ void gro_tcp4_tbl_destroy(void *tbl); * Pointer pointing to the TCP/IPv4 reassembly table * @start_time * The time when the packet is inserted into the table + * @flags + * Functional flags for GRO * * @return * - Return a positive value if the packet is merged. @@ -143,7 +145,8 @@ void gro_tcp4_tbl_destroy(void *tbl); */ int32_t gro_tcp4_reassemble(struct rte_mbuf *pkt, struct gro_tcp4_tbl *tbl, - uint64_t start_time); + uint64_t start_time, + uint16_t flags); /** * This function flushes timeout packets in a TCP/IPv4 reassembly table, diff --git a/lib/gro/gro_vxlan_tcp4.c b/lib/gro/gro_vxlan_tcp4.c index 884802af0b..c7282139ee 100644 --- a/lib/gro/gro_vxlan_tcp4.c +++ b/lib/gro/gro_vxlan_tcp4.c @@ -7,6 +7,7 @@ #include #include +#include "rte_gro.h" #include "gro_vxlan_tcp4.h" void * @@ -287,7 +288,8 @@ update_vxlan_header(struct gro_vxlan_tcp4_item *item) int32_t gro_vxlan_tcp4_reassemble(struct rte_mbuf *pkt, struct gro_vxlan_tcp4_tbl *tbl, - uint64_t start_time) + uint64_t start_time, + uint16_t flags) { struct rte_ether_hdr *outer_eth_hdr, *eth_hdr; struct rte_ipv4_hdr *outer_ipv4_hdr, *ipv4_hdr; @@ -304,7 +306,7 @@ gro_vxlan_tcp4_reassemble(struct rte_mbuf *pkt, uint32_t i, max_flow_num, remaining_flow_num; int cmp; uint16_t hdr_len; - uint8_t find; + uint8_t find, tcp_flags; /* * Don't process the packet whose TCP header length is greater @@ -326,10 +328,13 @@ gro_vxlan_tcp4_reassemble(struct rte_mbuf *pkt, tcp_hdr = (struct rte_tcp_hdr *)((char *)ipv4_hdr + pkt->l3_len); /* - * Don't process the packet which has FIN, SYN, RST, URG, - * ECE or CWR set. + * Don't process the packet which has FIN, SYN, RST, URG, ECE + * or CWR set, the PSH flag is ignored at the user's discretion. */ - if (tcp_hdr->tcp_flags & (~(RTE_TCP_ACK_FLAG | RTE_TCP_PSH_FLAG))) + tcp_flags = tcp_hdr->tcp_flags & (~(RTE_TCP_ACK_FLAG)); + if (flags & RTE_GRO_TCP_PUSH_IGNORE) + tcp_flags = tcp_flags & (~(RTE_TCP_PSH_FLAG)); + if (tcp_flags) return -1; hdr_len = pkt->outer_l2_len + pkt->outer_l3_len + pkt->l2_len + diff --git a/lib/gro/gro_vxlan_tcp4.h b/lib/gro/gro_vxlan_tcp4.h index 7832942a68..7b1d20b97c 100644 --- a/lib/gro/gro_vxlan_tcp4.h +++ b/lib/gro/gro_vxlan_tcp4.h @@ -117,7 +117,8 @@ void gro_vxlan_tcp4_tbl_destroy(void *tbl); */ int32_t gro_vxlan_tcp4_reassemble(struct rte_mbuf *pkt, struct gro_vxlan_tcp4_tbl *tbl, - uint64_t start_time); + uint64_t start_time, + uint16_t flags); /** * This function flushes timeout packets in the VxLAN reassembly table, diff --git a/lib/gro/rte_gro.c b/lib/gro/rte_gro.c index e35399fd42..ce9ac81142 100644 --- a/lib/gro/rte_gro.c +++ b/lib/gro/rte_gro.c @@ -77,6 +77,8 @@ struct gro_ctx { uint64_t gro_types; /* reassembly tables */ void *tbls[RTE_GRO_TYPE_MAX_NUM]; + /**< Functional flags for GRO */ + uint16_t flags; }; void * @@ -116,6 +118,7 @@ rte_gro_ctx_create(const struct rte_gro_param *param) gro_types |= gro_type_flag; } gro_ctx->gro_types = param->gro_types; + gro_ctx->flags = param->flags; return gro_ctx; } @@ -245,7 +248,8 @@ rte_gro_reassemble_burst(struct rte_mbuf **pkts, if (IS_IPV4_VXLAN_TCP4_PKT(pkts[i]->packet_type) && do_vxlan_tcp_gro) { ret = gro_vxlan_tcp4_reassemble(pkts[i], - &vxlan_tcp_tbl, 0); + &vxlan_tcp_tbl, 0, + param->flags); if (ret > 0) /* Merge successfully */ nb_after_gro--; @@ -262,7 +266,7 @@ rte_gro_reassemble_burst(struct rte_mbuf **pkts, unprocess_pkts[unprocess_num++] = pkts[i]; } else if (IS_IPV4_TCP_PKT(pkts[i]->packet_type) && do_tcp4_gro) { - ret = gro_tcp4_reassemble(pkts[i], &tcp_tbl, 0); + ret = gro_tcp4_reassemble(pkts[i], &tcp_tbl, 0, param->flags); if (ret > 0) /* merge successfully */ nb_after_gro--; @@ -354,7 +358,7 @@ rte_gro_reassemble(struct rte_mbuf **pkts, if (IS_IPV4_VXLAN_TCP4_PKT(pkts[i]->packet_type) && do_vxlan_tcp_gro) { if (gro_vxlan_tcp4_reassemble(pkts[i], vxlan_tcp_tbl, - current_time) < 0) + current_time, gro_ctx->flags) < 0) unprocess_pkts[unprocess_num++] = pkts[i]; } else if (IS_IPV4_VXLAN_UDP4_PKT(pkts[i]->packet_type) && do_vxlan_udp_gro) { @@ -364,7 +368,7 @@ rte_gro_reassemble(struct rte_mbuf **pkts, } else if (IS_IPV4_TCP_PKT(pkts[i]->packet_type) && do_tcp4_gro) { if (gro_tcp4_reassemble(pkts[i], tcp_tbl, - current_time) < 0) + current_time, gro_ctx->flags) < 0) unprocess_pkts[unprocess_num++] = pkts[i]; } else if (IS_IPV4_UDP_PKT(pkts[i]->packet_type) && do_udp4_gro) { diff --git a/lib/gro/rte_gro.h b/lib/gro/rte_gro.h index 9f9ed4935a..691b8a26cf 100644 --- a/lib/gro/rte_gro.h +++ b/lib/gro/rte_gro.h @@ -39,6 +39,7 @@ extern "C" { #define RTE_GRO_IPV4_VXLAN_UDP_IPV4 (1ULL << RTE_GRO_IPV4_VXLAN_UDP_IPV4_INDEX) /**< VxLAN UDP/IPv4 GRO flag. */ +#define RTE_GRO_TCP_PUSH_IGNORE 0x01 /** * Structure used to create GRO context objects or used to pass * application-determined parameters to rte_gro_reassemble_burst(). @@ -55,6 +56,10 @@ struct rte_gro_param { * like reassembly tables. When use rte_gro_reassemble_burst(), * applications don't need to set this value. */ + uint16_t flags; + /**< Functional flags for GRO, For example, + * merge TCP packets with push flag. + */ }; /**