From: David Miller <davem@davemloft.net>
To: bhutchings@solarflare.com
Cc: sgruszka@redhat.com, amit.salecha@qlogic.com,
netdev@vger.kernel.org, amwang@redhat.com,
anirban.chakraborty@qlogic.com
Subject: Re: [PATCH -next] qlcnic: fail when try to setup unsupported features
Date: Tue, 29 Jun 2010 09:59:32 -0700 (PDT) [thread overview]
Message-ID: <20100629.095932.186303178.davem@davemloft.net> (raw)
In-Reply-To: <1277822484.2112.19.camel@achroite.uk.solarflarecom.com>
From: Ben Hutchings <bhutchings@solarflare.com>
Date: Tue, 29 Jun 2010 15:41:24 +0100
> On Mon, 2010-06-28 at 15:18 +0100, Ben Hutchings wrote:
>> On Mon, 2010-06-28 at 16:14 +0200, Stanislaw Gruszka wrote:
>> [...]
>> > My plan is something like that:
>> >
>> > static const struct ethtool_ops my_ethtool_ops = {
>> > .get_flags = ethtool_op_get_flags,
>> > .set_flags = ethtool_op_set_flags,
>> > .supported_flags = ETH_FLAG_LRO
>> > }
>> >
>> > Plus op->supported_flags check in ethtool_op_set_flags. That will allow
>> > to define flags per driver. There is also possible to add supported_flags
>> > to netdev, but I would like to avoid that - in such case drivers can use
>> > custom .set_flags function.
>>
>> Sounds good to me.
>
> On second thoughts, this is not going work - supported_flags may need to
> be different for different chips handled by the same driver. In fact,
> this is already the case in sfc. So I think you should do what I
> suggested previously - add a supported_flags parameter to
> ethtool_op_set_flags.
I think this is necessary too, otherwise we'll need to have N copies of
ethtool_ops in a driver in this situation.
next prev parent reply other threads:[~2010-06-29 16:59 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-28 9:31 [PATCH -next] qlcnic: fail when try to setup unsupported features Stanislaw Gruszka
2010-06-28 12:36 ` Amit Salecha
2010-06-28 12:58 ` Stanislaw Gruszka
2010-06-28 13:09 ` Amit Salecha
2010-06-28 14:14 ` Stanislaw Gruszka
2010-06-28 14:18 ` Ben Hutchings
2010-06-29 14:41 ` Ben Hutchings
2010-06-29 15:00 ` Stanislaw Gruszka
2010-06-29 15:05 ` Ben Hutchings
2010-06-29 16:01 ` [RFC] [PATCH] ethtool: Change ethtool_op_set_flags to validate flags Ben Hutchings
2010-06-30 5:26 ` Jeff Garzik
2010-06-30 11:21 ` Stanislaw Gruszka
2010-06-30 20:47 ` David Miller
2010-06-29 16:59 ` David Miller [this message]
2010-06-28 13:16 ` [PATCH -next] qlcnic: fail when try to setup unsupported features Ben Hutchings
2010-06-28 13:30 ` Ben Hutchings
2010-06-28 14:18 ` Stanislaw Gruszka
2010-06-29 7:55 ` 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=20100629.095932.186303178.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=amit.salecha@qlogic.com \
--cc=amwang@redhat.com \
--cc=anirban.chakraborty@qlogic.com \
--cc=bhutchings@solarflare.com \
--cc=netdev@vger.kernel.org \
--cc=sgruszka@redhat.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).