Skip to content

Commit

Permalink
dpaa2: ni: Reset SGE offset and format.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsalychev committed Jun 15, 2022
1 parent 32b9e67 commit e856e7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys/dev/dpaa2/dpaa2_ni.c
Original file line number Diff line number Diff line change
Expand Up @@ -3185,6 +3185,7 @@ dpaa2_ni_build_fd(struct dpaa2_ni_softc *sc, struct dpaa2_ni_tx_ring *tx,
for (i = 0; i < txnsegs; i++) {
sgt[i].addr = (uint64_t) txsegs[i].ds_addr;
sgt[i].len = (uint32_t) txsegs[i].ds_len;
sgt[i].offset_fmt = 0u;
}
sgt[i-1].offset_fmt |= 0x8000u; /* set final entry flag */

Expand Down

0 comments on commit e856e7a

Please sign in to comment.