From: David Miller <davem@davemloft.net>
To: krkumar2@in.ibm.com
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] drivers: set_sg should not be set for !F_SG drivers
Date: Fri, 15 Jan 2010 00:38:45 -0800 (PST) [thread overview]
Message-ID: <20100115.003845.98627674.davem@davemloft.net> (raw)
In-Reply-To: <20100115053229.31542.51066.sendpatchset@krkumar2.in.ibm.com>
From: Krishna Kumar <krkumar2@in.ibm.com>
Date: Fri, 15 Jan 2010 11:02:29 +0530
> From: Krishna Kumar <krkumar2@in.ibm.com>
>
> set_sg should not be set to ethtool_op_set_sg() by drivers
> that do not support SG. It is also not required for these
> drivers to set get_sg since it is handled by the generic
> ethtool_op_get_sg.
>
> Signed-off-by: Krishna Kumar <krkumar2@in.ibm.com>
...
> diff -ruNp org/drivers/net/r8169.c new/drivers/net/r8169.c
> --- org/drivers/net/r8169.c 2009-12-29 18:32:57.000000000 +0530
> +++ new/drivers/net/r8169.c 2009-12-29 18:34:32.000000000 +0530
> @@ -1253,7 +1253,6 @@ static const struct ethtool_ops rtl8169_
> .get_rx_csum = rtl8169_get_rx_csum,
> .set_rx_csum = rtl8169_set_rx_csum,
> .set_tx_csum = ethtool_op_set_tx_csum,
> - .set_sg = ethtool_op_set_sg,
> .set_tso = ethtool_op_set_tso,
> .get_regs = rtl8169_get_regs,
> .get_wol = rtl8169_get_wol,
I think you have some false positives here, actually.
As in my reply to your tcp_sendmsg() patch, r8169.c's transmit
function does fully support segmented packets.
So I think what it's doing here is supporting SG but having
it off by default.
And that's exactly what you get by setting the ethtool_op_set_sg()
function here, and it might be the case that this is what the
other two drivers in your patch are trying to do.
At a minimum, the r8169.c part of this patch is wrong.
prev parent reply other threads:[~2010-01-15 8:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-15 5:32 [PATCH] drivers: set_sg should not be set for !F_SG drivers Krishna Kumar
2010-01-15 8:38 ` David Miller [this message]
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=20100115.003845.98627674.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=krkumar2@in.ibm.com \
--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).