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:	Fri, 05 Oct 2007 14:20:01 -0700 (PDT)
From:	David Miller <davem@...emloft.net>
To:	netdev@...eo.de
Cc:	netdev@...r.kernel.org, Ariel.Hendel@....com, greg.onufer@....com,
	jeff@...zik.org, Ashley.Saulsbury@....com, Matheos.Worku@....com
Subject: Re: [PATCH]: Third (final?) release of Sun Neptune driver

From: Ingo Oeser <netdev@...eo.de>
Date: Fri, 5 Oct 2007 18:46:19 +0200

> David Miller schrieb:
> > +#define nr64(reg)		readq(np->regs + (reg))
> > +#define nw64(reg, val)		writeq((val), np->regs + (reg))
> > +
> > +#define nr64_mac(reg)		readq(np->mac_regs + (reg))
> > +#define nw64_mac(reg, val)	writeq((val), np->mac_regs + (reg))
> > +
> > +#define nr64_ipp(reg)		readq(np->regs + np->ipp_off + (reg))
> > +#define nw64_ipp(reg, val)	writeq((val), np->regs + np->ipp_off + (reg))
> > +
> > +#define nr64_pcs(reg)		readq(np->regs + np->pcs_off + (reg))
> > +#define nw64_pcs(reg, val)	writeq((val), np->regs + np->pcs_off + (reg))
> > +
> > +#define nr64_xpcs(reg)		readq(np->regs + np->xpcs_off + (reg))
> > +#define nw64_xpcs(reg, val)	writeq((val), np->regs + np->xpcs_off + (reg))
> 
> Can these be static inline and get the "struct niu *np" passed?

Absolutely not, this was discussed to death in the first review.  This
is a common sequence which is used in several driver, which saves a
lot of typing and carpel-tunnel syndrome.
-
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