net: stmmac: Use AVB mode by default
authorThierry Reding <treding@nvidia.com>
Tue, 21 Mar 2017 15:12:11 +0000 (16:12 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Mar 2017 19:15:15 +0000 (12:15 -0700)
Prior to the recent multi-queue changes the driver would configure the
queues to use the AVB mode, but the mode then got switched to DCB. The
hardware still works fine in DCB mode, but my testing capabilities are
limited, so it's safer to revert to the prior setting anyway.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Acked-By: Joao Pinto <jpinto@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/stmmac.h

index cd98ee232ad1911da969dafd5c151482c7526868..3921cb9dfadb9b4a9bbe30854ccada75725b8005 100644 (file)
@@ -56,8 +56,8 @@
 #define MTL_RX_ALGORITHM_WSP   0x5
 
 /* RX/TX Queue Mode */
-#define MTL_QUEUE_DCB          0x0
-#define MTL_QUEUE_AVB          0x1
+#define MTL_QUEUE_AVB          0x0
+#define MTL_QUEUE_DCB          0x1
 
 /* The MDC clock could be set higher than the IEEE 802.3
  * specified frequency limit 0f 2.5 MHz, by programming a clock divider