]> git.karo-electronics.de Git - linux-beck.git/commitdiff
net: hns: set default mac pause time to 0xffff
authorDaode Huang <huangdaode@hisilicon.com>
Wed, 9 Nov 2016 18:13:48 +0000 (18:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Nov 2016 16:45:37 +0000 (11:45 -0500)
The default mac pause time set to 0xff which is too short for pausing,
this patch change it to the max value 0xffff.

Signed-off-by: Daode Huang <huangdaode@hisilicon.com>
Reviewed-by: Yisen Zhuang <yisen.zhuang@huawei.com>
Reviewed-by: lipeng <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h

index 1d941d5a73621991bb87653b909024e31abbd883..a9b0cb3874aa65abadadcdbcd809bdb9f883d207 100644 (file)
@@ -31,7 +31,7 @@ struct dsaf_device;
 #define MAC_MIN_MTU            68
 #define MAC_MAX_MTU_DBG                MAC_DEFAULT_MTU
 
-#define MAC_DEFAULT_PAUSE_TIME 0xff
+#define MAC_DEFAULT_PAUSE_TIME 0xffff
 
 #define MAC_GMAC_IDX 0
 #define MAC_XGMAC_IDX 1