Skip to contentSkip to conversation

broken vlan support on Realtek RTL8111/8168/8411 rev 9

DISCUSSION Benoit Panizzon 2 participants 3 messages Sep 10, 2017 – Sep 12, 2017

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

Hello

I make a strange observation. I have two machines.

One with a:

Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 02)

The other one with the same card, but (rev 09).

The rev 02 one works flawlessly.

The rev 09 one does set all vlan tags to zero on rx!

It's not a config error on the switch, I swapped interfaces with the one the other card is working.

I did try the r8169 kernel module from Realtek stead of the r8168 one, the problem persists.

I did try to disable vlan offloading:

rx-vlan-offload: on
tx-vlan-offload: on

It's not marked as fixed but:

when I try to turn offloading off I get:

# /sbin/ethtool -K eth0 rx-vlan-offload off
ethtool: bad command line argument(s)
For more information run ethtool -h

Could anyone give me a hint how to further debug the problem or disable vlan offloading completely?

-Benoit-

#1 lore raw

Benoit Panizzon <[email protected]> :
[...]

Quoted 10 lines

It's not marked as fixed but:

when I try to turn offloading off I get:

# /sbin/ethtool -K eth0 rx-vlan-offload off
ethtool: bad command line argument(s)
For more information run ethtool -h

Could anyone give me a hint how to further debug the problem or disable vlan offloading completely?

ethtool -K eth0 rxvlan off

For my reward, please send a complete dmesg where the messages from the vanilla r8169 module appear for the rev 09 card (r81..f ?). I won't dig it right now.

Signature · 1 line
Ueimor
#2 lore raw

Hi Francois

Quoted 1 line

ethtool -K eth0 rxvlan off

Thank you, that did the trick, vlan tags are not correctly passed on and not set to vlan 0 with rxvlan turned off.

Quoted 3 lines

For my reward, please send a complete dmesg where the messages from the vanilla r8169 module appear for the rev 09 card (r81..f ?). I won't dig it right now.

Yes, the 'f' variant:

[    1.035203] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    1.035262] r8169 0000:03:00.0: setting latency timer to 64
[    1.035348] r8169 0000:03:00.0: irq 41 for MSI/MSI-X
[    1.035634] r8169 0000:03:00.0: eth0: RTL8168f/8111f at 0xffffc90000c28000, c8:60:00:dd:f8:6c, XID 08000800 IRQ 41
[    1.035637] r8169 0000:03:00.0: eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[   10.403921] r8169 0000:03:00.0: firmware: agent loaded rtl_nic/rtl8168f-1.fw into memory

Linux pulsar 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u2 (2017-06-26) x86_64 GNU/Linux

624831688e25aa47fa84c30c045fcae3 /lib/firmware/rtl_nic/rtl8168f-1.fw

Firmware Bug or Hardware Problem?

-Benoît Panizzon-

Signature · 7 lines
I m p r o W a r e   A G    -    Leiter Commerce Kunden
______________________________________________________

Zurlindenstrasse 29             Tel  +41 61 826 93 00
CH-4133 Pratteln                Fax  +41 61 826 93 01
Schweiz                         Web  http://www.imp.ch
______________________________________________________