In D53176#1214928, @mjg wrote:Do you have stats how many classes can be realistically present? maybe this would be way faster single-threaded by iterating an array?
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Feed Advanced Search
Advanced Search
Advanced Search
Mon, Oct 20
Mon, Oct 20
Fri, Oct 17
Fri, Oct 17
gallatin added a comment to D53100: ena: use newly exposed RSS hash key API rather than ad-hoc hashing.
In D53100#1214833, @akiyano_amazon.com wrote:I built and installed the latest kernel with this patchset in AWS and ran a network sanity check with iperf and all looks good.
turned on net.inet.tcp.input_verify_hash with sysctl net.inet.tcp.input_verify_hash=1
ran traffic
lookede at
sysctl net.inet.tcp.input_nohash
sysctl net.inet.tcp.input_badhashand both were 0
no prints to dmesg
commit lgtm.
gallatin added a comment to D53101: lio: use newly exposed RSS hash key API rather than ad-hoc hashing.
In D53101#1214513, @zlei wrote:In D53101#1214510, @zlei wrote:I'm not getting this change. The kernel build option RSS is not enabled by default. Is this change want to enable a variant RSS when RSS is not enabled in the kernel ?
Ahh, I missed D53089 .
gallatin added a comment to D53091: mlx5: use newly exposed RSS hash key API rather than ad-hoc hashing.
In D53091#1214239, @kib wrote:In D53091#1213715, @gallatin wrote:In D53091#1213605, @kib wrote:Sorry, I do not understand the change.
The compilation of both in_rss.c and rss_config.c is gated by the RSS option, and this seems to not change for the whole time these files existed.In other words, if the 'options RSS' is not included into the kernel config, would the driver even compile?
Sorry, I wish I was better at reviews of patch series. This is one of many patches, starting with https://reviews.freebsd.org/D53089 and ending with https://reviews.freebsd.org/D53104
The goal is to achieve consistent hashing for TCP ingress/egress by exposing the hashing parts of RSS to drivers, so that all NICs use the same hash key and algo.I do not know how to list of the patches in your series. You could add 'related objects' to your review, then it will be visible to everybody.
That said, I have no objections against this change after D53089 goes in.
We (Nvidia) might request that the commit of this revision might be postponed until D53089 is committed, so that Nvidia' verification could do the scrutiny before driver changes.
Or you might provide us the minimal set of reviews we could apply and run verification on, to ensure that your commit is fine for mlx5.
Thu, Oct 16
Thu, Oct 16
gallatin updated the diff for D53100: ena: use newly exposed RSS hash key API rather than ad-hoc hashing.
Update patch to unifdef check for adapter using toeplitz hashing
gallatin added a comment to D53100: ena: use newly exposed RSS hash key API rather than ad-hoc hashing.
In D53100#1213606, @akiyano_amazon.com wrote:Hi,
Thank you for submitting this patch.
Can you please provide a commit message that explains this change.
For example questions that immediately arise:
- What "newly exposed RSS hash key API" you are talking about (link to the commits that added this API)?
- Why it is ok to remove the #ifdef RSS?
- Why do you also remove the #ifdef RSS in ena_datapath.c?
- How did you test the change?
Thanks!
gallatin added a comment to D53091: mlx5: use newly exposed RSS hash key API rather than ad-hoc hashing.
In D53091#1213605, @kib wrote:Sorry, I do not understand the change.
The compilation of both in_rss.c and rss_config.c is gated by the RSS option, and this seems to not change for the whole time these files existed.In other words, if the 'options RSS' is not included into the kernel config, would the driver even compile?
Wed, Oct 15
Wed, Oct 15
gallatin added reviewers for D53104: tcp: Enable symmetric hashing by setting hash on outgoing conns: adrian, zlei.
gallatin added a reviewer for D53089: rss: Enable portions of RSS globally to enable symmetric hashing: zlei.
gallatin added reviewers for D53103: igc: use newly exposed RSS hash key API rather than ad-hoc hashing: markj, erj.
gallatin added reviewers for D53102: sfxge: use newly exposed RSS hash key API rather than ad-hoc hashing: zlei, arybchik.
gallatin added a reviewer for D53101: lio: use newly exposed RSS hash key API rather than ad-hoc hashing: zlei.
gallatin added reviewers for D53099: hn: use newly exposed RSS hash key API rather than ad-hoc hashing: whu, sepherosa_gmail.com, mp.
gallatin added reviewers for D53098: vmxnet3: use newly exposed RSS hash key API rather than ad-hoc hashing: vangyzen, kp, tuexen.
gallatin added reviewers for D53092: cxgbe: use newly exposed RSS hash key API rather than ad-hoc hashing: np, jhb.
gallatin added reviewers for D53091: mlx5: use newly exposed RSS hash key API rather than ad-hoc hashing: kib, vangyzen.
In D53088#1213086, @tuexen wrote:
Tue, Oct 14
Tue, Oct 14
gallatin added reviewers for D53089: rss: Enable portions of RSS globally to enable symmetric hashing: adrian, np, jhb.
gallatin requested review of D53104: tcp: Enable symmetric hashing by setting hash on outgoing conns.
gallatin requested review of D53103: igc: use newly exposed RSS hash key API rather than ad-hoc hashing.
gallatin requested review of D53102: sfxge: use newly exposed RSS hash key API rather than ad-hoc hashing.
gallatin requested review of D53101: lio: use newly exposed RSS hash key API rather than ad-hoc hashing.
gallatin requested review of D53100: ena: use newly exposed RSS hash key API rather than ad-hoc hashing.
gallatin requested review of D53099: hn: use newly exposed RSS hash key API rather than ad-hoc hashing.
gallatin requested review of D53097: e1000: use newly exposed RSS hash key API rather than ad-hoc hashing.
gallatin requested review of D53098: vmxnet3: use newly exposed RSS hash key API rather than ad-hoc hashing.
gallatin requested review of D53096: ice: use newly exposed RSS hash key API rather than ad-hoc hashing.
gallatin requested review of D53095: iavf: use newly exposed RSS hash key API rather than ad-hoc hashing.
gallatin requested review of D53094: ixl: use newly exposed RSS hash key API rather than ad-hoc hashing.
gallatin requested review of D53093: ixgbe: Use newly exposed RSS hash API rather than ad-hoc hashing.
gallatin requested review of D53092: cxgbe: use newly exposed RSS hash key API rather than ad-hoc hashing.
gallatin requested review of D53091: mlx5: use newly exposed RSS hash key API rather than ad-hoc hashing.
gallatin requested review of D53089: rss: Enable portions of RSS globally to enable symmetric hashing.
Thu, Oct 9
Thu, Oct 9
Also, this needs to be MFC'ed to 15 for the release..
To be clear, igc worked fine when configured with multiple queues. I had configured it with a single rx queue in order to debug something else, and it took the somewhat reasonable approach of returning garbage as the hash since it didn't need to hash packets to multiple queues. Thank you for coming up with this... it is much cleaner than my solution, and should ensure that any other non-iflib drivers avoid this behavior as well.
Tue, Oct 7
Tue, Oct 7
Wed, Oct 1
Wed, Oct 1
gallatin committed rG213170eb956f: iflib: Implement tx desc reclaim threshold (authored by gallatin).
iflib: Implement tx desc reclaim threshold
Sep 24 2025
Sep 24 2025
Update patch to address @markj 's feedback, and to properly fix the bug I encountered where doorbells were withheld when using the mp_ring transmit method.
Sep 22 2025
Sep 22 2025
@markj I've marked things as done as I've done them in my local tree. I'll update the patch once I do some more research into the doorbell issue. thank you for the reveiw!
Sep 18 2025
Sep 18 2025
gallatin requested changes to D52088: bnxt_en: Fix Rx CQ consumer index on Thor2 to prevent interrupt storm.
gallatin added inline comments to D52085: bnxt_en: Periodically synchronize host time with firmware.
Sep 16 2025
Sep 16 2025
Sep 15 2025
Sep 15 2025
Sep 11 2025
Sep 11 2025
Sep 10 2025
Sep 10 2025
gallatin committed rG6577e32ea2c7: iflib: report output drops and handle ENOBUFS properly (authored by gallatin).
iflib: report output drops and handle ENOBUFS properly
Sep 8 2025
Sep 8 2025
- remove extra space in iflib_if_get_counter as pointed out by @kbowling
In D52369#1197238, @markj wrote:Instead of making each driver report 0 if it doesn't collect a drop counter from the MAC, and treating these counters as a special case in iflib_if_get_counter(), wouldn't it be simpler and cleaner to make them all drivers return the value from if_get_counter_default()?
reversed logic and made the driver responsible to query the generic counters for odrop/oerr rather than iflib.
Sep 5 2025
Sep 5 2025
Updated drivers that were getting generic counters using if_get_counter_default() as part of their ifdi_get_counter method to avoid getting generic counters for output drops and output errors, as suggested by @markj .
Sep 4 2025
Sep 4 2025
- Call iflib_remove_mbuf() to unmap and remove the mbuf from list of mbufs to be freed when we free an mbuf due to ENOBUFS
Sep 3 2025
Sep 3 2025
Aug 20 2025
Aug 20 2025
iflib: add a simple transmit routine
Aug 14 2025
Aug 14 2025
Aug 12 2025
Aug 12 2025
gallatin committed rGe69573bc2bee: iflib: simplify lro & use tcp_lro_queue_mbuf() (authored by gallatin).
iflib: simplify lro & use tcp_lro_queue_mbuf()
In D51772#1185535, @markj wrote:removing forwarding checks ... LRO already does this
But LRO only checks the forwarding configuration when it actually comes time to process packets. With this patch, if forwarding is enabled, we'll do a bunch of needless sorting.
Aug 9 2025
Aug 9 2025
Aug 7 2025
Aug 7 2025
gallatin committed rGc224b2ce7de0: iflib: don't pullup UDP payloads to the TCP header size (authored by gallatin).
iflib: don't pullup UDP payloads to the TCP header size
Aug 6 2025
Aug 6 2025
Aug 5 2025
Aug 5 2025
Address Eric's style(9) nits and remove space in front of parans in sizeof
Update diff to address Gleb's feedback
gallatin added a reviewer for D51748: iflib: don't pullup UDP payloads to the TCP header size: glebius.
Jul 26 2025
Jul 26 2025
gallatin committed rG83a352bcac0a: lagg: Fix if_hw_tsomax_update() not being called (authored by gallatin).
lagg: Fix if_hw_tsomax_update() not being called
Jul 12 2025
Jul 12 2025
gallatin committed rG78bdaa57cfba: lagg: Fix if_hw_tsomax_update() not being called (authored by gallatin).
lagg: Fix if_hw_tsomax_update() not being called
Jun 29 2025
Jun 29 2025
gallatin committed rG20e15e905c58: mlx5: Decrease FW init timeout from 120 seconds to 5 seconds (authored by gallatin).
mlx5: Decrease FW init timeout from 120 seconds to 5 seconds
Jun 24 2025
Jun 24 2025
gallatin accepted D51000: sysctl net.inet.tcp.ktlslist: do not rely on global generation for ktls sessions.
Thank you for moving to this solution, away from a global atomic.
Jun 9 2025
Jun 9 2025
May 28 2025
May 28 2025
In D50546#1154747, @markj wrote:This generally seems fine to me, but I'm not familiar with the original change and wonder why the compat shims are so coupled to the one application.
In D50546#1154136, @ziaee wrote:Should we put the sysctl in the manual?
May 27 2025
May 27 2025
Apr 22 2025
Apr 22 2025
Apr 15 2025
Apr 15 2025
ip6: leave room for link headers in UDP
Update to use hlen, which already holds the size of the ip6 hdr, as suggested by glebius
Apr 14 2025
Apr 14 2025