| To: | Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] select appropriate skb size in tcp_sendmsg when TSO is used |
| From: | "David S. Miller" <davem@xxxxxxxxxxxxx> |
| Date: | Tue, 26 Oct 2004 17:03:44 -0700 |
| Cc: | jgarzik@xxxxxxxxx, thomas.spatzier@xxxxxxxxxx, netdev@xxxxxxxxxxx |
| In-reply-to: | <20041027000724.GA4869@gondor.apana.org.au> |
| References: | <OF96546AB5.ACE12043-ONC1256F33.0027BC6B-C1256F33.002D4A6E@de.ibm.com> <E1CKE5P-0005SP-00@gondolin.me.apana.org.au> <20041020163510.6d13e9c7.davem@davemloft.net> <20041026111912.GA18095@gondor.apana.org.au> <20041026235126.GA4733@gondor.apana.org.au> <417EE3BB.6040902@pobox.com> <20041027000724.GA4869@gondor.apana.org.au> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
On Wed, 27 Oct 2004 10:07:24 +1000
Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> wrote:
> On Tue, Oct 26, 2004 at 07:54:35PM -0400, Jeff Garzik wrote:
> > Herbert Xu wrote:
> > >+static int __ethtool_set_sg(struct net_device *dev, u32 data)
> > >+{
> > >+ int err;
> > >+
> > >+ if (!data && dev->ethtool_ops->set_tso) {
> > >+ err = dev->ethtool_ops->set_tso(dev, 0);
> > >+ if (err)
> > >+ return err;
> > >+ }
> > >+
> > >+ return dev->ethtool_ops->set_sg(dev, data);
> > >+}
> >
> > you want to disable tx-csum also
>
> IMHO it is valid to disable SG without disabling checksums, no?
Yes and no. SG support requires TX csum support. See the tests we
make at register_netdev() time.
So as long as you enforce that rule, which I believe you are,
things are fine.
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH, TAKE 2] [IPV6] XFRM: extract xfrm_lookup() from ip6_dst_lookup() (is Re: [PATCH][IPv6] separation xfrm_lookup from ip6_dst_lookup), YOSHIFUJI Hideaki / 吉藤英明 |
|---|---|
| Next by Date: | Re: [PATCH] select appropriate skb size in tcp_sendmsg when TSO is used, Jeff Garzik |
| Previous by Thread: | Re: [PATCH] select appropriate skb size in tcp_sendmsg when TSO is used, Herbert Xu |
| Next by Thread: | Re: [PATCH] select appropriate skb size in tcp_sendmsg when TSO is used, Herbert Xu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |