Page MenuHomeFreeBSD

Add netdump hooks for iflib.
ClosedPublic

Authored by markj on May 1 2018, 5:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 21 2024, 6:13 PM
Unknown Object (File)
Feb 27 2024, 1:26 PM
Unknown Object (File)
Feb 3 2024, 3:21 AM
Unknown Object (File)
Jan 7 2024, 10:55 PM
Unknown Object (File)
Dec 12 2023, 6:37 PM
Unknown Object (File)
Dec 9 2023, 10:40 PM
Unknown Object (File)
Dec 9 2023, 10:15 PM
Unknown Object (File)
Nov 27 2023, 12:48 AM
Subscribers

Details

Test Plan

Tested with em (me), igb (me), ixgbe (sbruno), bnxt (sbruno)

Diff Detail

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

Event Timeline

markj added a reviewer: kmacy.
sys/net/iflib.c
6063 ↗(On Diff #42049)

Wouldn't we need a NETDUMP_END case that calls txd_flush() in case it wasn't called in the last iflib_txd_db_check()?

6102 ↗(On Diff #42049)

This is the first thing that iflib_completed_tx_reclaim() does... do we need to call it here too?

sys/net/iflib.c
6063 ↗(On Diff #42049)

The netdump transmit method already forces a flush after every packet.

6102 ↗(On Diff #42049)

Oh, indeed. Looks like we do not - I'm not sure why I included it here.

sys/net/iflib.c
6063 ↗(On Diff #42049)

Oh... is that just to simplify state, or to lower TX latency?

sys/net/iflib.c
6063 ↗(On Diff #42049)

It's basically a requirement of the interface. In some cases the client code will wait for an ACK from the server after transmitting a packet. This could be changed, but as you suggested, it's simpler to just flush after each transmit.

  • Remove unneeded iflib_tx_credits_update() call
markj marked 2 inline comments as done.May 2 2018, 2:47 PM
This revision is now accepted and ready to land.May 2 2018, 5:11 PM
This revision was automatically updated to reflect the committed changes.