On 5/9/2017 5:49 PM, David Miller wrote:
From: Shannon Nelson <shannon.nel...@oracle.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.


Yes, these do get ugly, and as Michael pointed out this really is an advisory bit and should just be ignored by platforms that don't care. I'll just respin this using the DMA_ATTR_WEAK_ORDERING bit directly rather than obscuring it with a BNXT define.

sln

Reply via email to