netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: gvaradar@cisco.com
Cc: netdev@vger.kernel.org, benve@cisco.com
Subject: Re: [PATCH 1/3 net-next] enic: add devcmds for vxlan offload
Date: Wed, 08 Feb 2017 14:56:16 -0500 (EST)	[thread overview]
Message-ID: <20170208.145616.1950352200402120604.davem@davemloft.net> (raw)
In-Reply-To: <20170208072825.3144-2-gvaradar@cisco.com>

From: Govindarajulu Varadarajan <gvaradar@cisco.com>
Date: Tue,  7 Feb 2017 23:28:23 -0800

> diff --git a/drivers/net/ethernet/cisco/enic/vnic_dev.c b/drivers/net/ethernet/cisco/enic/vnic_dev.c
> index 8f27df3207bc..9b3d670e1aa9 100644
> --- a/drivers/net/ethernet/cisco/enic/vnic_dev.c
> +++ b/drivers/net/ethernet/cisco/enic/vnic_dev.c
> @@ -1247,3 +1247,45 @@ int vnic_dev_classifier(struct vnic_dev *vdev, u8 cmd, u16 *entry,
>  
>  	return ret;
>  }
> +
> +int vnic_dev_overlay_offload_ctrl(struct vnic_dev *vdev, u8 overlay, u8 config)
> +{
> +	u64 a0;
> +	u64 a1;
> +	int wait = 1000;
> +	int ret;
> +
> +	a0 = overlay;
> +	a1 = config;

Please order local variable declarations from longest to shortest line.
And you can make these helpers more compact by doing the assignment in
the declaration:

	u64 a0 = overlay;
	u64 a1 = config;
	int wait = 1000;
	int ret;

  reply	other threads:[~2017-02-08 20:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-08  7:28 [PATCH 0/3 net-next] enic: add vxlan offload support Govindarajulu Varadarajan
2017-02-08  7:28 ` [PATCH 1/3 net-next] enic: add devcmds for vxlan offload Govindarajulu Varadarajan
2017-02-08 19:56   ` David Miller [this message]
2017-02-08  7:28 ` [PATCH 2/3 net-next] enic: add udp_tunnel ndo " Govindarajulu Varadarajan
2017-02-08 19:56   ` David Miller
2017-02-08  7:28 ` [PATCH 3/3 net-next] enic: add vxlan offload on tx path Govindarajulu Varadarajan
2017-02-08 19:57   ` 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=20170208.145616.1950352200402120604.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=benve@cisco.com \
    --cc=gvaradar@cisco.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).