On 12/11/2026 16:21, Ruinskiy, Dima wrote:
> Would it be possible to ask you to run a few additional tests, if you
> haven't yet?
Hi Dima,
Thanks. Both tests are done, on the same two machines and kernel as
before: host 1 = OptiPlex 7060, host 2 = ProDesk 600 G5. lan0 was taken
out of OVS for the tests, so it was not promiscuous: promiscuity 0,
RCTL 0x06038422 (UPE/MPE clear), against 0x0603843A as an OVS port.
Traffic as before: 1 GiB of TCP over ssh, MSS 8948, from a 10GbE
sender, rx_crc_errors counted per GiB. Unless noted, every run
delivered the full 1 GiB, rx_errors rose by twice rx_crc_errors,
length/align stayed at 0, rx_missed_errors at ~0, and rx_smbus moved
only by its background rate.
Test 1
The upper is a macvlan with a distinct MAC on lan0.13 (a VLAN device
on lan0 that has lan0's MAC), created after lan0 was up. Its address
reaches lan0's unicast list through dev_uc_sync() ("bridge fdb show
dev lan0" lists it). Adding it did not set UPE, so it went to SHRA.
host 1 host 2
control: DA = lan0's own MAC (RAR[0]) 0 0
d. DA = the live-added secondary 418, 418 387, 390
e. same, after ethtool -G lan0 rx 4088 0, 0 0, 0
(e1000e_down()/e1000e_up(), uppers stay up)
e. same, after ip link set lan0 down; up 427, 416 394, 385
for reference, lan0 back in OVS (promiscuous) 416, 424 395, 398
The live-added address behaves like one that is not in the RAR at all,
and a reconfiguration with the address present fixes it.
A plain down/up does not, and I believe that is down to how a
VLAN-stacked address comes back. lan0 down closes the VLAN device, and
vlan_dev_stop() unsyncs its list from lan0. On lan0 up,
e1000_configure() runs e1000e_set_rx_mode() and then e1000_setup_rctl()
before NETDEV_UP reopens the VLAN device and dev_uc_sync() writes the
address back, so it arrives live again. (The workaround runs in
e1000_setup_rctl(); my first mail said e1000_configure_rx(), which was
wrong.) A fix that refreshes the workaround only on reset would miss
this case.
Test 2
lan0's MAC changed to a locally administered address while up and not
promiscuous. The VLAN device carrying the host's IP keeps the original
MAC explicitly, so the original moved to SHRA as a secondary.
host 1 host 2
b. DA = the new MAC, changed live 422, 423 379, 399
c. after a reset (ethtool -G), MAC unchanged 0, 0 0, 0
d. original MAC restored live nothing received
until the next reset
after that reset 0, 0 0, 0
MAC set while lan0 was down, then up 0, 0 0, 0
So updating RAR[0] in e1000_set_mac() leaves the old CRC seed and the
PHY's copy in place until the next reset.
Step d is worse than CRC errors, and it reproduced every time, on both
hosts. Once the original MAC is written back into RAR[0] while the port
is up, nothing addressed to it is received on any VLAN until the next
adapter reset. A tc ingress counter on lan0 for that DA stays at 0;
rx_crc_errors, rx_errors, rx_missed_errors and rx_smbus do not move;
transmit carries on. The host's IS-IS adjacencies time out on their
hold timer. Without a reset it lasted 4 min 19 s; with the host
resetting the adapter 30 s later it lasted 26-42 s, and a second
secondary address being present made no difference. In that step the
address does two things at once: rar_set() puts it into RAR[0], and
dev_uc_del() removes it from the SHRA slot it held at the last reset,
where the PHY's copy still has it. My guess from the outside is that
the PHY matches the DA against its stale copy and crops it, and the MAC
then finds no valid entry in that slot.
If the analysis holds, the PCH_RAICC and
e1000_copy_rx_addrs_to_phy_ich8lan() refresh looks needed after every
RAR/SHRA write while the jumbo workaround is on, in e1000_set_mac() and
e1000e_write_uc_addr_list(), not only in e1000_configure(). I can test
a patch on both machines.
As before, I ran this with the help of an AI assistant (Claude); the
numbers were measured on my two machines.
Thanks,
Andrei