* [PATCH 1/1] net/bonding: support UDPLITE protocol in l34 hashing
@ 2026-03-28 7:32 Yunjian Wang
2026-03-28 15:58 ` Stephen Hemminger
0 siblings, 1 reply; 2+ messages in thread
From: Yunjian Wang @ 2026-03-28 7:32 UTC (permalink / raw)
To: dev; +Cc: chas3, humin29, jerry.lilijun, Yunjian Wang
Add support for the UDPLITE protocol in l34 hashing.
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
---
drivers/net/bonding/rte_eth_bond_pmd.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c
index 96725071da..8c4cd039b2 100644
--- a/drivers/net/bonding/rte_eth_bond_pmd.c
+++ b/drivers/net/bonding/rte_eth_bond_pmd.c
@@ -798,7 +798,9 @@ burst_xmit_l34_hash(struct rte_mbuf **buf, uint16_t nb_pkts,
<= pkt_end)
l4hash = HASH_L4_PORTS(tcp_hdr);
} else if (ipv4_hdr->next_proto_id ==
- IPPROTO_UDP) {
+ IPPROTO_UDP ||
+ ipv4_hdr->next_proto_id ==
+ IPPROTO_UDPLITE) {
udp_hdr = (struct rte_udp_hdr *)
((char *)ipv4_hdr +
ip_hdr_offset);
@@ -815,7 +817,8 @@ burst_xmit_l34_hash(struct rte_mbuf **buf, uint16_t nb_pkts,
if (ipv6_hdr->proto == IPPROTO_TCP) {
tcp_hdr = (struct rte_tcp_hdr *)(ipv6_hdr + 1);
l4hash = HASH_L4_PORTS(tcp_hdr);
- } else if (ipv6_hdr->proto == IPPROTO_UDP) {
+ } else if (ipv6_hdr->proto == IPPROTO_UDP ||
+ ipv6_hdr->proto == IPPROTO_UDPLITE) {
udp_hdr = (struct rte_udp_hdr *)(ipv6_hdr + 1);
l4hash = HASH_L4_PORTS(udp_hdr);
}
--
2.33.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] net/bonding: support UDPLITE protocol in l34 hashing
2026-03-28 7:32 [PATCH 1/1] net/bonding: support UDPLITE protocol in l34 hashing Yunjian Wang
@ 2026-03-28 15:58 ` Stephen Hemminger
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2026-03-28 15:58 UTC (permalink / raw)
To: Yunjian Wang; +Cc: dev, chas3, humin29, jerry.lilijun
On Sat, 28 Mar 2026 15:32:22 +0800
Yunjian Wang <wangyunjian@huawei.com> wrote:
> Add support for the UDPLITE protocol in l34 hashing.
>
> Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
> ---
Why bother UDPLITE protocol is deprecated and being removed
from the Linux kernel which is the only place it ever got implemented
https://www.phoronix.com/news/Linux-7.1-Retiring-UDP-Lite
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-03-28 15:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-28 7:32 [PATCH 1/1] net/bonding: support UDPLITE protocol in l34 hashing Yunjian Wang
2026-03-28 15:58 ` Stephen Hemminger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox