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
| ||
|
Message-Id: <20170509.204937.115947896476049334.davem@davemloft.net> Date: Tue, 09 May 2017 20:49:37 -0400 (EDT) From: David Miller <davem@...emloft.net> To: shannon.nelson@...cle.com Cc: netdev@...r.kernel.org, sparclinux@...r.kernel.org Subject: Re: [PATCH net-next] bnxt: add dma mapping attributes From: Shannon Nelson <shannon.nelson@...cle.com> Date: Tue, 9 May 2017 13:37:33 -0700 > @@ -66,6 +66,12 @@ > MODULE_DESCRIPTION("Broadcom BCM573xx network driver"); > MODULE_VERSION(DRV_MODULE_VERSION); > > +#ifdef CONFIG_SPARC > +#define BNXT_DMA_ATTRS DMA_ATTR_WEAK_ORDERING > +#else > +#define BNXT_DMA_ATTRS 0 > +#endif > + I do not what this ifdef crap showing up in every driver just to improve performance on one platform. This needs to be generically done somehow in a way that drivers get the correct setting automatically and without ifdef checks.
Powered by blists - more mailing lists