DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] net: fix return type of IPv6 L4 packet checksum
@ 2023-04-06  9:21 eagostini
  2023-04-06  9:35 ` Bing Zhao
  2023-04-06  9:49 ` [PATCH v2] " eagostini
  0 siblings, 2 replies; 6+ messages in thread
From: eagostini @ 2023-04-06  9:21 UTC (permalink / raw)
  To: dev; +Cc: statble, Elena Agostini

From: Elena Agostini <eagostini@nvidia.com>

Function returns 0 or -1 but the return type is uint16_t.

Signed-off-by: Elena Agostini <eagostini@nvidia.com>
---
 lib/net/rte_ip.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/net/rte_ip.h b/lib/net/rte_ip.h
index a310e9d498..e7106256aa 100644
--- a/lib/net/rte_ip.h
+++ b/lib/net/rte_ip.h
@@ -514,7 +514,7 @@ rte_ipv4_udptcp_cksum_verify(const struct rte_ipv4_hdr *ipv4_hdr,
  *   Return 0 if the checksum is correct, else -1.
  */
 __rte_experimental
-static inline uint16_t
+static inline int
 rte_ipv4_udptcp_cksum_mbuf_verify(const struct rte_mbuf *m,
 				  const struct rte_ipv4_hdr *ipv4_hdr,
 				  uint16_t l4_off)
-- 
2.34.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-04-12  8:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-06  9:21 [PATCH] net: fix return type of IPv6 L4 packet checksum eagostini
2023-04-06  9:35 ` Bing Zhao
2023-04-06  9:49 ` [PATCH v2] " eagostini
2023-04-12  8:22   ` Thomas Monjalon
2023-04-12  8:26     ` Thomas Monjalon
2023-04-12  8:24   ` [PATCH v3] net: fix return type of IPv4 " eagostini

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).