netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Documentation: document the gianfar tx vlan offload issue
@ 2014-04-04  3:04 roy.qing.li
  2014-04-04  3:07 ` yzhu1
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: roy.qing.li @ 2014-04-04  3:04 UTC (permalink / raw)
  To: netdev; +Cc: claudiu.manoil, Yanjun.Zhu

From: Li RongQing <roy.qing.li@gmail.com>

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.

Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: Zhu Yanjun <Yanjun.Zhu@windriver.com>
Cc: Claudiu Manoil <claudiu.manoil@freescale.com>
---
 Documentation/networking/gianfar.txt |   12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/Documentation/networking/gianfar.txt b/Documentation/networking/gianfar.txt
index ad474ea..2d3dbe6 100644
--- a/Documentation/networking/gianfar.txt
+++ b/Documentation/networking/gianfar.txt
@@ -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
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] Documentation: document the gianfar tx vlan offload issue
  2014-04-04  3:04 [PATCH] Documentation: document the gianfar tx vlan offload issue roy.qing.li
@ 2014-04-04  3:07 ` yzhu1
  2014-04-04  7:07 ` Claudiu Manoil
  2014-04-04 13:56 ` David Miller
  2 siblings, 0 replies; 6+ messages in thread
From: yzhu1 @ 2014-04-04  3:07 UTC (permalink / raw)
  To: roy.qing.li, netdev; +Cc: claudiu.manoil

On 04/04/2014 11:04 AM, roy.qing.li@gmail.com wrote:
> From: Li RongQing <roy.qing.li@gmail.com>
>
> 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.
>
> Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
> Signed-off-by: Zhu Yanjun <Yanjun.Zhu@windriver.com>
Nice!

Zhu Yanjun
> Cc: Claudiu Manoil <claudiu.manoil@freescale.com>
> ---
>   Documentation/networking/gianfar.txt |   12 ++++++++++++
>   1 file changed, 12 insertions(+)
>
> diff --git a/Documentation/networking/gianfar.txt b/Documentation/networking/gianfar.txt
> index ad474ea..2d3dbe6 100644
> --- a/Documentation/networking/gianfar.txt
> +++ b/Documentation/networking/gianfar.txt
> @@ -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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Documentation: document the gianfar tx vlan offload issue
  2014-04-04  3:04 [PATCH] Documentation: document the gianfar tx vlan offload issue roy.qing.li
  2014-04-04  3:07 ` yzhu1
@ 2014-04-04  7:07 ` Claudiu Manoil
  2014-04-04  7:10   ` Claudiu Manoil
  2014-04-04 13:56 ` David Miller
  2 siblings, 1 reply; 6+ messages in thread
From: Claudiu Manoil @ 2014-04-04  7:07 UTC (permalink / raw)
  To: roy.qing.li, netdev; +Cc: Yanjun.Zhu

On 4/4/2014 6:04 AM, roy.qing.li@gmail.com wrote:
> From: Li RongQing <roy.qing.li@gmail.com>
>
> 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.
>
> Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
> Signed-off-by: Zhu Yanjun <Yanjun.Zhu@windriver.com>
> Cc: Claudiu Manoil <claudiu.manoil@freescale.com>
> ---
>   Documentation/networking/gianfar.txt |   12 ++++++++++++
>   1 file changed, 12 insertions(+)
>
> diff --git a/Documentation/networking/gianfar.txt b/Documentation/networking/gianfar.txt
> index ad474ea..2d3dbe6 100644
> --- a/Documentation/networking/gianfar.txt
> +++ b/Documentation/networking/gianfar.txt
> @@ -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.
> +
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Documentation: document the gianfar tx vlan offload issue
  2014-04-04  7:07 ` Claudiu Manoil
@ 2014-04-04  7:10   ` Claudiu Manoil
  2014-04-04  7:39     ` Li RongQing
  0 siblings, 1 reply; 6+ messages in thread
From: Claudiu Manoil @ 2014-04-04  7:10 UTC (permalink / raw)
  To: roy.qing.li, netdev; +Cc: Yanjun.Zhu

On 4/4/2014 10:07 AM, Claudiu Manoil wrote:
> On 4/4/2014 6:04 AM, roy.qing.li@gmail.com wrote:
>> From: Li RongQing <roy.qing.li@gmail.com>
>>
>> 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.
>>
>> Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
>> Signed-off-by: Zhu Yanjun <Yanjun.Zhu@windriver.com>
>> Cc: Claudiu Manoil <claudiu.manoil@freescale.com>
>> ---
>>   Documentation/networking/gianfar.txt |   12 ++++++++++++
>>   1 file changed, 12 insertions(+)
>>
>> diff --git a/Documentation/networking/gianfar.txt
>> b/Documentation/networking/gianfar.txt
>> index ad474ea..2d3dbe6 100644
>> --- a/Documentation/networking/gianfar.txt
>> +++ b/Documentation/networking/gianfar.txt
>> @@ -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.
>> +
> 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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Documentation: document the gianfar tx vlan offload issue
  2014-04-04  7:10   ` Claudiu Manoil
@ 2014-04-04  7:39     ` Li RongQing
  0 siblings, 0 replies; 6+ messages in thread
From: Li RongQing @ 2014-04-04  7:39 UTC (permalink / raw)
  To: Claudiu Manoil; +Cc: netdev, Yanjun.Zhu

>>
>> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Documentation: document the gianfar tx vlan offload issue
  2014-04-04  3:04 [PATCH] Documentation: document the gianfar tx vlan offload issue roy.qing.li
  2014-04-04  3:07 ` yzhu1
  2014-04-04  7:07 ` Claudiu Manoil
@ 2014-04-04 13:56 ` David Miller
  2 siblings, 0 replies; 6+ messages in thread
From: David Miller @ 2014-04-04 13:56 UTC (permalink / raw)
  To: roy.qing.li; +Cc: netdev, claudiu.manoil, Yanjun.Zhu

From: roy.qing.li@gmail.com
Date: Fri,  4 Apr 2014 11:04:45 +0800

> +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".

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-04-04 13:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-04  3:04 [PATCH] Documentation: document the gianfar tx vlan offload issue roy.qing.li
2014-04-04  3:07 ` yzhu1
2014-04-04  7:07 ` Claudiu Manoil
2014-04-04  7:10   ` Claudiu Manoil
2014-04-04  7:39     ` Li RongQing
2014-04-04 13:56 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).