lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 01 Jun 2015 20:43:37 -0700
From:	Joe Perches <joe@...ches.com>
To:	Hariprasad Shenai <hariprasad@...lsio.com>
Cc:	netdev@...r.kernel.org, davem@...emloft.net, leedom@...lsio.com,
	nirranjan@...lsio.com
Subject: Re: [PATCHv2 net-next 2/3] cxgb4: Adds support for T6 adapter

On Tue, 2015-06-02 at 13:59 +0530, Hariprasad Shenai wrote:
> Adds NIC driver related changes for T6 adapter. Register related
> changes, MC related changes, VF related changes, doorbell related
> changes, debugfs changes, etc

trivial notes:

> diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c
[]
> @@ -1084,41 +1084,89 @@ static inline void tcamxy2valmask(u64 x, u64 y, u8 *addr, u64 *mask)
>  
>  static int mps_tcam_show(struct seq_file *seq, void *v)
>  {
> -	if (v == SEQ_START_TOKEN)
> -		seq_puts(seq, "Idx  Ethernet address     Mask     Vld Ports PF"
> -			 "  VF              Replication             "
> -			 "P0 P1 P2 P3  ML\n");
> -	else {
> +	struct adapter *adap = seq->private;
> +	unsigned int chip_ver = CHELSIO_CHIP_VERSION(adap->params.chip);
> +
> +	if (v == SEQ_START_TOKEN) {
> +		if (adap->params.arch.mps_rplc_size > 128)
> +			seq_puts(seq, "Idx  Ethernet address     Mask     "
> +				 "Vld Ports PF  VF                           "
> +				 "Replication                                "
> +				 "    P0 P1 P2 P3  ML\n");
> +		else
> +			seq_puts(seq, "Idx  Ethernet address     Mask     "
> +				 "Vld Ports PF  VF              Replication"
> +				 "	         P0 P1 P2 P3  ML\n");

Might as well add
	return 0;
here and unindent the block below:

> +	} else {
>  		u64 mask;
>  		u8 addr[ETH_ALEN];
[]
> +		if (chip_ver > CHELSIO_T5)
> +			seq_printf(seq, "%3u %02x:%02x:%02x:%02x:%02x:%02x "
> +				   "%012llx%3c   %#x%4u%4d",
> +				   idx, addr[0], addr[1], addr[2], addr[3],

could use %pM and addr

[]

> +			seq_printf(seq, "%3u %02x:%02x:%02x:%02x:%02x:%02x "
> +				   "%012llx%3c   %#x%4u%4d",
> +				   idx, addr[0], addr[1], addr[2], addr[3],
> +				   addr[4], addr[5], (unsigned long long)mask,

here too



--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ