dpdk: format UDP hw offload info consistently 93/42393/2
authorNicolas PLANEL <[email protected]>
Thu, 27 Feb 2025 08:51:33 +0000 (09:51 +0100)
committerMohammed HAWARI <[email protected]>
Tue, 11 Mar 2025 08:43:53 +0000 (08:43 +0000)
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 <[email protected]>
Signed-off-by: Nicolas PLANEL <[email protected]>
src/plugins/dpdk/device/format.c

index fd301da..f0199c9 100644 (file)
   _ (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")                                        \
   _ (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")