Skip to content

Commit 880c8e5

Browse files
szafonimateusz-mijerpelea
authored andcommitted
drivers/net: add IGB network card support
Add support for Intel IGB type of network cards. Signed-off-by: p-szafonimateusz <[email protected]>
1 parent 735e16f commit 880c8e5

File tree

8 files changed

+2156
-2
lines changed

8 files changed

+2156
-2
lines changed

Documentation/components/drivers/special/pci/index.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@ Supported devices:
5050
- Intel 82574L
5151
- Intel 82574L
5252

53+
Intel igb
54+
---------
55+
56+
Intel igb compatible NIC support can be found in ``drivers/net/igb.c``.
57+
58+
Supported devices:
59+
60+
- Intel 82576
61+
- Intel I211
62+
5363
Intel igc
5464
---------
5565

drivers/net/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ if(CONFIG_NET)
8989
list(APPEND SRCS e1000.c)
9090
endif()
9191

92+
if(CONFIG_NET_IGB)
93+
list(APPEND SRCS igb.c)
94+
endif()
95+
9296
if(CONFIG_NET_IGC)
9397
list(APPEND SRCS igc.c)
9498
endif()

drivers/net/Kconfig

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,36 @@ config NET_E1000_RXSPARE
815815

816816
endif # NET_E1000
817817

818+
menuconfig NET_IGB
819+
bool "Intel IGB support"
820+
default n
821+
depends on PCI && PCI_MSIX
822+
---help---
823+
Enable IGB PCI Ethernet driver.
824+
825+
if NET_IGB
826+
827+
config NET_IGB_TXDESC
828+
int "Intel IGB TX descriptors"
829+
default 256
830+
831+
config NET_IGB_RXDESC
832+
int "Intel IGB RX descriptors"
833+
default 256
834+
835+
config NET_IGB_RXSPARE
836+
int "Intel IGB spare RX buffers"
837+
default 8
838+
839+
config NET_IGB_INT_INTERVAL
840+
int "Intel IGB interrupt interval"
841+
default 100
842+
range 1 8191
843+
---help---
844+
Minimum Inter-interrupt Interval in 1 us increments.
845+
846+
endif # NET_IGB
847+
818848
menuconfig NET_IGC
819849
bool "Intel IGC support"
820850
default n

drivers/net/Make.defs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,18 @@ ifeq ($(CONFIG_NET_E1000),y)
103103
CSRCS += e1000.c
104104
endif
105105

106-
ifeq ($(CONFIG_DRIVERS_WIFI_SIM),y)
107-
CSRCS += wifi_sim.c
106+
ifeq ($(CONFIG_NET_IGB),y)
107+
CSRCS += igb.c
108108
endif
109109

110110
ifeq ($(CONFIG_NET_IGC),y)
111111
CSRCS += igc.c
112112
endif
113113

114+
ifeq ($(CONFIG_DRIVERS_WIFI_SIM),y)
115+
CSRCS += wifi_sim.c
116+
endif
117+
114118
# Include network build support
115119

116120
DEPPATH += --dep-path net

0 commit comments

Comments
 (0)