cxgb3 - Stop mac RX when changing MTU
Subsystems (2)
PATCH 4/5 cxgb3 - Stop mac RX when changing MTU
From: Divy Le Ray <[email protected]>
Rx traffic needs to be halted when the MTU is changed to avoid a potential chip hang.
Reset/restore MAC filters around a MTU change. Also fix the pause frames high materwark setting.
Signed-off-by Divy Le Ray <[email protected]>
---
drivers/net/cxgb3/regs.h | 4 +++ drivers/net/cxgb3/xgmac.c | 67 ++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 70 insertions(+), 1 deletions(-)
drivers/net/cxgb3/regs.h +4 -0
@@ -1882,6 +1882,10 @@#define V_COPYALLFRAMES (x) ((x) << S_COPYALLFRAMES)#define F_COPYALLFRAMES V_COPYALLFRAMES(1U) +#define S_DISBCAST 1 +#define V_DISBCAST (x) ((x) << S_DISBCAST) +#define F_DISBCAST V_DISBCAST(1U) +#define A_XGM_RX_HASH_LOW 0x814#define A_XGM_RX_HASH_HIGH 0x818
drivers/net/cxgb3/xgmac.c +66 -1
102 lines not on this page · raw message
Quoted 9 lines · [email protected] wrote:
From: Divy Le Ray <[email protected]>
Rx traffic needs to be halted when the MTU is changed to avoid a potential chip hang.
Reset/restore MAC filters around a MTU change. Also fix the pause frames high materwark setting.Signed-off-by Divy Le Ray <[email protected]>
This patch has a flaw. The register used to stop broadcast/multicast traffic is wrong. Please ignore this instance. I'm resending it.
Divy