* [RFC 1/4] gro: fix overwrite unprocessed packets [not found] <20240523162604.2600-1-konstantin.v.ananyev@yandex.ru> @ 2024-05-23 16:26 ` Konstantin Ananyev 2024-06-12 0:48 ` Ferruh Yigit 0 siblings, 1 reply; 2+ messages in thread From: Konstantin Ananyev @ 2024-05-23 16:26 UTC (permalink / raw) To: dev Cc: hujiayu.hu, roretzla, bruce.richardson, anatoly.burakov, vladimir.medvedkin, Konstantin Ananyev, stable 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> --- 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.35.3 ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [RFC 1/4] gro: fix overwrite unprocessed packets 2024-05-23 16:26 ` [RFC 1/4] gro: fix overwrite unprocessed packets Konstantin Ananyev @ 2024-06-12 0:48 ` Ferruh Yigit 0 siblings, 0 replies; 2+ messages in thread From: Ferruh Yigit @ 2024-06-12 0:48 UTC (permalink / raw) To: Konstantin Ananyev, dev Cc: hujiayu.hu, roretzla, bruce.richardson, anatoly.burakov, vladimir.medvedkin, Konstantin Ananyev, stable, kumaraparamesh92 On 5/23/2024 5:26 PM, Konstantin Ananyev wrote: > 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> > --- > 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) { Acked-by: Ferruh Yigit <ferruh.yigit@amd.com> ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-06-12 0:48 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <20240523162604.2600-1-konstantin.v.ananyev@yandex.ru> 2024-05-23 16:26 ` [RFC 1/4] gro: fix overwrite unprocessed packets Konstantin Ananyev 2024-06-12 0:48 ` Ferruh Yigit
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).