From: Ben Hutchings <bhutchings@solarflare.com>
To: "Michał Mirosław" <mirq-linux@rere.qmqm.pl>
Cc: David Miller <davem@davemloft.net>,
netdev@vger.kernel.org, linux-net-drivers@solarflare.com
Subject: Re: [PATCHv2 net-next-2.6 3/7] sfc: Implement generic features interface
Date: Tue, 05 Apr 2011 19:20:40 +0100 [thread overview]
Message-ID: <1302027640.2932.70.camel@bwh-desktop> (raw)
In-Reply-To: <20110405181552.GB16977@rere.qmqm.pl>
On Tue, 2011-04-05 at 20:15 +0200, Michał Mirosław wrote:
> On Tue, Apr 05, 2011 at 07:03:29PM +0100, Ben Hutchings wrote:
> > Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
> > ---
> > drivers/net/sfc/efx.c | 20 +++++++++--
> > drivers/net/sfc/ethtool.c | 78 ------------------------------------------
> > drivers/net/sfc/net_driver.h | 2 -
> > drivers/net/sfc/rx.c | 2 +-
> > 4 files changed, 18 insertions(+), 84 deletions(-)
> >
> > diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c
> > index 542f32d..db72a6e 100644
> > --- a/drivers/net/sfc/efx.c
> > +++ b/drivers/net/sfc/efx.c
> [...]
> > @@ -2452,12 +2463,15 @@ static int __devinit efx_pci_probe(struct pci_dev *pci_dev,
> > return -ENOMEM;
> > net_dev->features |= (type->offload_features | NETIF_F_SG |
> > NETIF_F_HIGHDMA | NETIF_F_TSO |
> > - NETIF_F_GRO);
> > + NETIF_F_RXCSUM);
> > if (type->offload_features & NETIF_F_V6_CSUM)
> > net_dev->features |= NETIF_F_TSO6;
> > /* Mask for features that also apply to VLAN devices */
> > net_dev->vlan_features |= (NETIF_F_ALL_CSUM | NETIF_F_SG |
> > - NETIF_F_HIGHDMA | NETIF_F_ALL_TSO);
> > + NETIF_F_HIGHDMA | NETIF_F_ALL_TSO |
> > + NETIF_F_RXCSUM);
> > + /* All offloads can be toggled */
> > + net_dev->hw_features = net_dev->features & ~NETIF_F_HIGHDMA;
> > efx = netdev_priv(net_dev);
> > pci_set_drvdata(pci_dev, efx);
> > SET_NETDEV_DEV(net_dev, &pci_dev->dev);
>
> Does the driver really allow independent switching of RX checksumming
> for tagged and untagged frames?
No.
> The VLAN code currently doesn't ignore
> HW checksum when present in skb and doesn't allow toggling of the feature
> (see: vlan_fix_features() and vlan_skb_recv() in net/8021q/vlan_dev.c).
So RX checksum offload is reported as enabled on the VLAN device iff it
is enabled for the physical device, which is correct.
Ben.
--
Ben Hutchings, Senior Software Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
next prev parent reply other threads:[~2011-04-05 18:20 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-05 18:00 pull request: sfc-next-2.6 2011-04-05 Ben Hutchings
2011-04-05 18:02 ` [PATCHv2 net-next-2.6 1/7] sfc: Move test of rx_checksum_enabled from nic.c to rx.c Ben Hutchings
2011-04-05 18:02 ` [PATCHv2 net-next-2.6 2/7] sfc: Enable all TSO features on VLANs Ben Hutchings
2011-04-05 18:03 ` [PATCHv2 net-next-2.6 3/7] sfc: Implement generic features interface Ben Hutchings
2011-04-05 18:15 ` Michał Mirosław
2011-04-05 18:20 ` Ben Hutchings [this message]
2011-04-05 18:29 ` Michał Mirosław
2011-04-05 18:03 ` [PATCHv2 net-next-2.6 4/7] ethtool: Convert struct ethtool_ops comment to kernel-doc format Ben Hutchings
2011-04-05 18:04 ` [PATCH net-next-2.6 5/7] ethtool: Fill out and update comment for struct ethtool_ops Ben Hutchings
2011-04-05 18:05 ` [PATCHv2 net-next-2.6 6/7] ethtool: Change ETHTOOL_PHYS_ID implementation to allow dropping RTNL Ben Hutchings
2011-04-05 18:07 ` [PATCHv2 net-next-2.6 7/7] sfc: Implement ethtool_ops::set_phys_id instead of ethtool_ops::phys_id Ben Hutchings
2011-04-06 19:29 ` pull request: sfc-next-2.6 2011-04-05 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=1302027640.2932.70.camel@bwh-desktop \
--to=bhutchings@solarflare.com \
--cc=davem@davemloft.net \
--cc=linux-net-drivers@solarflare.com \
--cc=mirq-linux@rere.qmqm.pl \
--cc=netdev@vger.kernel.org \
/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).