From: Nicolas PLANEL Date: Thu, 27 Feb 2025 08:51:33 +0000 (+0100) Subject: dpdk: format UDP hw offload info consistently X-Git-Tag: v25.10-rc0~164 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=e128af1690ae77e0232cf814fb6bddd5185fd340;p=vpp.git dpdk: format UDP hw offload info consistently Format the hardware offload info the same way than other protocol to avoid confusion when reading logs, like this : PKT_TX_SCTP_CKSUM (0x0000) SCTP cksum of TX pkt. computed by NIC PKT_TX_TCP_CKSUM (0x0000) TCP cksum of TX pkt. computed by NIC PKT_TX_UDP_CKSUM (0x0000) TX UDP cksum Type: improvement Change-Id: Icd16a484eabe36af4488352312245d638d7dff4b Signed-off-by: Nicolas PLANEL Signed-off-by: Nicolas PLANEL --- diff --git a/src/plugins/dpdk/device/format.c b/src/plugins/dpdk/device/format.c index fd301da8ea5..f0199c929cc 100644 --- a/src/plugins/dpdk/device/format.c +++ b/src/plugins/dpdk/device/format.c @@ -117,8 +117,8 @@ _ (TX_MACSEC, "TX MACSEC") \ _ (TX_OUTER_IPV4, "TX outer IPV4") \ _ (TX_OUTER_IPV6, "TX outer IPV6") \ - _ (TX_OUTER_IP_CKSUM, "Outer IP cksum of Tx pkt. computed by NIC") \ - _ (TX_OUTER_UDP_CKSUM, "TX outer UDP cksum") \ + _ (TX_OUTER_IP_CKSUM, "Outer IP cksum of TX pkt. computed by NIC") \ + _ (TX_OUTER_UDP_CKSUM, "Outer UDP cksum of TX pkt. computed by NIC") \ _ (TX_QINQ, "TX QINQ") \ _ (TX_SCTP_CKSUM, "SCTP cksum of TX pkt. computed by NIC") \ _ (TX_SEC_OFFLOAD, "TX SEC OFFLOAD") \ @@ -133,7 +133,7 @@ _ (TX_TUNNEL_UDP, "TX tunnel UDP") \ _ (TX_TUNNEL_VXLAN, "TX packet is a VXLAN packet") \ _ (TX_TUNNEL_VXLAN_GPE, "TX tunnel VXLAN GPE") \ - _ (TX_UDP_CKSUM, "TX UDP cksum") \ + _ (TX_UDP_CKSUM, "UDP cksum of TX pkt. computed by NIC") \ _ (TX_UDP_SEG, "TX UDP SEG") \ _ (TX_VLAN, "TX packet is a 802.1q VLAN packet")