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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1319686552.21924.47.camel@Joe-Laptop>
Date:	Wed, 26 Oct 2011 20:35:52 -0700
From:	Joe Perches <joe@...ches.com>
To:	Rob Herring <robherring2@...il.com>
Cc:	netdev@...r.kernel.org, devicetree-discuss@...ts.ozlabs.org,
	Rob Herring <rob.herring@...xeda.com>
Subject: Re: [PATCH] net: add calxeda xgmac ethernet driver

On Wed, 2011-10-26 at 21:56 -0500, Rob Herring wrote:
> Add support for the XGMAC 10Gb ethernet device in the Calxeda Highbank
> SOC.

Hi Rob, just trivia:

Most of the logging dev_<level> messages
should be netdev_<level>

Adding #define pr_fmt KBUILD_MODNAME ": " fmt
before any #include would be useful to prefix
the module name to pr_<level> output.

> +static int desc_get_tx_status(struct xgmac_extra_stats *x,
> +			      struct xgmac_dma_desc *p, void __iomem *ioaddr)
> +{
[]
> +	if (status & TXDESC_JABBER_TIMEOUT) {
> +		pr_debug("\tjabber_timeout error\n");
> +		x->tx_jabber++;
> +	}

Adding pr_fmt, the output would become:
calxeda_xgmac: 	jabber_timeout error

[]
> +static void xgmac_rx_refill(struct xgmac_priv *priv)

> +		dev_dbg(priv->device, "rx ring: head %d, tail %d\n",
> +			priv->rx_head, priv->rx_tail);

	netdev_dbg(priv->dev, "rx ring: head %d, tail %d\n",
		   etc...)
[]
> +static int xgmac_open(struct net_device *dev)
> +{
[]
> +	if (!is_valid_ether_addr(dev->dev_addr)) {
> +		random_ether_addr(dev->dev_addr);
> +		dev_dbg(priv->device, "generated random MAC address %pM\n",
> +			dev->dev_addr);

		netdev_dbg(dev, "generated random MAC address %pM\n",
			   dev->dev_addr);

etc...

cheers, Joe

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