From: Jesse Gross <jesse@nicira.com>
To: leitao@linux.vnet.ibm.com
Cc: shemminger@vyatta.com, davem@davemloft.net, netdev@vger.kernel.org
Subject: Re: [PATCH] ehea: Fixing LRO configuration
Date: Sun, 12 Dec 2010 16:39:08 -0800 [thread overview]
Message-ID: <AANLkTimvL2TdD9eYQMLZW65ESKbame818ObzjPYoBhPL@mail.gmail.com> (raw)
In-Reply-To: <1291833062-27446-1-git-send-email-leitao@linux.vnet.ibm.com>
On Wed, Dec 8, 2010 at 10:31 AM, <leitao@linux.vnet.ibm.com> wrote:
> In order to set LRO on ehea, the user must set a module parameter, which
> is not the standard way to do so. This patch adds a way to set LRO using
> the ethtool tool.
>
> Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
>
> diff --git a/drivers/net/ehea/ehea_ethtool.c b/drivers/net/ehea/ehea_ethtool.c
> index 75b099c..1f37ee6 100644
> --- a/drivers/net/ehea/ehea_ethtool.c
> +++ b/drivers/net/ehea/ehea_ethtool.c
> @@ -261,6 +261,13 @@ static void ehea_get_ethtool_stats(struct net_device *dev,
>
> }
>
> +static int ehea_set_flags(struct net_device *dev, u32 data)
> +{
> + return ethtool_op_set_flags(dev, data, ETH_FLAG_LRO
> + | ETH_FLAG_TXVLAN
> + | ETH_FLAG_RXVLAN);
I don't think that this should enable those vlan offloading flags. I
don't see any logic to actually disable vlan stripping on receive if
that flag is toggled. Transmit might be OK, since it will cause the
networking core to insert the tag in software if offloading is
disabled. However, I see some places where skb->protocol is accessed
to determine the protocol of the packet being transmitted. In most
drivers this causes a problem when transmit vlan offloading is
disabled because the packet type becomes ETH_P_8021Q, instead of the
expected protocol. On the other hand, it appears that there aren't
any offloads in vlan_features, so maybe it doesn't matter.
next prev parent reply other threads:[~2010-12-13 0:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-08 18:31 [PATCH] ehea: Fixing LRO configuration leitao
2010-12-08 18:44 ` Ben Hutchings
2010-12-08 18:51 ` leitao
2010-12-08 20:19 ` David Miller
2010-12-13 0:39 ` Jesse Gross [this message]
2010-12-14 13:01 ` Breno Leitao
2010-12-14 20:55 ` Jesse Gross
2010-12-20 19:02 ` [PATCH] ehea: Avoid changing vlan flags leitao
2010-12-28 21:51 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTimvL2TdD9eYQMLZW65ESKbame818ObzjPYoBhPL@mail.gmail.com \
--to=jesse@nicira.com \
--cc=davem@davemloft.net \
--cc=leitao@linux.vnet.ibm.com \
--cc=netdev@vger.kernel.org \
--cc=shemminger@vyatta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).