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:   Tue, 25 Jun 2019 17:20:54 -0700
From:   Jakub Kicinski <jakub.kicinski@...ronome.com>
To:     Shannon Nelson <snelson@...sando.io>
Cc:     netdev@...r.kernel.org
Subject: Re: [PATCH net-next 17/18] ionic: Add RSS support

On Thu, 20 Jun 2019 13:24:23 -0700, Shannon Nelson wrote:
> +static int ionic_lif_rss_init(struct lif *lif)
> +{
> +	static const u8 toeplitz_symmetric_key[] = {
> +		0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A,
> +		0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A,
> +		0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A,
> +		0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A,
> +		0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A,
> +	};

netdev_rss_key_fill()

> +	unsigned int i, tbl_sz;
> +
> +	lif->rss_types = IONIC_RSS_TYPE_IPV4     |
> +			 IONIC_RSS_TYPE_IPV4_TCP |
> +			 IONIC_RSS_TYPE_IPV4_UDP |
> +			 IONIC_RSS_TYPE_IPV6     |
> +			 IONIC_RSS_TYPE_IPV6_TCP |
> +			 IONIC_RSS_TYPE_IPV6_UDP;
> +
> +	/* Fill indirection table with 'default' values */
> +	tbl_sz = le16_to_cpu(lif->ionic->ident.lif.eth.rss_ind_tbl_sz);
> +	for (i = 0; i < tbl_sz; i++)
> +		lif->rss_ind_tbl[i] = i % lif->nxqs;

ethtool_rxfh_indir_default()

> +	return ionic_lif_rss_config(lif, lif->rss_types,
> +				    toeplitz_symmetric_key, NULL);
> +}

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ