Page MenuHomeFreeBSD

gallatin (Andrew Gallatin)
User

Projects

User Details

User Since
Jun 22 2015, 5:21 PM (543 w, 17 h)

Recent Activity

Thu, Nov 13

gallatin committed rGc56a26643467: mlx5: Fix compilation error when not building with KERN_TLS (authored by gallatin).
mlx5: Fix compilation error when not building with KERN_TLS
Thu, Nov 13, 9:59 PM

Tue, Nov 11

gallatin created P678 mbufq xmit hack.
Tue, Nov 11, 6:40 PM
gallatin committed rGc9e4643da132: iflib: remove transmit prefetching (authored by gallatin).
iflib: remove transmit prefetching
Tue, Nov 11, 5:01 PM
gallatin closed D53674: iflib: remove transmit prefetching.
Tue, Nov 11, 5:01 PM
gallatin accepted D53633: acpi: add counters for cumulative time spent in each sleep state..
Tue, Nov 11, 4:44 PM
gallatin added inline comments to D53674: iflib: remove transmit prefetching.
Tue, Nov 11, 2:45 PM

Mon, Nov 10

gallatin added a comment to D53674: iflib: remove transmit prefetching.
In D53674#1225349, @mjg wrote:

these also need to go:

sys/net/iflib.c:#define IFC_PREFETCH            0x040
sys/net/iflib.c:        if (rxq->ifr_ctx->ifc_flags & IFC_PREFETCH)
sys/net/iflib.c:        do_prefetch = (ctx->ifc_flags & IFC_PREFETCH);
sys/net/iflib.c:                ctx->ifc_flags |= IFC_PREFETCH;
Mon, Nov 10, 8:17 PM
gallatin added a comment to D53674: iflib: remove transmit prefetching.
In D53674#1225304, @mjg wrote:

This looks legitimate.

The kernel does not have infra for static branches, so a tunable would not look good anyway. However, instead of just removing it I would propose just ifdefing the code for the time being, maybe start the file with:

/*
 * Uncomment to enable prefetching. Measurements in https://reviews.freebsd.org/D53674 show it hurts performance.
 */
//#define IFLIB_PREFETCH

Then interested parties can experiment should the choose to.

If mere existence of this code is making other work harder, then by all means remove it.

Mon, Nov 10, 7:17 PM
gallatin added reviewers for D53674: iflib: remove transmit prefetching: glebius, markj, mjg, ae, melifaro.
Mon, Nov 10, 6:24 PM
gallatin requested review of D53674: iflib: remove transmit prefetching.
Mon, Nov 10, 6:21 PM

Thu, Nov 6

gallatin committed rG9349214a2815: mlx5: Preallocate ktls tags asynchronously (authored by gallatin).
mlx5: Preallocate ktls tags asynchronously
Thu, Nov 6, 12:01 AM
gallatin closed D53570: mlx5: Preallocate ktls tags asynchronously.
Thu, Nov 6, 12:00 AM

Wed, Nov 5

gallatin added inline comments to D53570: mlx5: Preallocate ktls tags asynchronously.
Wed, Nov 5, 5:01 PM
gallatin added inline comments to D53570: mlx5: Preallocate ktls tags asynchronously.
Wed, Nov 5, 12:46 PM
gallatin updated the diff for D53570: mlx5: Preallocate ktls tags asynchronously.
  • tried to address kib's concerns
Wed, Nov 5, 12:40 PM
gallatin added inline comments to D53570: mlx5: Preallocate ktls tags asynchronously.
Wed, Nov 5, 12:37 AM

Tue, Nov 4

gallatin added inline comments to D53570: mlx5: Preallocate ktls tags asynchronously.
Tue, Nov 4, 1:59 PM
gallatin updated the diff for D53570: mlx5: Preallocate ktls tags asynchronously.
  • added comment regarding allocation failure behavior, as suggested by markj
Tue, Nov 4, 1:57 PM
gallatin requested review of D53570: mlx5: Preallocate ktls tags asynchronously.
Tue, Nov 4, 12:02 AM

Fri, Oct 31

gallatin added a comment to D53424: ufs: support unmapped bufs for indirect blocks in bmap.

Is there any concern that this new use will add pressure to the sf_buf system on non-direct map platforms?

Fri, Oct 31, 6:11 PM

Thu, Oct 30

gallatin updated the diff for D53089: rss: Enable portions of RSS globally to enable symmetric hashing.
  • Made rss_config.c standard. This is needed because most

drivers do not check to see if INET/INET6 is enabled before
setting up RSS. This fixes compilation errors in most
drivers with LINT-NOIP

Thu, Oct 30, 7:03 PM

Mon, Oct 27

gallatin committed rG23b46b2bbf0a: audit: convert audit event class lookup to lockless (authored by gallatin).
audit: convert audit event class lookup to lockless
Mon, Oct 27, 2:15 PM
gallatin closed D53176: audit: convert audit event class lookup to lockless.
Mon, Oct 27, 2:15 PM
gallatin added inline comments to D53176: audit: convert audit event class lookup to lockless.
Mon, Oct 27, 2:07 PM

Mon, Oct 20

gallatin added a comment to D53176: audit: convert audit event class lookup to lockless.
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?

Mon, Oct 20, 5:08 PM

Oct 17 2025

gallatin added a comment to D53100: ena: use newly exposed RSS hash key API rather than ad-hoc hashing.

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_badhash

and both were 0

no prints to dmesg

commit lgtm.

Oct 17 2025, 8:46 PM
gallatin added a comment to D53101: lio: use newly exposed RSS hash key API rather than ad-hoc hashing.

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 .

Oct 17 2025, 7:39 PM
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#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.

Oct 17 2025, 7:16 PM
gallatin requested review of D53176: audit: convert audit event class lookup to lockless.
Oct 17 2025, 6:36 PM

Oct 16 2025

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

Oct 16 2025, 12:58 PM
gallatin added a comment to D53100: ena: use newly exposed RSS hash key API rather than ad-hoc hashing.

Hi,

Thank you for submitting this patch.
Can you please provide a commit message that explains this change.
For example questions that immediately arise:

  1. What "newly exposed RSS hash key API" you are talking about (link to the commits that added this API)?
  2. Why it is ok to remove the #ifdef RSS?
  3. Why do you also remove the #ifdef RSS in ena_datapath.c?
  4. How did you test the change?

Thanks!

Oct 16 2025, 12:56 PM
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?

Oct 16 2025, 12:37 PM

Oct 15 2025

gallatin added reviewers for D53104: tcp: Enable symmetric hashing by setting hash on outgoing conns: adrian, zlei.
Oct 15 2025, 7:04 PM
gallatin added a reviewer for D53089: rss: Enable portions of RSS globally to enable symmetric hashing: zlei.
Oct 15 2025, 7:03 PM
gallatin added a reviewer for D53090: loopback: Clear hash unconditionally.: zlei.
Oct 15 2025, 7:02 PM
gallatin added reviewers for D53103: igc: use newly exposed RSS hash key API rather than ad-hoc hashing: markj, erj.
Oct 15 2025, 6:57 PM
gallatin added reviewers for D53102: sfxge: use newly exposed RSS hash key API rather than ad-hoc hashing: zlei, arybchik.
Oct 15 2025, 6:57 PM
gallatin added a reviewer for D53101: lio: use newly exposed RSS hash key API rather than ad-hoc hashing: zlei.
Oct 15 2025, 6:55 PM
gallatin added reviewers for D53100: ena: use newly exposed RSS hash key API rather than ad-hoc hashing: akiyano_amazon.com, zlei, osamaabb_amazon.com.
Oct 15 2025, 6:54 PM
gallatin added reviewers for D53099: hn: use newly exposed RSS hash key API rather than ad-hoc hashing: whu, sepherosa_gmail.com, mp.
Oct 15 2025, 6:52 PM
gallatin added reviewers for D53098: vmxnet3: use newly exposed RSS hash key API rather than ad-hoc hashing: vangyzen, kp, tuexen.
Oct 15 2025, 6:50 PM
gallatin added reviewers for D53092: cxgbe: use newly exposed RSS hash key API rather than ad-hoc hashing: np, jhb.
Oct 15 2025, 6:46 PM
gallatin added reviewers for D53091: mlx5: use newly exposed RSS hash key API rather than ad-hoc hashing: kib, vangyzen.
Oct 15 2025, 6:45 PM
gallatin added inline comments to D53105: tcp: debugging checks of hashing.
Oct 15 2025, 3:38 PM
gallatin added a comment to D53088: tcp: debugging checks of hashing.

Why do we have D53088 and D53105?

Oct 15 2025, 3:32 PM

Oct 14 2025

gallatin added reviewers for D53089: rss: Enable portions of RSS globally to enable symmetric hashing: adrian, np, jhb.
Oct 14 2025, 7:50 PM
gallatin requested review of D53105: tcp: debugging checks of hashing.
Oct 14 2025, 7:47 PM
gallatin requested review of D53104: tcp: Enable symmetric hashing by setting hash on outgoing conns.
Oct 14 2025, 7:47 PM
gallatin requested review of D53103: igc: use newly exposed RSS hash key API rather than ad-hoc hashing.
Oct 14 2025, 7:47 PM
gallatin requested review of D53102: sfxge: use newly exposed RSS hash key API rather than ad-hoc hashing.
Oct 14 2025, 7:47 PM
gallatin requested review of D53101: lio: use newly exposed RSS hash key API rather than ad-hoc hashing.
Oct 14 2025, 7:47 PM
gallatin requested review of D53100: ena: use newly exposed RSS hash key API rather than ad-hoc hashing.
Oct 14 2025, 7:47 PM
gallatin requested review of D53099: hn: use newly exposed RSS hash key API rather than ad-hoc hashing.
Oct 14 2025, 7:47 PM
gallatin requested review of D53097: e1000: use newly exposed RSS hash key API rather than ad-hoc hashing.
Oct 14 2025, 7:47 PM
gallatin requested review of D53098: vmxnet3: use newly exposed RSS hash key API rather than ad-hoc hashing.
Oct 14 2025, 7:47 PM
gallatin requested review of D53096: ice: use newly exposed RSS hash key API rather than ad-hoc hashing.
Oct 14 2025, 7:47 PM
gallatin requested review of D53095: iavf: use newly exposed RSS hash key API rather than ad-hoc hashing.
Oct 14 2025, 7:47 PM
gallatin requested review of D53094: ixl: use newly exposed RSS hash key API rather than ad-hoc hashing.
Oct 14 2025, 7:47 PM
gallatin requested review of D53093: ixgbe: Use newly exposed RSS hash API rather than ad-hoc hashing.
Oct 14 2025, 7:46 PM
gallatin requested review of D53092: cxgbe: use newly exposed RSS hash key API rather than ad-hoc hashing.
Oct 14 2025, 7:46 PM
gallatin requested review of D53091: mlx5: use newly exposed RSS hash key API rather than ad-hoc hashing.
Oct 14 2025, 7:46 PM
gallatin requested review of D53090: loopback: Clear hash unconditionally..
Oct 14 2025, 7:46 PM
gallatin requested review of D53089: rss: Enable portions of RSS globally to enable symmetric hashing.
Oct 14 2025, 7:46 PM
gallatin requested review of D53088: tcp: debugging checks of hashing.
Oct 14 2025, 7:46 PM

Oct 9 2025

gallatin added a comment to D52989: tcp lro: use flowid only when it has hash properties.

Also, this needs to be MFC'ed to 15 for the release..

Oct 9 2025, 12:28 PM
gallatin accepted D52989: tcp lro: use flowid only when it has hash properties.

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.

Oct 9 2025, 12:27 PM

Oct 7 2025

gallatin added inline comments to D52959: kernel: MK_REPRODUCIBLE_PATHS for full paths vs /usr/src.
Oct 7 2025, 5:43 PM

Oct 1 2025

gallatin committed rG213170eb956f: iflib: Implement tx desc reclaim threshold (authored by gallatin).
iflib: Implement tx desc reclaim threshold
Oct 1 2025, 10:57 PM
gallatin closed D52561: iflib: Implement tx desc reclaim threshold.
Oct 1 2025, 10:57 PM

Sep 24 2025

gallatin updated the diff for D52561: iflib: Implement tx desc reclaim threshold.

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 24 2025, 10:36 PM

Sep 22 2025

gallatin added a comment to D52561: iflib: Implement tx desc reclaim threshold.

@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 22 2025, 11:16 PM
gallatin accepted D52683: tcp lro: remove redundant check.
Sep 22 2025, 10:18 PM

Sep 18 2025

gallatin requested changes to D52088: bnxt_en: Fix Rx CQ consumer index on Thor2 to prevent interrupt storm.
Sep 18 2025, 2:17 PM
gallatin accepted D52087: bnxt_en: Decode and log "current fault" module events.
Sep 18 2025, 2:13 PM
gallatin accepted D52086: bnxt_en: Fix kernel panic by avoiding softirq reallocation in FW crash recovery.
Sep 18 2025, 2:11 PM
gallatin added inline comments to D52085: bnxt_en: Periodically synchronize host time with firmware.
Sep 18 2025, 2:10 PM
gallatin accepted D52084: bnxt_re: Prevent load on unsupported Thor2 controllers.
Sep 18 2025, 2:06 PM

Sep 16 2025

gallatin added inline comments to D52561: iflib: Implement tx desc reclaim threshold.
Sep 16 2025, 8:14 PM
gallatin added a reviewer for D52561: iflib: Implement tx desc reclaim threshold: glebius.
Sep 16 2025, 8:11 PM

Sep 15 2025

gallatin requested review of D52561: iflib: Implement tx desc reclaim threshold.
Sep 15 2025, 9:51 PM

Sep 11 2025

gallatin closed D52369: iflib: report output drops and handle ENOBUFS properly.
Sep 11 2025, 12:23 AM

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 10 2025, 2:01 PM

Sep 8 2025

gallatin updated the diff for D52369: iflib: report output drops and handle ENOBUFS properly.
  • remove extra space in iflib_if_get_counter as pointed out by @kbowling
Sep 8 2025, 7:49 PM
gallatin added a comment to D52369: iflib: report output drops and handle ENOBUFS properly.

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()?

Sep 8 2025, 7:45 PM
gallatin updated the diff for D52369: iflib: report output drops and handle ENOBUFS properly.

reversed logic and made the driver responsible to query the generic counters for odrop/oerr rather than iflib.

Sep 8 2025, 7:31 PM

Sep 5 2025

gallatin added inline comments to D52369: iflib: report output drops and handle ENOBUFS properly.
Sep 5 2025, 3:27 PM
gallatin added inline comments to D52369: iflib: report output drops and handle ENOBUFS properly.
Sep 5 2025, 1:08 PM
gallatin updated the diff for D52369: iflib: report output drops and handle ENOBUFS properly.

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 5 2025, 1:08 PM

Sep 4 2025

gallatin updated the diff for D52369: iflib: report output drops and handle ENOBUFS properly.
  • 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 4 2025, 12:23 AM

Sep 3 2025

gallatin requested review of D52369: iflib: report output drops and handle ENOBUFS properly.
Sep 3 2025, 8:49 PM

Aug 20 2025

gallatin committed rG84f8ca1bd11d: iflib: add a simple transmit routine (authored by gallatin).
iflib: add a simple transmit routine
Aug 20 2025, 4:51 PM
gallatin closed D51905: iflib: add a simple transmit routine.
Aug 20 2025, 4:51 PM

Aug 14 2025

gallatin added a reviewer for D51905: iflib: add a simple transmit routine: olivier.
Aug 14 2025, 9:33 PM
gallatin requested review of D51905: iflib: add a simple transmit routine.
Aug 14 2025, 9:31 PM

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()
Aug 12 2025, 6:03 PM
gallatin closed D51772: iflib: simplify lro & use lro_queue_mbuf().
Aug 12 2025, 6:02 PM
gallatin updated the diff for D51772: iflib: simplify lro & use lro_queue_mbuf().
Aug 12 2025, 5:41 PM
gallatin added a comment to D51772: iflib: simplify lro & use lro_queue_mbuf().

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 12 2025, 5:39 PM

Aug 9 2025

gallatin edited P664 (An Untitled Masterwork).
Aug 9 2025, 4:49 PM
gallatin created P664 (An Untitled Masterwork).
Aug 9 2025, 4:48 PM