Skip to contentSkip to conversation

Documentation: document the gianfar tx vlan offload issue

PATCH In review [email protected] 4 participants 6 messages Apr 4, 2014

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

PATCH 1/1 Documentation: document the gianfar tx vlan offload issue

From: Li RongQing <[email protected]>

The commit b852b72087[gianfar: fix bug caused by 87c288c6e9] and e2c53be223 [gianfar: fix default tx vlan offload feature flag] disabled tx vlan offload from dev->feature, since enabling vlan tag insertion leads to unusable connections on some configurations.

But this feature is in dev->hw_feature still, and a user can enable it by "ethtool", so document the tx vlan offload issue.

---
 Documentation/networking/gianfar.txt |   12 ++++++++++++
 1 file changed, 12 insertions(+)
Documentation/networking/gianfar.txt +12 -0
index ad474ea..2d3dbe6 100644
@@ -51,6 +51,18 @@ configuring VLANs.  The gianfar driver supports hardware insertion and
 extraction of VLAN headers, but not filtering.  Filtering will be
 done by the kernel.
 
+But if tx vlan tag hardware insertion is enabled, and a vlan-device is
+created, the physical device which vlan device is on will be unable to
+work, like:
+
+	$ethtool -K eth0 tx-vlan-stag-hw-insert on
+	$ifconfig eth0 192.168.1.13/24 up
+
+	$vconfig add eth0 4091
+	$ifconfig eth0.4091 10.1.1.13/24 up
+eth0.4091 can work, but eth0 can not work, since eth0 sends the insane
+packets out.
+
 MULTICASTING
 
 The gianfar driver supports using the group hash table on the
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 7 lines · On 04/04/2014 11:04 AM, [email protected] wrote:

From: Li RongQing <[email protected]>

The commit b852b72087[gianfar: fix bug caused by 87c288c6e9] and e2c53be223 [gianfar: fix default tx vlan offload feature flag] disabled tx vlan offload from dev->feature, since enabling vlan tag insertion leads to unusable connections on some configurations.

Quoted 5 lines

But this feature is in dev->hw_feature still, and a user can enable it by "ethtool", so document the tx vlan offload issue.

Nice!

Zhu Yanjun

Quoted 28 lines
Cc Claudiu Manoil <[email protected]>
---
  Documentation/networking/gianfar.txt |   12 ++++++++++++
  1 file changed, 12 insertions(+)
Documentation/networking/gianfar.txt +12 -0
index ad474ea..2d3dbe6 100644
@@ -51,6 +51,18 @@ configuring VLANs.  The gianfar driver supports hardware insertion and
  extraction of VLAN headers, but not filtering.  Filtering will be
  done by the kernel.
 
+But if tx vlan tag hardware insertion is enabled, and a vlan-device is
+created, the physical device which vlan device is on will be unable to
+work, like:
+
+	$ethtool -K eth0 tx-vlan-stag-hw-insert on
+	$ifconfig eth0 192.168.1.13/24 up
+
+	$vconfig add eth0 4091
+	$ifconfig eth0.4091 10.1.1.13/24 up
+eth0.4091 can work, but eth0 can not work, since eth0 sends the insane
+packets out.
+
  MULTICASTING
 
  The gianfar driver supports using the group hash table on the
#2 lore raw
In reply to [email protected]
Quoted 27 lines · On 4/4/2014 6:04 AM, [email protected] wrote:

From: Li RongQing <[email protected]>

The commit b852b72087[gianfar: fix bug caused by 87c288c6e9] and e2c53be223 [gianfar: fix default tx vlan offload feature flag] disabled tx vlan offload from dev->feature, since enabling vlan tag insertion leads to unusable connections on some configurations.

But this feature is in dev->hw_feature still, and a user can enable it by "ethtool", so document the tx vlan offload issue.

---
  Documentation/networking/gianfar.txt |   12 ++++++++++++
  1 file changed, 12 insertions(+)
Documentation/networking/gianfar.txt +2 -0
index ad474ea..2d3dbe6 100644
@@ -51,6 +51,18 @@ configuring VLANs.  The gianfar driver supports hardware insertion and
  extraction of VLAN headers, but not filtering.  Filtering will be
  done by the kernel.
 
+But if tx vlan tag hardware insertion is enabled, and a vlan-device is
+created, the physical device which vlan device is on will be unable to

Documentation/networking/gianfar.txt configuring VLANs. The gianfar driver supports hardware insertion and · line 65

Quoted 10 lines
Documentation/networking/gianfar.txt +10 -0
+work, like:
+
+	$ethtool -K eth0 tx-vlan-stag-hw-insert on
+	$ifconfig eth0 192.168.1.13/24 up
+
+	$vconfig add eth0 4091
+	$ifconfig eth0.4091 10.1.1.13/24 up
+eth0.4091 can work, but eth0 can not work, since eth0 sends the insane
+packets out.
+

I don't really like this, this is hardly a technical explanation. ("insane packets"?) Please have a look at the HW reference manual. There you have the description of the VLAN extraction feature (see VLEX).

Regards,
Claudiu

#3 lore raw
Quoted 38 lines · Claudiu Manoil
Quoted 37 lines · On 4/4/2014 6:04 AM, [email protected] wrote:

From: Li RongQing <[email protected]>

The commit b852b72087[gianfar: fix bug caused by 87c288c6e9] and e2c53be223
[gianfar: fix default tx vlan offload feature flag] disabled tx vlan offload
from dev->feature, since enabling vlan tag insertion leads to unusable connections on some configurations.

But this feature is in dev->hw_feature still, and a user can enable it by "ethtool", so document the tx vlan offload issue.

---
  Documentation/networking/gianfar.txt |   12 ++++++++++++
  1 file changed, 12 insertions(+)
Documentation/networking/gianfar.txt +0 -0
index ad474ea..2d3dbe6 100644
@@ -51,6 +51,18 @@ configuring VLANs.  The gianfar driver supports

hardware insertion and
extraction of VLAN headers, but not filtering. Filtering will be done by the kernel.

Documentation/networking/gianfar.txt +9 -0
+But if tx vlan tag hardware insertion is enabled, and a vlan-device is
+created, the physical device which vlan device is on will be unable to
+work, like:
+
+    $ethtool -K eth0 tx-vlan-stag-hw-insert on
+    $ifconfig eth0 192.168.1.13/24 up
+
+    $vconfig add eth0 4091
+    $ifconfig eth0.4091 10.1.1.13/24 up
Quoted 9 lines

Documentation/networking/gianfar.txt configuring VLANs. The gianfar driver supports hardware insertion and · line 65

Quoted 3 lines
Documentation/networking/gianfar.txt +3 -0
+eth0.4091 can work, but eth0 can not work, since eth0 sends the insane
+packets out.
+

I don't really like this, this is hardly a technical explanation. ("insane packets"?)
Please have a look at the HW reference manual. There you have the description
of the VLAN extraction feature (see VLEX).

And VLAN insertion (VLINS) as well, for that matter.

#4 lore raw
Quoted 10 lines
Quoted 7 lines

I don't really like this, this is hardly a technical explanation. ("insane packets"?)
Please have a look at the HW reference manual. There you have the description
of the VLAN extraction feature (see VLEX).

And VLAN insertion (VLINS) as well, for that matter.

Not all users will have time to read HW reference manual, if we can give them more explanation, I think it maybe save their time to debug, to see code, and search manual

-Roy

maintainer
#5 lore raw
In reply to [email protected]

From: [email protected]
Date: Fri, 4 Apr 2014 11:04:45 +0800

Documentation/networking/gianfar.txt configuring VLANs. The gianfar driver supports hardware insertion and · line 64

Quoted 11 lines
Documentation/networking/gianfar.txt +11 -0
+But if tx vlan tag hardware insertion is enabled, and a vlan-device is
+created, the physical device which vlan device is on will be unable to
+work, like:
+
+	$ethtool -K eth0 tx-vlan-stag-hw-insert on
+	$ifconfig eth0 192.168.1.13/24 up
+
+	$vconfig add eth0 4091
+	$ifconfig eth0.4091 10.1.1.13/24 up
+eth0.4091 can work, but eth0 can not work, since eth0 sends the insane
+packets out.

This is a bit of a joke.

If a configuration doesn't work properly, it should be disallowed by the driver, rather than "documented".