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
| ||
|
Date: Mon, 27 Jan 2020 11:16:01 +0000 From: Russell King - ARM Linux admin <linux@...linux.org.uk> To: Jose Abreu <Jose.Abreu@...opsys.com> Cc: netdev@...r.kernel.org, Joao Pinto <Joao.Pinto@...opsys.com>, Giuseppe Cavallaro <peppe.cavallaro@...com>, Alexandre Torgue <alexandre.torgue@...com>, "David S. Miller" <davem@...emloft.net>, Jakub Kicinski <kuba@...nel.org>, Maxime Coquelin <mcoquelin.stm32@...il.com>, Andrew Lunn <andrew@...n.ch>, Florian Fainelli <f.fainelli@...il.com>, Heiner Kallweit <hkallweit1@...il.com>, linux-stm32@...md-mailman.stormreply.com, linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org Subject: Re: [RFC net-next 2/8] net: phylink: Add phylink_and and phylink_andnot Helpers On Mon, Jan 27, 2020 at 12:09:07PM +0100, Jose Abreu wrote: > Add two new helpers for bitmap handling. Please use linkmode_andnot() and linkmode_and() instead. > > Signed-off-by: Jose Abreu <Jose.Abreu@...opsys.com> > > --- > Cc: Giuseppe Cavallaro <peppe.cavallaro@...com> > Cc: Alexandre Torgue <alexandre.torgue@...com> > Cc: Jose Abreu <joabreu@...opsys.com> > Cc: "David S. Miller" <davem@...emloft.net> > Cc: Jakub Kicinski <kuba@...nel.org> > Cc: Maxime Coquelin <mcoquelin.stm32@...il.com> > Cc: Russell King <linux@...linux.org.uk> > Cc: Andrew Lunn <andrew@...n.ch> > Cc: Florian Fainelli <f.fainelli@...il.com> > Cc: Heiner Kallweit <hkallweit1@...il.com> > Cc: netdev@...r.kernel.org > Cc: linux-stm32@...md-mailman.stormreply.com > Cc: linux-arm-kernel@...ts.infradead.org > Cc: linux-kernel@...r.kernel.org > --- > include/linux/phylink.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/include/linux/phylink.h b/include/linux/phylink.h > index 523209e70947..70a2f7a4450b 100644 > --- a/include/linux/phylink.h > +++ b/include/linux/phylink.h > @@ -272,6 +272,10 @@ int phylink_mii_ioctl(struct phylink *, struct ifreq *, int); > > #define phylink_zero(bm) \ > bitmap_zero(bm, __ETHTOOL_LINK_MODE_MASK_NBITS) > +#define phylink_and(bm, obm) \ > + bitmap_and(bm, bm, obm, __ETHTOOL_LINK_MODE_MASK_NBITS) > +#define phylink_andnot(bm, obm) \ > + bitmap_andnot(bm, bm, obm, __ETHTOOL_LINK_MODE_MASK_NBITS) > #define __phylink_do_bit(op, bm, mode) \ > op(ETHTOOL_LINK_MODE_ ## mode ## _BIT, bm) > > -- > 2.7.4 > > -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up
Powered by blists - more mailing lists