Re: [PATCH V4 net-next 1/2] qed: Add support for hardware offloaded FCoE.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Dupuis, Chad" <chad.dupuis@xxxxxxxxxx>
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.



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux