From: David Miller <davem@davemloft.net>
To: chad.dupuis@cavium.com
Cc: martin.petersen@oracle.com, linux-scsi@vger.kernel.org,
fcoe-devel@open-fcoe.org, netdev@vger.kernel.org,
yuval.mintz@cavium.com, QLogic-Storage-Upstream@cavium.com
Subject: Re: [PATCH V4 net-next 1/2] qed: Add support for hardware offloaded FCoE.
Date: Tue, 14 Feb 2017 13:14:19 -0500 (EST) [thread overview]
Message-ID: <20170214.131419.1326744868549008726.davem@davemloft.net> (raw)
In-Reply-To: <1487013421-27006-2-git-send-email-chad.dupuis@cavium.com>
From: "Dupuis, Chad" <chad.dupuis@cavium.com>
Date: Mon, 13 Feb 2017 11:17:00 -0800
> @@ -255,6 +259,10 @@ struct qed_hw_info {
> u32 part_num[4];
>
> unsigned char hw_mac_addr[ETH_ALEN];
> + u64 node_wwn;
> + u64 port_wwn;
> +
> + u16 num_fcoe_conns;
This new num_fcoe_conns member should be indented just like the rest of them.
> +static int
> +qed_sp_fcoe_func_start(struct qed_hwfn *p_hwfn,
> + enum spq_mode comp_mode,
> + struct qed_spq_comp_cb *p_comp_addr)
> +{
> + struct qed_fcoe_pf_params *fcoe_pf_params = NULL;
> + struct fcoe_init_ramrod_params *p_ramrod = NULL;
> + struct fcoe_conn_context *p_cxt = NULL;
> + struct qed_spq_entry *p_ent = NULL;
> + struct fcoe_init_func_ramrod_data *p_data;
> + int rc = 0;
> + struct qed_sp_init_data init_data;
> + struct qed_cxt_info cxt_info;
> + u32 dummy_cid;
> + u16 tmp;
> + u8 i;
Please order local variable declarations from larget the smallest line.
> +#else /* CONFIG_QED_FCOE */
> +static inline struct qed_fcoe_info *
> +qed_fcoe_alloc(struct qed_hwfn *p_hwfn) { return NULL; }
> +static inline void
> +qed_fcoe_setup(struct qed_hwfn *p_hwfn, struct qed_fcoe_info *p_fcoe_info) {}
> +static inline void
> +qed_fcoe_free(struct qed_hwfn *p_hwfn, struct qed_fcoe_info *p_fcoe_info) {}
> +static inline void
> +qed_get_protocol_stats_fcoe(struct qed_dev *cdev,
> + struct qed_mcp_fcoe_stats *stats) {}
Please do not format these functions so compactly, they are very difficult to
read. Format them just like normal functions.
next prev parent reply other threads:[~2017-02-14 18:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-13 19:16 [PATCH V4 0/2] Add QLogic FastLinQ FCoE (qedf) driver Dupuis, Chad
2017-02-13 19:17 ` [PATCH V4 net-next 1/2] qed: Add support for hardware offloaded FCoE Dupuis, Chad
2017-02-14 18:14 ` David Miller [this message]
2017-02-13 19:17 ` [PATCH V4 2/2] qedf: Add QLogic FastLinQ offload FCoE driver framework Dupuis, Chad
2017-02-14 2:13 ` [PATCH] qedf: fix ifnullfree.cocci warnings kbuild test robot
2017-02-14 2:13 ` [PATCH V4 2/2] qedf: Add QLogic FastLinQ offload FCoE driver framework kbuild test robot
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=20170214.131419.1326744868549008726.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=QLogic-Storage-Upstream@cavium.com \
--cc=chad.dupuis@cavium.com \
--cc=fcoe-devel@open-fcoe.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=netdev@vger.kernel.org \
--cc=yuval.mintz@cavium.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).