Skip to contentSkip to conversation

Missing VLAN tags in bnx2

DISCUSSION Pekka Pietikainen 2 participants 2 messages Feb 28, 2007 – Mar 1, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Just had to spend some time figuring out why a bnx2 card connected to a switch monitor port didn't see any vlan tags (when in our scenario the tags are pretty vital). Found the following explanation:

[BNX2]: Fix VLAN on ASF

Always set up the device to strip incoming VLAN tags when ASF is enabled. ASF firmware will not parse packets correctly if VLAN tags are not stripped

My fix:

#ifdef I_DONT_KNOW_WHAT_ASF_IS_AND_DONT_REALLY_CARE_EITHER
        if (REG_RD_IND(bp, bp->shmem_base + BNX2_PORT_FEATURE) &
            BNX2_PORT_FEATURE_ASF_ENABLED)
                bp->flags |= ASF_ENABLE_FLAG;

#endif

Any hope of getting this as a ethtool tunable or something similar? There didn't seem to be a BIOS option for this (Dell PE2900), at least.

#1 lore raw
Quoted 3 lines · Pekka Pietikainen

Just had to spend some time figuring out why a bnx2 card connected to a switch monitor port didn't see any vlan tags (when in our scenario the tags are pretty vital).

I'll have someone send you a utility to disable the ASF firmware.