Skip to contentSkip to conversation

cxgb3 - Stop mac RX when changing MTU

PATCH RESEND New Divy Le Ray 1 participant 1 message May 31, 2007

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

PATCH RESEND 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 |   70 +++++++++++++++++++++++++++++++++++++++++----
 2 files changed, 67 insertions(+), 7 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 +63 -7

111 lines not on this page · raw message