Page MenuHomeFreeBSD

ena: add mbuf defragmentation
ClosedPublic

Authored by mk_semihalf.com on May 26 2017, 10:43 AM.

Details

Summary

When mbuf chain is too long and device cannot handle that number of
segments in DMA transaction, mbuf chain will be defragmented.
Initially, driver was dropping all mbuf chains that were exceeding
supported number of segments.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

zbb accepted this revision.May 29 2017, 10:37 AM
zbb added inline comments.
sys/dev/ena/ena.c
2657 ↗(On Diff #28844)

Try to use boolean expressions in conditions such as rc != 0

This revision is now accepted and ready to land.May 29 2017, 10:37 AM
This revision was automatically updated to reflect the committed changes.