MCPcopy Create free account
hub / github.com/F-Stack/f-stack / dpaa_unsegmented_checksum

Function dpaa_unsegmented_checksum

dpdk/drivers/net/dpaa/dpaa_rxtx.c:323–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323static inline void
324dpaa_unsegmented_checksum(struct rte_mbuf *mbuf, struct qm_fd *fd_arr)
325{
326 if (!mbuf->packet_type) {
327 struct rte_net_hdr_lens hdr_lens;
328
329 mbuf->packet_type = rte_net_get_ptype(mbuf, &hdr_lens,
330 RTE_PTYPE_L2_MASK | RTE_PTYPE_L3_MASK
331 | RTE_PTYPE_L4_MASK);
332 mbuf->l2_len = hdr_lens.l2_len;
333 mbuf->l3_len = hdr_lens.l3_len;
334 }
335 if (mbuf->data_off < (DEFAULT_TX_ICEOF +
336 sizeof(struct dpaa_eth_parse_results_t))) {
337 DPAA_DP_LOG(DEBUG, "Checksum offload Err: "
338 "Not enough Headroom "
339 "space for correct Checksum offload."
340 "So Calculating checksum in Software.");
341 dpaa_checksum(mbuf);
342 } else {
343 dpaa_checksum_offload(mbuf, fd_arr, mbuf->buf_addr);
344 }
345}
346
347static struct rte_mbuf *
348dpaa_eth_sg_to_mbuf(const struct qm_fd *fd, uint32_t ifid)

Callers 2

dpaa_eth_queue_txFunction · 0.85

Calls 3

rte_net_get_ptypeFunction · 0.85
dpaa_checksumFunction · 0.85
dpaa_checksum_offloadFunction · 0.85

Tested by

no test coverage detected