public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Ben Hutchings <bhutchings@solarflare.com>
To: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Cc: davem@davemloft.net, netdev@vger.kernel.org, markuze@mellanox.co.il
Subject: Re: [PATCH 06/17] mlx4_en: using new mlx4 interrupt scheme
Date: Mon, 07 Mar 2011 12:41:55 +0000	[thread overview]
Message-ID: <1299501715.3134.49.camel@localhost> (raw)
In-Reply-To: <4D74B0AE.5070403@mellanox.co.il>

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.


  reply	other threads:[~2011-03-07 12:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-07 10:17 [PATCH 06/17] mlx4_en: using new mlx4 interrupt scheme Yevgeny Petrilin
2011-03-07 12:41 ` Ben Hutchings [this message]
2011-03-07 13:22   ` Yevgeny Petrilin

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=1299501715.3134.49.camel@localhost \
    --to=bhutchings@solarflare.com \
    --cc=davem@davemloft.net \
    --cc=markuze@mellanox.co.il \
    --cc=netdev@vger.kernel.org \
    --cc=yevgenyp@mellanox.co.il \
    /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