Skip to contentSkip to conversation

cxgb3 - Stop mac RX when changing MTU

PATCH In review [email protected] 1 participant 1 message May 26, 2007

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

PATCH 5/7 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 2c47d4a..02f8731 100644
@@ -1886,6 +1886,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