DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Checksum offloading changes in DPDK v.19?
@ 2021-04-26 15:31 David Aldrich
  0 siblings, 0 replies; only message in thread
From: David Aldrich @ 2021-04-26 15:31 UTC (permalink / raw)
  To: users


Since upgrading from DPDK 18.11.9 to 19.11.8 UDP TX checksum offloading has
stopped working on our X722 device.

I enable offloading as follows:

First I check the device capability:

struct rte_eth_dev_info dev_info;
rte_eth_dev_info_get(a_portId, &dev_info);
if ((dev_info.tx_offload_capa & DEV_TX_OFFLOAD_MULTI_SEGS) == 0)
        fatal("Socket_setupPort failed: Ethernet device lacks capabability:
if ((dev_info.tx_offload_capa & DEV_TX_OFFLOAD_IPV4_CKSUM) == 0)
        fatal("Socket_setupPort failed: Ethernet device lacks capabability:
if ((dev_info.tx_offload_capa & DEV_TX_OFFLOAD_UDP_CKSUM) == 0)
        fatal("Socket_setupPort failed: Ethernet device lacks capabability:

Then I enable offloading:

struct rte_eth_conf local_port_conf;
local_port_conf.txmode.offloads = local_port_conf.txmode.offloads |

I notice that the 19.08 release notes mention checksum changes:

"ip_frag: The IP fragmentation library converts input mbuf into fragments
using input MTU size via the rte_ipv4_fragment_packet() interface. Once
fragmentation is done, each mbuf->ol_flags are set to enable IP checksum
H/W offload irrespective of the platform capability. Cleared IP checksum
H/W offload flag from the library. The application must set this flag if it
is supported by the platform and application wishes to use it."

Could that be related to my problem or is there another change that may
have caused the problem?

Best regards

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-26 15:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-26 15:31 [dpdk-users] Checksum offloading changes in DPDK v.19? David Aldrich

DPDK usage discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ http://inbox.dpdk.org/users \
	public-inbox-index users

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git