Bug 263756 - igb interface not receiving vlan packets since 12.3
Summary: igb interface not receiving vlan packets since 12.3
Status: Closed DUPLICATE of bug 260468
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 12.3-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-net (Nobody)
URL:
Keywords: IntelNetworking, regression
Depends on:
Blocks:
 
Reported: 2022-05-03 12:30 UTC by sec
Modified: 2023-05-04 13:49 UTC (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sec 2022-05-03 12:30:58 UTC
I have an igb interface that is receieving traffic with multiple vlans for monitoring purposes.

On FreeBSD-12.2 (p12) "tcpdump -ni igb5" shows lots of traffic.
On FreeBSD-12.3 (p5) the same command shows no traffic.

I tried disabling all maybe relevant interface options/flags via:

ifconfig igb5 -vlanhwtag -vlanhwtso -vlanhwcsum -lro -tso -rxcsum -vlanhwfilter -vlanmtu down; ifconfig igb5 up

But still no packets are showing up.
Comment 1 mike 2022-05-04 15:15:57 UTC
if you add -e to the flags, does it then work for you ? i.e
tcpdump -nei igb5 ?
Comment 2 sec 2022-05-05 08:49:24 UTC
In the meantime I found https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260468 which seems match with my problem.

So from 12.2 to 12.3 hwfiltering seems to have gotten enabled by default && can't be disabled anymore.

As a workaround I have created vlan interfaces via
ifconfig $iface.$vlan create

ran that in a loop for all vlans currently in use, and I can see the traffic again in tcpdump

The change to enable vlan filtering should probably be put somewhat prominently in the release notes.

Additionally it would be good if the fix from #260468 could be merged to 12.3 :-)
Comment 3 Natalino Picone 2022-05-20 15:04:40 UTC
(In reply to sec from comment #2)

I had the same issue and I agree that 260468 should be merged on 12.3.

Does anybody know why hwfiltering has been enabled by default?
Comment 4 Ryan Steinmetz freebsd_committer freebsd_triage 2022-05-25 14:14:01 UTC
I ran into this as well.  This resolved my issue:
ifconfig igb0 -vlanhwfilter -vlanhwtag
Comment 5 Natalino Picone 2022-05-25 14:50:40 UTC
(In reply to Ryan Steinmetz from comment #4)

This is not working as the 12.3 intel driver contains a bug.
ifconfig reports that features have been disabled, but they are not.
See https://reviews.freebsd.org/D33154 which I think should also be merged on 12.3
Comment 6 Ryan Steinmetz freebsd_committer freebsd_triage 2022-05-25 14:59:39 UTC
(In reply to Natalino Picone from comment #5)
My use case is closer to what sec@42.org described--where I have vlan interfaces created.

I don't think my situation is identical to what you reported, but, seems related.
Comment 7 Piotr Kubaj freebsd_committer freebsd_triage 2023-05-04 13:39:54 UTC
It looks like https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260468 was fixed, 12.3-RELEASE is now EOL and 12.4-RELEASE contains the fixes.

Is it OK to assume that this bug may be closed now?
Comment 8 Kevin Bowling freebsd_committer freebsd_triage 2023-05-04 13:49:45 UTC

*** This bug has been marked as a duplicate of bug 260468 ***