I have server which is equipped with I210 NIC and has 11.2-STABLE installed. With default config and MTU 9000 this server can not send faster than ~670Mbit/s on network without any other load (tested with iperf3). If I set "sysctl dev.igb.0.fc" to 0, it easily sends 990-995Mbit/s at same network to same client. Other problem is, that after mtu change with "ifconfig igb mtu ..." speed drops again, but "sysctl dev.igb.0.fc" is 0 still. To turn off flow control again it is needed to flip "sysctl dev.igb.0.fc" to non-zero and to zero again.
(In reply to Lev A. Serebryakov from comment #0) Can you check on recent versions of FreeBSD?
(In reply to Kevin Bowling from comment #1) Should it be CURRENT or stable (12? 13?) is enough?
(In reply to Lev A. Serebryakov from comment #2) The most recent snapshots (2021-Sep-30) of stable12+ or main should all be pretty close with respect to igb(4).
(In reply to Kevin Bowling from comment #3) I'll rebuild stable12 at this weekend and try.
Looks like latest stable12 doesn't have this problem.
Thanks Lev! I can confirm the driver is in a similar state in stable/13 and main, and this version will ship in 12.3 so I will close this bug out. I am not sure on the specific fix, a lot of things have been improved since the initial report.