Commit 5aec4ee3 authored by Vince Bridgers's avatar Vince Bridgers Committed by David S. Miller

Altera TSE: Set the Pause Quanta value to the IEEE default value

This patch initializes the pause quanta set for transmitted pause frames
to the IEEE specified default of 0xffff.
Signed-off-by: default avatarVince Bridgers <vbridgers2013@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 37c0ffaa
...@@ -58,6 +58,8 @@ ...@@ -58,6 +58,8 @@
/* MAC function configuration default settings */ /* MAC function configuration default settings */
#define ALTERA_TSE_TX_IPG_LENGTH 12 #define ALTERA_TSE_TX_IPG_LENGTH 12
#define ALTERA_TSE_PAUSE_QUANTA 0xffff
#define GET_BIT_VALUE(v, bit) (((v) >> (bit)) & 0x1) #define GET_BIT_VALUE(v, bit) (((v) >> (bit)) & 0x1)
/* MAC Command_Config Register Bit Definitions /* MAC Command_Config Register Bit Definitions
......
...@@ -891,6 +891,8 @@ static int init_mac(struct altera_tse_private *priv) ...@@ -891,6 +891,8 @@ static int init_mac(struct altera_tse_private *priv)
iowrite32(cmd, &mac->command_config); iowrite32(cmd, &mac->command_config);
iowrite32(ALTERA_TSE_PAUSE_QUANTA, &mac->pause_quanta);
if (netif_msg_hw(priv)) if (netif_msg_hw(priv))
dev_dbg(priv->device, dev_dbg(priv->device,
"MAC post-initialization: CMD_CONFIG = 0x%08x\n", cmd); "MAC post-initialization: CMD_CONFIG = 0x%08x\n", cmd);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment