Page MenuHomeFreeBSD

Improve TX path of the VNIC driver
ClosedPublic

Authored by zbb on Mar 3 2016, 5:31 PM.
Tags
None
Referenced Files
F106160136: D5534.id14033.diff
Thu, Dec 26, 9:22 AM
F106159804: D5534.id14787.diff
Thu, Dec 26, 9:15 AM
F106128387: D5534.diff
Wed, Dec 25, 9:07 PM
Unknown Object (File)
Nov 3 2024, 3:46 PM
Unknown Object (File)
Oct 18 2024, 9:20 AM
Unknown Object (File)
Oct 3 2024, 2:49 PM
Unknown Object (File)
Sep 24 2024, 4:51 AM
Unknown Object (File)
Sep 17 2024, 12:10 PM
Subscribers

Details

Summary
  • Avoid memory leak when nicvf_tx_mbuf_locked() fails
  • Introduce nicvf_xmit_locked() routine that uses drbr_peek(), drbr_advance() or drbr_putback() for a specific ifnet. This gives more clear and efficient design as well as prevents from dropping mbufs that where not sent due to temporary lack of descriptors.
  • Add missing ETHER_BPF_MTAP() hook

Pointed out by: yongari

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

zbb retitled this revision from to Improve TX path of the VNIC driver.
zbb updated this object.
zbb edited the test plan for this revision. (Show Details)
zbb added reviewers: wma, imp, andrew.
zbb set the repository for this revision to rS FreeBSD src repository - subversion.
zbb added a subscriber: arm64.

My only concern is using of drbr_advance, drbr_peek. Previous drbr_dequeue is well tested in our LAB. If you run overnight multithreaded bidirectional iperf3, then I'm fine with this change. I just don't trust anything from buf_ring.h on ARM...

zbb edited edge metadata.
zbb removed rS FreeBSD src repository - subversion as the repository for this revision.
wma edited edge metadata.
This revision is now accepted and ready to land.Mar 31 2016, 12:51 PM
This revision was automatically updated to reflect the committed changes.