DPDK patches and discussions
 help / color / mirror / Atom feed
* [Bug 1286] cksum
@ 2023-09-07  3:13 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2023-09-07  3:13 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 1397 bytes --]

https://bugs.dpdk.org/show_bug.cgi?id=1286

            Bug ID: 1286
           Summary: cksum
           Product: DPDK
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: testpmd
          Assignee: dev@dpdk.org
          Reporter: wanry@3snic.com
  Target Milestone: ---

The code making sure sctp payload be multiple of 4 to determin TX_SCP_CKSUM in
process_inner_cksums() of csumonly.c should convert ipv4_hdr->total_length to
host byte order. The following is the code segment.

```
        } else if (info->l4_proto == IPPROTO_SCTP) {
                sctp_hdr = (struct rte_sctp_hdr *)
                        ((char *)l3_hdr + info->l3_len);
                /* sctp payload must be a multiple of 4 to be
                 * offloaded */
                if ((tx_offloads & RTE_ETH_TX_OFFLOAD_SCTP_CKSUM) &&
                        ((ipv4_hdr->total_length & 0x3) == 0)) {
                        ol_flags |= RTE_MBUF_F_TX_SCTP_CKSUM;
                } else {
                        sctp_hdr->cksum = 0;
                        /* XXX implement CRC32c, example available in
                         * RFC3309 */
                }
        }
```

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #2: Type: text/html, Size: 3261 bytes --]

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

only message in thread, other threads:[~2023-09-07  3:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-07  3:13 [Bug 1286] cksum bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).