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, 07 Mar 2011 12:41:55 +0000
From:	Ben Hutchings <bhutchings@...arflare.com>
To:	Yevgeny Petrilin <yevgenyp@...lanox.co.il>
Cc:	davem@...emloft.net, netdev@...r.kernel.org, markuze@...lanox.co.il
Subject: Re: [PATCH 06/17] mlx4_en: using new mlx4 interrupt scheme

On Mon, 2011-03-07 at 12:17 +0200, Yevgeny Petrilin wrote:
> Each RX ring will have its own interrupt vector, and TX rings will share one
> (we mostly use polling for TX completions).
> The vectors are assigned first time device is opened, and its name includes
> the interface name and ring number.
[...]
> --- a/drivers/net/mlx4/en_main.c
> +++ b/drivers/net/mlx4/en_main.c
[...]
> @@ -601,10 +602,19 @@ int mlx4_en_start_port(struct net_device *dev)
>  		goto cq_err;
>  	}
>  
> +	if (mdev->dev->caps.comp_pool && !priv->tx_vector) {
> +		sprintf(name , "%s_tx", priv->dev->name);
> +		if (mlx4_assign_eq(mdev->dev , name, &priv->tx_vector)) {
> +			mlx4_warn(mdev, "Failed Assigning an EQ to "
> +					"%s_tx ,Falling back to legacy "
> +					"EQ's\n", priv->dev->name);
> +		}
> +	}
[...]

If this string is being copied to the IRQ name, it should be
"<ifname>-tx" not "<ifname>_tx" for consistency with other drivers.

Ben.

-- 
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.

--
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