Hi, I am using vpp stable/2005 code. I want to enable UDP checksum offload for tx . I changed the vpp startup.cfg file -
## Disables UDP / TCP TX checksum offload. Typically needed for use ## faster vector PMDs (together with no-multi-seg) # no-tx-checksum-offload ## Enable UDP / TCP TX checksum offload ## This is the reversed option of 'no-tx-checksum-offload' *enable-tcp-udp-checksum* But , still it is not activated . However all these tx offloads are available. With VPP 19.05 , I was able to activate it by adding following piece of code in ./plugins/dpdk/device/init.c case VNET_DPDK_PMD_CXGBE: case VNET_DPDK_PMD_MLX4: case VNET_DPDK_PMD_MLX5: case VNET_DPDK_PMD_QEDE: case VNET_DPDK_PMD_BNXT: xd->port_type = port_type_from_speed_capa (&dev_info); *if (dm->conf->no_tx_checksum_offload == 0)* *{* *xd->port_conf.txmode.offloads |= DEV_TX_OFFLOAD_TCP_CKSUM;* *xd->port_conf.txmode.offloads |= DEV_TX_OFFLOAD_UDP_CKSUM;* *xd->flags |=* *DPDK_DEVICE_FLAG_TX_OFFLOAD |* *DPDK_DEVICE_FLAG_INTEL_PHDR_CKSUM;* *}* break; But, the above code does not work with vpp 20.05. I think , there is a newer version of DPDK in this release. Please let me know if I am doing something wrong. HundredGigabitEthernet12/0/0 2 up HundredGigabitEthernet12/0/0 Link speed: 100 Gbps Ethernet address b8:83:03:9e:68:f0 Mellanox ConnectX-4 Family carrier up full duplex mtu 9206 flags: admin-up pmd maybe-multiseg subif rx-ip4-cksum rx: queues 2 (max 1024), desc 1024 (min 0 max 65535 align 1) tx: queues 4 (max 1024), desc 1024 (min 0 max 65535 align 1) pci: device 15b3:1013 subsystem 1590:00c8 address 0000:12:00.00 numa 0 switch info: name 0000:12:00.0 domain id 0 port id 65535 max rx packet len: 65536 promiscuous: unicast off all-multicast on vlan offload: strip off filter off qinq off rx offload avail: vlan-strip ipv4-cksum udp-cksum tcp-cksum vlan-filter jumbo-frame scatter timestamp keep-crc rss-hash rx offload active: ipv4-cksum udp-cksum tcp-cksum jumbo-frame scatter *tx offload avail: vlan-insert ipv4-cksum udp-cksum tcp-cksum tcp-tso* *outer-ipv4-cksum vxlan-tnl-tso gre-tnl-tso geneve-tnl-tso* *multi-segs udp-tnl-tso ip-tnl-tso* *tx offload active: multi-segs* rss avail: ipv4-frag ipv4-tcp ipv4-udp ipv4-other ipv4 ipv6-tcp-ex ipv6-udp-ex ipv6-frag ipv6-tcp ipv6-udp ipv6-other ipv6-ex ipv6 l4-dst-only l4-src-only l3-dst-only l3-src-only rss active: ipv4-frag ipv4-tcp ipv4-udp ipv4-other ipv4 ipv6-tcp-ex ipv6-udp-ex ipv6-frag ipv6-tcp ipv6-udp ipv6-other ipv6-ex ipv6 tx burst mode: No MPW + MULTI + TSO + INLINE + METADATA rx burst mode: Scalar tx frames ok 14311830 tx bytes ok 128602546562 rx frames ok 1877 rx bytes ok 228452 thanks, -Raj
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#16863): https://lists.fd.io/g/vpp-dev/message/16863 Mute This Topic: https://lists.fd.io/mt/75246142/21656 Mute #dpdk: https://lists.fd.io/g/fdio+vpp-dev/mutehashtag/dpdk Mute #mellanox: https://lists.fd.io/g/fdio+vpp-dev/mutehashtag/mellanox Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-