r/Netgate • • Oct 07 '26

How Netgate Improved FreeBSD Networking for Everyone

Netgate® software engineer Christian McDonald identified a bug in FreeBSD®'s iflib framework, which underpins many of today's most widely used network interface drivers, including em, igb, igc, ix, ixl, ice, iavf, bnxt, vmx, axgbe, enetc, enic, and mgb. The bug was artificially limiting the number of packets per second each interface could process, capping throughput at 0.98 Mpps in testing.

Two targeted fixes changed everything. The first, a single line of code, pushed throughput to 2.57 Mpps. The second took it further still, to 3.58 Mpps. The result is a 3.7x improvement in network throughput, and because the fix lives in iflib itself, every FreeBSD user and every project built on FreeBSD enjoys these benefits.

Learn More

42 Upvotes

6 comments sorted by

1

u/davidjohnwood Oct 08 '26

Are either of these fixes currently shipping in pfSense Plus or pfSense CE?

1

u/DirectAttitude Oct 08 '26

A second change, now in FreeBSD review as D60416, holds the doorbell while a batch is being forwarded and rings once when the batch is done. It is controlled by a proposed knob, net.iflib.tx_db_batched, which is not yet part of FreeBSD. 

2

u/TheOnionRack Oct 08 '26

I was like “hold the doorbell? Knobs? Is this AI slop?”

Read the ticket and had no idea those were real things in BSD internal plumbing haha.

1

u/davidjohnwood Oct 08 '26

It is unsurprising that FreeBSD has not shipped a change that is still under review. However, Netgate ships its own versions of the FreeBSD kernel for pfSense Plus and pfSense CE. My question was about those pfSense kernels.

3

u/cmcdonald-netgate Oct 23 '26

It will be in the next version of pfSense

2

u/davidjohnwood Oct 23 '26

That's great news. Thanks for the clarification and best wishes to all at Netgate.