Discussion:
bnx2: can't disable rx-vlan-offload?
Lukas Tribus
2014-10-14 16:05:28 UTC
Permalink
Hi!


=46or a passive, libpcap based sniffer I'm trying to disable rx vlan
offload on a bnx2 card (vlan capture filter in libpcap doesn't work
correctly), but I'm not able to:

disabling rxvlan fails:

***@sniffer:~# ethtool -K eth1 rxvlan off
Could not change any device features
***@sniffer:~#
***@sniffer:~# ethtool -k eth1
=46eatures for eth1:
rx-checksumming: on
tx-checksumming: on
=A0 =A0 =A0 =A0 tx-checksum-ipv4: on
=A0 =A0 =A0 =A0 tx-checksum-ip-generic: off [fixed]
=A0 =A0 =A0 =A0 tx-checksum-ipv6: on
=A0 =A0 =A0 =A0 tx-checksum-fcoe-crc: off [fixed]
=A0 =A0 =A0 =A0 tx-checksum-sctp: off [fixed]
scatter-gather: on
=A0 =A0 =A0 =A0 tx-scatter-gather: on
=A0 =A0 =A0 =A0 tx-scatter-gather-fraglist: off [fixed]
tcp-segmentation-offload: on
=A0 =A0 =A0 =A0 tx-tcp-segmentation: on
=A0 =A0 =A0 =A0 tx-tcp-ecn-segmentation: on
=A0 =A0 =A0 =A0 tx-tcp6-segmentation: on
udp-fragmentation-offload: off [fixed]
generic-segmentation-offload: on
generic-receive-offload: on
large-receive-offload: off [fixed]
rx-vlan-offload: on [requested off]
tx-vlan-offload: on
ntuple-filters: off [fixed]
receive-hashing: on
highdma: on [fixed]
rx-vlan-filter: off [fixed]
vlan-challenged: off [fixed]
tx-lockless: off [fixed]
netns-local: off [fixed]
tx-gso-robust: off [fixed]
tx-fcoe-segmentation: off [fixed]
tx-gre-segmentation: off [fixed]
tx-ipip-segmentation: off [fixed]
tx-sit-segmentation: off [fixed]
tx-udp_tnl-segmentation: off [fixed]
tx-mpls-segmentation: off [fixed]
fcoe-mtu: off [fixed]
tx-nocache-copy: on
loopback: off [fixed]
rx-fcs: off [fixed]
rx-all: off [fixed]
tx-vlan-stag-hw-insert: off [fixed]
rx-vlan-stag-hw-parse: off [fixed]
rx-vlan-stag-filter: off [fixed]
l2-fwd-offload: off [fixed]
***@sniffer:~#
***@sniffer:~# ethtool -i eth1
driver: bnx2
version: 2.2.4
firmware-version: 5.0.9 bc 5.0.6 NCSI 2.0.3
bus-info: 0000:01:00.1
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: no
***@sniffer:~#

dmesg bnx2 lines:
[ =A0 =A06.974972] bnx2: Broadcom NetXtreme II Gigabit Ethernet Driver =
bnx2 v2.2.4 (Aug 05, 2013)
[ =A0 =A06.975681] bnx2 0000:01:00.0 eth0: Broadcom NetXtreme II BCM571=
6 1000Base-T (C0) PCI Express found at mem da000000, IRQ 36, node addr =
00:26:b9:51:ba:59
[ =A0 =A06.976631] bnx2 0000:01:00.1 eth1: Broadcom NetXtreme II BCM571=
6 1000Base-T (C0) PCI Express found at mem dc000000, IRQ 48, node addr =
00:26:b9:51:ba:5a


I'm using Ubuntus 3.13 kernel and ethtool version 3.13, but I previousl=
y
tried ethtool 3.1 on both ubuntu 3.8 kernel and a vanilla=A03.14.21
kernel as well.


Any ideas or workarounds that may help disabling rx vlan acceleration?




Thanks!

Lukas


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Vlad Yasevich
2014-10-15 14:37:25 UTC
Permalink
Hi!
For a passive, libpcap based sniffer I'm trying to disable rx vlan
offload on a bnx2 card (vlan capture filter in libpcap doesn't work
Could not change any device features
rx-checksumming: on
tx-checksumming: on
tx-checksum-ipv4: on
tx-checksum-ip-generic: off [fixed]
tx-checksum-ipv6: on
tx-checksum-fcoe-crc: off [fixed]
tx-checksum-sctp: off [fixed]
scatter-gather: on
tx-scatter-gather: on
tx-scatter-gather-fraglist: off [fixed]
tcp-segmentation-offload: on
tx-tcp-segmentation: on
tx-tcp-ecn-segmentation: on
tx-tcp6-segmentation: on
udp-fragmentation-offload: off [fixed]
generic-segmentation-offload: on
generic-receive-offload: on
large-receive-offload: off [fixed]
rx-vlan-offload: on [requested off]
tx-vlan-offload: on
ntuple-filters: off [fixed]
receive-hashing: on
highdma: on [fixed]
rx-vlan-filter: off [fixed]
vlan-challenged: off [fixed]
tx-lockless: off [fixed]
netns-local: off [fixed]
tx-gso-robust: off [fixed]
tx-fcoe-segmentation: off [fixed]
tx-gre-segmentation: off [fixed]
tx-ipip-segmentation: off [fixed]
tx-sit-segmentation: off [fixed]
tx-udp_tnl-segmentation: off [fixed]
tx-mpls-segmentation: off [fixed]
fcoe-mtu: off [fixed]
tx-nocache-copy: on
loopback: off [fixed]
rx-fcs: off [fixed]
rx-all: off [fixed]
tx-vlan-stag-hw-insert: off [fixed]
rx-vlan-stag-hw-parse: off [fixed]
rx-vlan-stag-filter: off [fixed]
l2-fwd-offload: off [fixed]
driver: bnx2
version: 2.2.4
firmware-version: 5.0.9 bc 5.0.6 NCSI 2.0.3
bus-info: 0000:01:00.1
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: no
[ 6.974972] bnx2: Broadcom NetXtreme II Gigabit Ethernet Driver bnx2 v2.2.4 (Aug 05, 2013)
[ 6.975681] bnx2 0000:01:00.0 eth0: Broadcom NetXtreme II BCM5716 1000Base-T (C0) PCI Express found at mem da000000, IRQ 36, node addr 00:26:b9:51:ba:59
[ 6.976631] bnx2 0000:01:00.1 eth1: Broadcom NetXtreme II BCM5716 1000Base-T (C0) PCI Express found at mem dc000000, IRQ 48, node addr 00:26:b9:51:ba:5a
I'm using Ubuntus 3.13 kernel and ethtool version 3.13, but I previously
tried ethtool 3.1 on both ubuntu 3.8 kernel and a vanilla 3.14.21
kernel as well.
Any ideas or workarounds that may help disabling rx vlan acceleration?
Try bringing the interface down first. BNX2 is a bit strange in how it handles
vlan feature changes.

-vlad
Thanks!
Lukas
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
More majordomo info at http://vger.kernel.org/majordomo-info.html
Lukas Tribus
2014-10-15 16:25:46 UTC
Permalink
Hi Vlad,
Any ideas or workarounds that may help disabling rx vlan acceleratio=
n?
Try bringing the interface down first. BNX2 is a bit strange in how i=
t handles
vlan feature changes.
I tried, doesn't work.


Anyway, I reproduced the original issue on e1000e with and without
rxvlan=A0offload, so even if I would be able to disable this on bnx2, t=
he
original problem would not go away.

I will do some more=A0troubleshooting on the original issue with e1000e
and will come back=A0in a new thread if it turns out to be a problem.



Thanks,

Lukas

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Loading...