All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brice Goglin <brice@myri.com>
To: netdev@vger.kernel.org
Cc: Jeff Garzik <jeff@garzik.org>
Subject: Re: [patch 3/4] myri10ge - Use dev_info() when printing parameters after probe
Date: Mon, 03 Jul 2006 18:44:47 -0400	[thread overview]
Message-ID: <44A99DDF.7010306@myri.com> (raw)
In-Reply-To: <20060703220517.236511000@loulous.org>

Please forget this one, something went wrong, it contains both #3 and
#4. I have resent #3 and #4 separately.

Brice



brice@myri.com wrote:
> Displaying the interface name when listing the device parameters
> at the end of myri10ge_probe is not a good idea since udev might
> rename the interface soon afterwards.
> Print the bus id instead, using dev_info().
>
> Signed-off-by: Brice Goglin <brice@myri.com>
> ---
>  drivers/net/myri10ge/myri10ge.c |    9 ++++-----
>  1 file changed, 4 insertions(+), 5 deletions(-)
>
> Index: linux-mm/drivers/net/myri10ge/myri10ge.c
> ===================================================================
> --- linux-mm.orig/drivers/net/myri10ge/myri10ge.c	2006-07-03 16:02:52.000000000 -0400
> +++ linux-mm/drivers/net/myri10ge/myri10ge.c	2006-07-03 16:04:15.000000000 -0400
> @@ -2734,11 +2734,10 @@
>  		dev_err(&pdev->dev, "register_netdev failed: %d\n", status);
>  		goto abort_with_irq;
>  	}
> -
> -	printk(KERN_INFO "myri10ge: %s: %s IRQ %d, tx bndry %d, fw %s, WC %s\n",
> -	       netdev->name, (mgp->msi_enabled ? "MSI" : "xPIC"),
> -	       pdev->irq, mgp->tx.boundary, mgp->fw_name,
> -	       (mgp->mtrr >= 0 ? "Enabled" : "Disabled"));
> +	dev_info(dev, "%s IRQ %d, tx bndry %d, fw %s, WC %s\n",
> +		 (mgp->msi_enabled ? "MSI" : "xPIC"),
> +		 pdev->irq, mgp->tx.boundary, mgp->fw_name,
> +		 (mgp->mtrr >= 0 ? "Enabled" : "Disabled"));
>  
>  	return 0;
>  
> >From bgoglin@loulous.org Mon Jul  3 18:05:17 2006
> Message-Id: <20060703220517.426089000@loulous.org>
> References: <20060703220230.606593000@myri.com>
> User-Agent: quilt/0.45-1
> Date: Mon, 03 Jul 2006 18:02:34 -0400
> From: brice@myri.com
> To: netdev@vger.kernel.org
> Cc: Brice Goglin <brice@myri.com>
> Subject: [patch 4/4] myri10ge - Export more parameters to ethtool.
> Content-Disposition: inline; filename=myri10ge4-export_more_parameters_to_ethtool.patch
>
> Add the IRQ line, the tx_boundary, and whether Write-combining and MSI
> are enabled to the list of parameters that are exported to ethtool.
>
> Signed-off-by: Brice Goglin <brice@myri.com>
> ---
>  drivers/net/myri10ge/myri10ge.c |    5 +++++
>  1 file changed, 5 insertions(+)
>
> Index: linux-mm/drivers/net/myri10ge/myri10ge.c
> ===================================================================
> --- linux-mm.orig/drivers/net/myri10ge/myri10ge.c	2006-07-03 16:04:47.000000000 -0400
> +++ linux-mm/drivers/net/myri10ge/myri10ge.c	2006-07-03 16:39:29.000000000 -0400
> @@ -1288,6 +1288,7 @@
>  	"tx_aborted_errors", "tx_carrier_errors", "tx_fifo_errors",
>  	"tx_heartbeat_errors", "tx_window_errors",
>  	/* device-specific stats */
> +	"tx_boundary", "WC", "irq", "MSI",
>  	"read_dma_bw_MBs", "write_dma_bw_MBs", "read_write_dma_bw_MBs",
>  	"serial_number", "tx_pkt_start", "tx_pkt_done",
>  	"tx_req", "tx_done", "rx_small_cnt", "rx_big_cnt",
> @@ -1326,6 +1327,10 @@
>  	for (i = 0; i < MYRI10GE_NET_STATS_LEN; i++)
>  		data[i] = ((unsigned long *)&mgp->stats)[i];
>  
> +	data[i++] = (unsigned int)mgp->tx.boundary;
> +	data[i++] = (unsigned int)(mgp->mtrr >= 0);
> +	data[i++] = (unsigned int)mgp->pdev->irq;
> +	data[i++] = (unsigned int)mgp->msi_enabled;
>  	data[i++] = (unsigned int)mgp->read_dma;
>  	data[i++] = (unsigned int)mgp->write_dma;
>  	data[i++] = (unsigned int)mgp->read_write_dma;
>
>   


  reply	other threads:[~2006-07-03 22:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-03 22:02 [patch 0/4] myri10ge minor updates brice
2006-07-03 22:02 ` [patch 1/4] myri10ge - Drop unused pm_state brice
2006-07-03 22:02 ` [patch 2/4] myri10ge - Drop ununsed nvidia chipset id brice
2006-07-03 22:02 ` [patch 3/4] myri10ge - Use dev_info() when printing parameters after probe brice
2006-07-03 22:44   ` Brice Goglin [this message]
2006-07-03 22:16 ` [patch 4/4] myri10ge - Export more parameters to ethtool Brice Goglin
2006-07-03 22:41 ` [patch 3/4] myri10ge - Use dev_info() when printing parameters after probe Brice Goglin

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=44A99DDF.7010306@myri.com \
    --to=brice@myri.com \
    --cc=jeff@garzik.org \
    --cc=netdev@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.