From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Yuval Mintz <Yuval.Mintz@qlogic.com>,
davem@davemloft.net, netdev@vger.kernel.org
Subject: Re: [PATCH net-next 2/5] qede: Add support for ethtool private flags
Date: Mon, 18 Apr 2016 17:11:47 +0300 [thread overview]
Message-ID: <5714EB23.5020102@cogentembedded.com> (raw)
In-Reply-To: <1460921195-23352-3-git-send-email-Yuval.Mintz@qlogic.com>
Hello.
On 4/17/2016 10:26 PM, Yuval Mintz wrote:
> Adds a getter for the interfaces private flags.
> The only parameter currently supported is whether the interface is a
> coupled function [required for supporting 100g].
>
> Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
> ---
> drivers/net/ethernet/qlogic/qede/qede_ethtool.c | 27 +++++++++++++++++++++++++
> 1 file changed, 27 insertions(+)
>
> diff --git a/drivers/net/ethernet/qlogic/qede/qede_ethtool.c b/drivers/net/ethernet/qlogic/qede/qede_ethtool.c
> index f87e83b..5ba6b2a 100644
> --- a/drivers/net/ethernet/qlogic/qede/qede_ethtool.c
> +++ b/drivers/net/ethernet/qlogic/qede/qede_ethtool.c
[...]
> @@ -185,6 +200,17 @@ static int qede_get_sset_count(struct net_device *dev, int stringset)
> }
> }
>
> +static u32 qede_get_priv_flags(struct net_device *dev)
> +{
> + struct qede_dev *edev = netdev_priv(dev);
> + u32 flags = 0;
> +
> + flags |= (!!(edev->dev_info.common.num_hwfns > 1)) <<
> + QEDE_PRI_FLAG_CMT;
Why not just '='?
> +
> + return flags;
... or direct return of the value above?
> +}
> +
> static int qede_get_settings(struct net_device *dev, struct ethtool_cmd *cmd)
> {
> struct qede_dev *edev = netdev_priv(dev);
[...]
MBR, Sergei
next prev parent reply other threads:[~2016-04-18 14:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-17 19:26 [PATCH net-next 0/5] qed*: eeprom access et al Yuval Mintz
2016-04-17 19:26 ` [PATCH net-next 1/5] qed*: Align statistics names Yuval Mintz
2016-04-17 19:26 ` [PATCH net-next 2/5] qede: Add support for ethtool private flags Yuval Mintz
2016-04-18 14:11 ` Sergei Shtylyov [this message]
2016-04-18 14:34 ` Yuval Mintz
2016-04-17 19:26 ` [PATCH net-next 3/5] qed*: Conditions for changing link Yuval Mintz
2016-04-17 19:26 ` [PATCH net-next 4/5] qed: add support for link pause configuration Yuval Mintz
2016-04-17 19:26 ` [PATCH net-next 5/5] qed*: Add support for read/write of eeprom Yuval Mintz
2016-04-17 23:18 ` David Miller
2016-04-18 3:59 ` Yuval Mintz
2016-04-18 4:07 ` David Miller
2016-04-18 5:50 ` Yuval Mintz
2016-04-20 5:25 ` Yuval Mintz
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=5714EB23.5020102@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=Yuval.Mintz@qlogic.com \
--cc=davem@davemloft.net \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.