Skip to contentSkip to conversation

cxgb3 - Stop mac RX when changing MTU

PATCH In review [email protected] 1 participant 2 messages May 30, 2007 – May 31, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---

 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
index bf9d6be..020859c 100644
@@ -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

#1 lore raw
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.

This patch has a flaw. The register used to stop broadcast/multicast traffic is wrong. Please ignore this instance. I'm resending it.

Divy