From: Andre Muezerie <andremue@linux.microsoft.com>
To: dev@dpdk.org
Cc: Konstantin Ananyev <konstantin.ananyev@huawei.com>, stable@dpdk.org
Subject: [PATCH v12 08/21] gro: fix overwrite unprocessed packets
Date: Thu, 21 Nov 2024 13:41:25 -0800 [thread overview]
Message-ID: <1732225298-10322-9-git-send-email-andremue@linux.microsoft.com> (raw)
In-Reply-To: <1732225298-10322-1-git-send-email-andremue@linux.microsoft.com>
From: Konstantin Ananyev <konstantin.ananyev@huawei.com>
gro_vxlan_tcp4_tbl_timeout_flush() is called without taking into account
that first entries in pkts[] can be already occupied by
un-processed packets.
Fixes: 74080d7dcf31 ("gro: support IPv6 for TCP")
Cc: stable@dpdk.org
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@huawei.com>
Acked-by: Ferruh Yigit <ferruh.yigit@amd.com>
---
lib/gro/rte_gro.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/gro/rte_gro.c b/lib/gro/rte_gro.c
index d824eebd93..db86117609 100644
--- a/lib/gro/rte_gro.c
+++ b/lib/gro/rte_gro.c
@@ -327,7 +327,7 @@ rte_gro_reassemble_burst(struct rte_mbuf **pkts,
/* Flush all packets from the tables */
if (do_vxlan_tcp_gro) {
i += gro_vxlan_tcp4_tbl_timeout_flush(&vxlan_tcp_tbl,
- 0, pkts, nb_pkts);
+ 0, &pkts[i], nb_pkts - i);
}
if (do_vxlan_udp_gro) {
--
2.47.0.vfs.0.3
prev parent reply other threads:[~2024-11-21 21:41 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1713397319-26135-1-git-send-email-roretzla@linux.microsoft.com>
[not found] ` <1731026691-1529-1-git-send-email-andremue@linux.microsoft.com>
2024-11-08 0:44 ` [PATCH v5 08/20] net/ice: remove use of VLAs for Windows built code Andre Muezerie
2024-11-08 8:51 ` Bruce Richardson
2024-11-08 10:18 ` Konstantin Ananyev
2024-11-08 21:21 ` Andre Muezerie
2024-11-08 21:17 ` Andre Muezerie
[not found] ` <1731116892-17109-1-git-send-email-andremue@linux.microsoft.com>
2024-11-09 1:48 ` [PATCH v6 08/20] gro: fix overwrite unprocessed packets Andre Muezerie
[not found] ` <1731376933-19275-1-git-send-email-andremue@linux.microsoft.com>
2024-11-12 2:02 ` [PATCH v7 08/21] " Andre Muezerie
[not found] ` <1732063048-12298-1-git-send-email-andremue@linux.microsoft.com>
2024-11-20 0:37 ` [PATCH v8 " Andre Muezerie
[not found] ` <1732067686-5938-1-git-send-email-andremue@linux.microsoft.com>
2024-11-20 1:54 ` [PATCH v9 " Andre Muezerie
[not found] ` <1732072401-15962-1-git-send-email-andremue@linux.microsoft.com>
2024-11-20 3:13 ` [PATCH v10 " Andre Muezerie
[not found] ` <1732216998-3899-1-git-send-email-andremue@linux.microsoft.com>
2024-11-21 19:23 ` [PATCH v11 " Andre Muezerie
[not found] ` <1732225298-10322-1-git-send-email-andremue@linux.microsoft.com>
2024-11-21 21:41 ` Andre Muezerie [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1732225298-10322-9-git-send-email-andremue@linux.microsoft.com \
--to=andremue@linux.microsoft.com \
--cc=dev@dpdk.org \
--cc=konstantin.ananyev@huawei.com \
--cc=stable@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).