提交 3b7f817e 编写于 作者: D Dmitry Kravkov 提交者: David S. Miller

bnx2x: don't write dcb/llfc fields in STORM memory

We could get hardware attention during DCB/FCoE traffic without this
fix.
Signed-off-by: NDmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: NMichael Chan <mchan@broadcom.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 96b8e1a0
......@@ -1041,12 +1041,23 @@ static inline void storm_memset_cmng(struct bnx2x *bp,
struct cmng_struct_per_port *cmng,
u8 port)
{
size_t size = sizeof(struct cmng_struct_per_port);
size_t size =
sizeof(struct rate_shaping_vars_per_port) +
sizeof(struct fairness_vars_per_port) +
sizeof(struct safc_struct_per_port) +
sizeof(struct pfc_struct_per_port);
u32 addr = BAR_XSTRORM_INTMEM +
XSTORM_CMNG_PER_PORT_VARS_OFFSET(port);
__storm_memset_struct(bp, addr, size, (u32 *)cmng);
addr += size + 4 /* SKIP DCB+LLFC */;
size = sizeof(struct cmng_struct_per_port) -
size /* written */ - 4 /*skipped*/;
__storm_memset_struct(bp, addr, size,
(u32 *)(cmng->traffic_type_to_priority_cos));
}
/* HW Lock for shared dual port PHYs */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册