[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110415184741.GA31337@rere.qmqm.pl>
Date: Fri, 15 Apr 2011 20:47:41 +0200
From: Michał Mirosław <mirq-linux@...e.qmqm.pl>
To: Jon Mason <jon.mason@...i.com>
Cc: netdev@...r.kernel.org, Andrew Gallatin <gallatin@...i.com>,
Brice Goglin <brice@...i.com>
Subject: Re: [PATCH] net: myri10ge: convert to hw_features
On Fri, Apr 15, 2011 at 01:29:22PM -0500, Jon Mason wrote:
> On Fri, Apr 15, 2011 at 04:50:50PM +0200, Michał Mirosław wrote:
> > Signed-off-by: Michał Mirosław <mirq-linux@...e.qmqm.pl>
> > ---
> > drivers/net/myri10ge/myri10ge.c | 66 +++++++-------------------------------
> > 1 files changed, 12 insertions(+), 54 deletions(-)
[...]
> > -static int myri10ge_set_tso(struct net_device *netdev, u32 tso_enabled)
> > -{
> > - struct myri10ge_priv *mgp = netdev_priv(netdev);
> > - u32 flags = mgp->features & (NETIF_F_TSO6 | NETIF_F_TSO);
> > -
> > - if (tso_enabled)
> > - netdev->features |= flags;
> > - else
> > - netdev->features &= ~flags;
> > - return 0;
> > -}
> ethtool_op_set_tso does not support TSO6. This would remove the
> enable/disable of that feature.
Please test this. You'll see it still works.
Best Regards,
Michał Mirosław
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists