Skip to content

octeontx2-pf: Add network driver for physical function

[email protected] netdev 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest17 patches 1 replyIn review
  2. v5 posting 2/20 of 17 patches 0 repliesSuperseded
  3. v5 posting 1/217 patches 6 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v417 patches18 repliesSuperseded
v317 patches5 repliesSuperseded
v217 patches5 repliesSuperseded
v117 patches4 repliesSuperseded

Changes in v6 from the cover letter

* Fixed otx2_atomic64_add() non ARM64 fallback definition.
- Suggested by David Miller

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17octeontx2-pf: Add Marvell OcteonTX2 NIC driverdrivers/net/ethernet/marvell/octeontx2/Kconfig drivers/net/ethernet/marvell/octeontx2/Makefile drivers/net/ethernet/marvell/octeontx2/nic/Makefile +3 more+362 -00 replies
2/17octeontx2-pf: Mailbox communication with AFdrivers/net/ethernet/marvell/octeontx2/nic/Makefile drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h +1 more+552 -30 replies
3/17octeontx2-pf: Attach NIX and NPA block LFsdrivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c +1 more+286 -40 replies
4/17octeontx2-pf: Initialize and config queuesdrivers/net/ethernet/marvell/octeontx2/af/common.h drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h +4 more+1290 -170 replies
5/17octeontx2-pf: Setup interrupts and NAPI handlerdrivers/net/ethernet/marvell/octeontx2/nic/Makefile drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h +3 more+332 -100 replies
6/17octeontx2-pf: Receive packet handling supportdrivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c +3 more+349 -30 replies
7/17octeontx2-pf: Add packet transmission supportdrivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c +3 more+470 -20 replies
8/17octeontx2-pf: Register and handle link notificationsdrivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c+109 -00 replies
9/17octeontx2-pf: MTU, MAC and RX mode config supportdrivers/net/ethernet/marvell/octeontx2/af/mbox.h drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c +3 more+242 -60 replies
10/17octeontx2-pf: Error handling supportdrivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c +3 more+255 -30 replies
11/17octeontx2-pf: Receive side scaling supportdrivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c +1 more+167 -10 replies
12/17octeontx2-pf: TCP segmentation offload supportdrivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c +2 more+273 -40 replies
13/17octeontx2-pf: Add ndo_get_stats64drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c+97 -00 replies
14/17octeontx2-pf: Add basic ethtool supportdrivers/net/ethernet/marvell/octeontx2/nic/Makefile drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h +3 more+525 -40 replies
15/17octeontx2-pf: ethtool RSS config supportdrivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c +1 more+269 -40 replies
16/17Documentation: net: octeontx2: Add RVU HW and drivers overviewDocumentation/networking/device_drivers/index.rst Documentation/networking/device_drivers/marvell/octeontx2.rst MAINTAINERS+161 -00 replies
17/17MAINTAINERS: Add entry for Marvell OcteonTX2 Physical Function driverMAINTAINERS+9 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.

Read the v6 thread

Cover letter [PATCH v6 00/17] octeontx2-pf: Add network driver for physical function

From: Sunil Goutham <[email protected]>

OcteonTX2 SOC's resource virtualization unit (RVU) supports multiple physical and virtual functions. Each of the PF's functionality is determined by what kind of resources are attached to it. If NPA and NIX blocks are attached to a PF it can function as a highly capable network device.

This patch series add a network driver for the PF. Initial set of patches adds mailbox communication with admin function (RVU AF) and configuration of queues. Followed by Rx and tx pkts NAPI handler and then support for HW offloads like RSS, TSO, Rxhash etc. Ethtool support to extract stats, config RSS, queue sizes, queue count is also added.

Added documentation to give a high level overview of HW and different drivers which will be upstreamed and how they interact.

Changes from v5:
* Fixed otx2_atomic64_add() non ARM64 fallback definition.
- Suggested by David Miller

Changes from v4:
* Replaced pci_set_dma_mask and pci_set_consistent_dma_mask fn()s with dma_set_mask_and_coherent().
* Some additonal code cleanup.
* Fixed receive buffer segmnetation logic in otx2_alloc_rbuf()
* Removed all unused BIG_ENDIAN structure definitions.
* Removed unnecessary memory barriers
- Sugested by Jakub Kicinski
* Fixed mailbox initalization failure handling
* Removed unused function parameter in otx2_skb_add_frag()
- Suggested by Maciej Fijalkowski

Changes from v3:
* Fixed receive side scaling reinitialization during interface DOWN and UP to retain user configured settings, if any.
* Removed driver version from ethtool.
* Fixed otx2_set_rss_hash_opts() to return error incase RSS is not enabled.
- Sugested by Jakub Kicinski

Changes from v2:
* Removed frames, bytes, dropped packet stats from ethtool to avoid duplication of same stats in netlink and ethtool.
- Sugested by Jakub Kicinski
* Removed number of channels and ringparam upper bound checking in ethtool support.
* Fixed RSS hash option setting to reject unsupported config.
- Suggested by Michal Kubecek

Changes from v1:
* Made driver dependent on 64bit, to fix build errors related to non availability of writeq/readq APIs for 32bit platforms.
- Reported by kbuild test robot

Christina Jacob (1):
octeontx2-pf: Add basic ethtool support

Geetha sowjanya (2):
octeontx2-pf: Error handling support
octeontx2-pf: Add ndo_get_stats64

Linu Cherian (1):
octeontx2-pf: Register and handle link notifications

Sunil Goutham (13):
octeontx2-pf: Add Marvell OcteonTX2 NIC driver
octeontx2-pf: Mailbox communication with AF
octeontx2-pf: Attach NIX and NPA block LFs
octeontx2-pf: Initialize and config queues
octeontx2-pf: Setup interrupts and NAPI handler
octeontx2-pf: Receive packet handling support
octeontx2-pf: Add packet transmission support
octeontx2-pf: MTU, MAC and RX mode config support
octeontx2-pf: Receive side scaling support
octeontx2-pf: TCP segmentation offload support
octeontx2-pf: ethtool RSS config support
Documentation: net: octeontx2: Add RVU HW and drivers overview
MAINTAINERS: Add entry for Marvell OcteonTX2 Physical Function driver

 Documentation/networking/device_drivers/index.rst  |    1 +
 .../device_drivers/marvell/octeontx2.rst           |  159 +++
 MAINTAINERS                                        |   10 +
 drivers/net/ethernet/marvell/octeontx2/Kconfig     |    8 +
 drivers/net/ethernet/marvell/octeontx2/Makefile    |    2 +
 drivers/net/ethernet/marvell/octeontx2/af/common.h |    9 +-
 drivers/net/ethernet/marvell/octeontx2/af/mbox.h   |    8 +-
 .../net/ethernet/marvell/octeontx2/af/rvu_nix.c    |   17 +
 .../net/ethernet/marvell/octeontx2/nic/Makefile    |   10 +
 .../ethernet/marvell/octeontx2/nic/otx2_common.c   | 1410 ++++++++++++++++++++
 .../ethernet/marvell/octeontx2/nic/otx2_common.h   |  615 +++++++++
 .../ethernet/marvell/octeontx2/nic/otx2_ethtool.c  |  662 +++++++++
 .../net/ethernet/marvell/octeontx2/nic/otx2_pf.c   | 1349 +++++++++++++++++++
 .../net/ethernet/marvell/octeontx2/nic/otx2_reg.h  |  147 ++
 .../ethernet/marvell/octeontx2/nic/otx2_struct.h   |  276 ++++
 .../net/ethernet/marvell/octeontx2/nic/otx2_txrx.c |  848 ++++++++++++
 .../net/ethernet/marvell/octeontx2/nic/otx2_txrx.h |  162 +++
 17 files changed, 5690 insertions(+), 3 deletions(-)
 create mode 100644 Documentation/networking/device_drivers/marvell/octeontx2.rst
 create mode 100644 drivers/net/ethernet/marvell/octeontx2/nic/Makefile
 create mode 100644 drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c
 create mode 100644 drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
 create mode 100644 drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c
 create mode 100644 drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
 create mode 100644 drivers/net/ethernet/marvell/octeontx2/nic/otx2_reg.h
 create mode 100644 drivers/net/ethernet/marvell/octeontx2/nic/otx2_struct.h
 create mode 100644 drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
 create mode 100644 drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.h
Signature · 1 line
2.7.4