Thread (19 messages) 19 messages, 5 authors, 2023-06-30

Re: [dpdk-dev] [PATCH] examples: ipv4, udp and tcp checksum offload warning

From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2021-09-13 15:11:59

On Mon, 13 Sep 2021 17:09:51 +0500
usamanadeem321 [off-list ref] wrote:
 
+		if (dev_info.rx_offload_capa & DEV_RX_OFFLOAD_IPV4_CKSUM)
+			local_port_conf.rxmode.offloads |=
+			 DEV_RX_OFFLOAD_IPV4_CKSUM;
+		else {
+			rte_exit(EXIT_FAILURE,
+				"IPV4 Checksum offload not available. (port %u) ",
+				portid);
+		}
+
Why not just do it in software if not available. The IPv4 checksum
is so cheap many operating systems just always do it in software.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help