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

Function enable_tx_tstamp

dpdk/drivers/net/dpaa2/dpaa2_rxtx.c:1210–1229  ·  view source on GitHub ↗

Configure the egress frame annotation for timestamp update */

Source from the content-addressed store, hash-verified

1208
1209/* Configure the egress frame annotation for timestamp update */
1210static void enable_tx_tstamp(struct qbman_fd *fd)
1211{
1212 struct dpaa2_faead *fd_faead;
1213
1214 /* Set frame annotation status field as valid */
1215 (fd)->simple.frc |= DPAA2_FD_FRC_FASV;
1216
1217 /* Set frame annotation egress action descriptor as valid */
1218 (fd)->simple.frc |= DPAA2_FD_FRC_FAEADV;
1219
1220 /* Set Annotation Length as 128B */
1221 (fd)->simple.ctrl |= DPAA2_FD_CTRL_ASAL;
1222
1223 /* enable update of confirmation frame annotation */
1224 fd_faead = (struct dpaa2_faead *)((size_t)
1225 DPAA2_IOVA_TO_VADDR(DPAA2_GET_FD_ADDR(fd)) +
1226 DPAA2_FD_PTA_SIZE + DPAA2_FD_HW_ANNOT_FAEAD_OFFSET);
1227 fd_faead->ctrl = DPAA2_ANNOT_FAEAD_A2V | DPAA2_ANNOT_FAEAD_UPDV |
1228 DPAA2_ANNOT_FAEAD_UPD;
1229}
1230
1231/*
1232 * Callback to handle sending packets through WRIOP based interface

Callers 1

dpaa2_dev_txFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected