Skip to contentSkip to conversation

igc: Add support for Tx/Rx rings

PATCH New Sasha Neftin 2 participants 2 messages Oct 11, 2018 – Oct 13, 2018

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

PATCH v8 5/11 igc: Add support for Tx/Rx rings

This change adds the defines and structures necessary to support both Tx and Rx descriptor rings.

Sasha Neftin (v2):
fixed code indentation

Sasha Neftin (v3):
minor code fixes

Sasha Neftin (v4):
refactor of igc_clean_tx_ring method and resovle rmmod hang problem remove unused code
address comments
fix code indentation
fix xmas layout
fix header of igc_tx_buffer method
remove duplicate defines of IGC_TX_HTHRESH and IGC_TX_PTHRESH fix typo
replace e1000_ prefix with igc_prefix

Sasha Neftin (v5):
remove unused defines

Sasha Neftin (v6):
minor cosmetic changes

Sasha Neftin (v7):
no changes

Sasha Neftin (v8):
fix whitespaces in comments
remove unneeded forward declarations

---
 drivers/net/ethernet/intel/igc/Makefile      |   2 +-
 drivers/net/ethernet/intel/igc/igc.h         | 125 ++++
 drivers/net/ethernet/intel/igc/igc_base.c    |  83 +++
 drivers/net/ethernet/intel/igc/igc_base.h    |  89 +++
 drivers/net/ethernet/intel/igc/igc_defines.h |  43 ++
 drivers/net/ethernet/intel/igc/igc_hw.h      |   1 +
 drivers/net/ethernet/intel/igc/igc_main.c    | 827 +++++++++++++++++++++++++++
 drivers/net/ethernet/intel/igc/igc_regs.h    |   3 +
 8 files changed, 1172 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/ethernet/intel/igc/igc_base.c
 create mode 100644 drivers/net/ethernet/intel/igc/igc_base.h
drivers/net/ethernet/intel/igc/Makefile +1 -1
index 06e0b9e23a8c..c32c45300692 100644
@@ -7,4 +7,4 @@
 
 obj-$(CONFIG_IGC) += igc.o
 
-igc-objs := igc_main.o igc_mac.o
+igc-objs := igc_main.o igc_mac.o igc_base.o
drivers/net/ethernet/intel/igc/igc.h +125 -0

141 lines not on this page · raw message

drivers/net/ethernet/intel/igc/igc_base.c new file +83 -0

83 lines not on this page · raw message

drivers/net/ethernet/intel/igc/igc_base.h new file +89 -0

89 lines not on this page · raw message

drivers/net/ethernet/intel/igc/igc_defines.h +43 -0

55 lines not on this page · raw message

drivers/net/ethernet/intel/igc/igc_hw.h +1 -0
index 3905efb1bb1b..a032495a0479 100644
@@ -10,6 +10,7 @@
 #include "igc_defines.h"
 #include "igc_mac.h"
 #include "igc_i225.h"
+#include "igc_base.h"
 
 #define IGC_DEV_ID_I225_LM			0x15F2
 #define IGC_DEV_ID_I225_V			0x15F3
drivers/net/ethernet/intel/igc/igc_main.c +827 -0

930 lines not on this page · raw message

drivers/net/ethernet/intel/igc/igc_regs.h +3 -0
index 2372d6d68dbc..e268986eeb9f 100644
@@ -168,6 +168,9 @@
 #define IGC_SCVPC	0x04228  /* SerDes/SGMII Code Violation Pkt Count */
 #define IGC_HRMPC	0x0A018  /* Header Redirection Missed Packet Count */
 
+/* Management registers */
+#define IGC_MANC	0x05820  /* Management Control - RW */
+
 /* forward declaration */
 struct igc_hw;
 u32 igc_rd32(struct igc_hw *hw, u32 reg);
Signature · 1 line
2.11.0
#1 lore raw

PATCH v8 5/11 igc: Add support for Tx/Rx rings

Quoted 40 lines

From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On Behalf Of Sasha Neftin
Sent: Thursday, October 11, 2018 12:17 AM
To: Neftin, Sasha <[email protected]>; intel-wired-lan at lists.osuosl.org
Subject: [Intel-wired-lan] [PATCH v8 05/11] igc: Add support for Tx/Rx rings

This change adds the defines and structures necessary to support both Tx and Rx descriptor rings.

Sasha Neftin (v2):
fixed code indentation

Sasha Neftin (v3):
minor code fixes

Sasha Neftin (v4):
refactor of igc_clean_tx_ring method and resovle rmmod hang problem remove unused code
address comments
fix code indentation
fix xmas layout
fix header of igc_tx_buffer method
remove duplicate defines of IGC_TX_HTHRESH and IGC_TX_PTHRESH fix typo
replace e1000_ prefix with igc_prefix

Sasha Neftin (v5):
remove unused defines

Sasha Neftin (v6):
minor cosmetic changes

Sasha Neftin (v7):
no changes

Sasha Neftin (v8):
fix whitespaces in comments
remove unneeded forward declarations

Quoted 14 lines
---
 drivers/net/ethernet/intel/igc/Makefile      |   2 +-
 drivers/net/ethernet/intel/igc/igc.h         | 125 ++++
 drivers/net/ethernet/intel/igc/igc_base.c    |  83 +++
 drivers/net/ethernet/intel/igc/igc_base.h    |  89 +++
 drivers/net/ethernet/intel/igc/igc_defines.h |  43 ++
 drivers/net/ethernet/intel/igc/igc_hw.h      |   1 +
 drivers/net/ethernet/intel/igc/igc_main.c    | 827
+++++++++++++++++++++++++++
 drivers/net/ethernet/intel/igc/igc_regs.h    |   3 +
 8 files changed, 1172 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/ethernet/intel/igc/igc_base.c
 create mode 100644 drivers/net/ethernet/intel/igc/igc_base.h