-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: Adding support for Cavium ThunderX network controller
This patch adds support for the Cavium ThunderX network controller. The driver is on the pci bus and thus requires the Thunder PCIe host controller driver to be enabled. Signed-off-by: Maciej Czekaj <mjc@semihalf.com> Signed-off-by: David Daney <david.daney@cavium.com> Signed-off-by: Sunil Goutham <sgoutham@cavium.com> Signed-off-by: Ganapatrao Kulkarni <ganapatrao.kulkarni@caviumnetworks.com> Signed-off-by: Aleksey Makarov <aleksey.makarov@caviumnetworks.com> Signed-off-by: Tomasz Nowicki <tomasz.nowicki@linaro.org> Signed-off-by: Robert Richter <rrichter@cavium.com> Signed-off-by: Kamil Rytarowski <kamil@semihalf.com> Signed-off-by: Thanneeru Srinivasulu <tsrinivasulu@caviumnetworks.com> Signed-off-by: Sruthi Vangala <svangala@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Sunil Goutham
authored and
David S. Miller
committed
May 27, 2015
1 parent
e5c4708
commit 4863dea
Showing
16 changed files
with
7,380 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# | ||
# Cavium ethernet device configuration | ||
# | ||
|
||
config NET_VENDOR_CAVIUM | ||
tristate "Cavium ethernet drivers" | ||
depends on PCI | ||
---help--- | ||
Enable support for the Cavium ThunderX Network Interface | ||
Controller (NIC). The NIC provides the controller and DMA | ||
engines to move network traffic to/from the memory. The NIC | ||
works closely with TNS, BGX and SerDes to implement the | ||
functions replacing and virtualizing those of a typical | ||
standalone PCIe NIC chip. | ||
|
||
If you have a Cavium Thunder board, say Y. | ||
|
||
if NET_VENDOR_CAVIUM | ||
|
||
config THUNDER_NIC_PF | ||
tristate "Thunder Physical function driver" | ||
default NET_VENDOR_CAVIUM | ||
select THUNDER_NIC_BGX | ||
---help--- | ||
This driver supports Thunder's NIC physical function. | ||
|
||
config THUNDER_NIC_VF | ||
tristate "Thunder Virtual function driver" | ||
default NET_VENDOR_CAVIUM | ||
---help--- | ||
This driver supports Thunder's NIC virtual function | ||
|
||
config THUNDER_NIC_BGX | ||
tristate "Thunder MAC interface driver (BGX)" | ||
default NET_VENDOR_CAVIUM | ||
---help--- | ||
This driver supports programming and controlling of MAC | ||
interface from NIC physical function driver. | ||
|
||
endif # NET_VENDOR_CAVIUM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# | ||
# Makefile for the Cavium ethernet device drivers. | ||
# | ||
|
||
obj-$(CONFIG_NET_VENDOR_CAVIUM) += thunder/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# | ||
# Makefile for Cavium's Thunder ethernet device | ||
# | ||
|
||
obj-$(CONFIG_THUNDER_NIC_BGX) += thunder_bgx.o | ||
obj-$(CONFIG_THUNDER_NIC_PF) += nicpf.o | ||
obj-$(CONFIG_THUNDER_NIC_VF) += nicvf.o | ||
|
||
nicpf-y := nic_main.o | ||
nicvf-y := nicvf_main.o nicvf_queues.o | ||
nicvf-y += nicvf_ethtool.o |
Oops, something went wrong.