public inbox for dev@dpdk.org
 help / color / mirror / Atom feed
From: Yunjian Wang <wangyunjian@huawei.com>
To: <dev@dpdk.org>
Cc: <chas3@att.com>, <humin29@huawei.com>, <jerry.lilijun@huawei.com>,
	"Yunjian Wang" <wangyunjian@huawei.com>
Subject: [PATCH 1/1] net/bonding: support UDPLITE protocol in l34 hashing
Date: Sat, 28 Mar 2026 15:32:22 +0800	[thread overview]
Message-ID: <1774683142-27684-1-git-send-email-wangyunjian@huawei.com> (raw)

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


             reply	other threads:[~2026-03-28  7:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-28  7:32 Yunjian Wang [this message]
2026-03-28 15:58 ` [PATCH 1/1] net/bonding: support UDPLITE protocol in l34 hashing Stephen Hemminger

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=1774683142-27684-1-git-send-email-wangyunjian@huawei.com \
    --to=wangyunjian@huawei.com \
    --cc=chas3@att.com \
    --cc=dev@dpdk.org \
    --cc=humin29@huawei.com \
    --cc=jerry.lilijun@huawei.com \
    /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