提交 4c0ef231 编写于 作者: W WingMan Kwok 提交者: David S. Miller

net: netcp: ethss: fix 10gbe host port tx pri map configuration

This patch adds the missing 10gbe host port tx priority map
configurations.
Signed-off-by: NWingMan Kwok <w-kwok2@ti.com>
Signed-off-by: NMurali Karicheri <m-karicheri2@ti.com>
Signed-off-by: NSekhar Nori <nsekhar@ti.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 e9838ef2
...@@ -94,6 +94,7 @@ ...@@ -94,6 +94,7 @@
/* offset relative to base of XGBE_SS_REG_INDEX */ /* offset relative to base of XGBE_SS_REG_INDEX */
#define XGBE10_SGMII_MODULE_OFFSET 0x100 #define XGBE10_SGMII_MODULE_OFFSET 0x100
#define IS_SS_ID_XGBE(d) ((d)->ss_version == XGBE_SS_VERSION_10)
/* offset relative to base of XGBE_SM_REG_INDEX */ /* offset relative to base of XGBE_SM_REG_INDEX */
#define XGBE10_HOST_PORT_OFFSET 0x34 #define XGBE10_HOST_PORT_OFFSET 0x34
#define XGBE10_SLAVE_PORT_OFFSET 0x64 #define XGBE10_SLAVE_PORT_OFFSET 0x64
...@@ -2322,7 +2323,7 @@ static void gbe_init_host_port(struct gbe_priv *priv) ...@@ -2322,7 +2323,7 @@ static void gbe_init_host_port(struct gbe_priv *priv)
int bypass_en = 1; int bypass_en = 1;
/* Host Tx Pri */ /* Host Tx Pri */
if (IS_SS_ID_NU(priv)) if (IS_SS_ID_NU(priv) || IS_SS_ID_XGBE(priv))
writel(HOST_TX_PRI_MAP_DEFAULT, writel(HOST_TX_PRI_MAP_DEFAULT,
GBE_REG_ADDR(priv, host_port_regs, tx_pri_map)); GBE_REG_ADDR(priv, host_port_regs, tx_pri_map));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册