Skip to content

add octeon_ep_vf driver

Shinas Rasheed linux-doc lkml netdev 7 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest8 patches 0 repliesApplied 8/8
  2. v68 patches 3 repliesSuperseded
  3. v58 patches 5 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v48 patches1 replySuperseded
v38 patches3 repliesSuperseded
v28 patches9 repliesApplied 8/8
v18 patches2 repliesSuperseded

Changes in v7 from the cover letter

- Separated octep_vf_get_if_stats from octep_vf_main.h to later patch

Patches in v7 All 8 applied

#Subject and filesSizeRepliesApplied
1/8octeon_ep_vf: Add driver framework and device initializationDocumentation/networking/device_drivers/ethernet/index.rst Documentation/networking/device_drivers/ethernet/marvell/octeon_ep_vf.rst drivers/net/ethernet/marvell/Kconfig +16 more+2399 -00 repliesApplied
2/8octeon_ep_vf: add hardware configuration APIsdrivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_cn9k.c drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_cnxk.c+676 -20 repliesApplied
3/8octeon_ep_vf: add VF-PF mailbox communication.drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.h drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_mbox.c +1 more+509 -20 repliesApplied
4/8octeon_ep_vf: add Tx/Rx ring resource setup and cleanupdrivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_rx.c drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_tx.c+438 -10 repliesApplied
5/8octeon_ep_vf: add support for ndo opsdrivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c+134 -00 repliesApplied
6/8octeon_ep_vf: add Tx/Rx processing and interrupt supportdrivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_rx.c drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_tx.c+868 -00 repliesApplied
7/8octeon_ep_vf: add ethtool supportdrivers/net/ethernet/marvell/octeon_ep_vf/Makefile drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_ethtool.c drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c +1 more+277 -10 repliesApplied
8/8octeon_ep_vf: update MAINTAINERSMAINTAINERS+9 -00 repliesApplied

Reviews trailers per patch

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

Read the v7 thread

Cover letter [PATCH net-next v7 0/8] add octeon_ep_vf driver

This driver implements networking functionality of Marvell's Octeon PCI Endpoint NIC VF.

This driver support following devices:
* Network controller: Cavium, Inc. Device b203
* Network controller: Cavium, Inc. Device b403
* Network controller: Cavium, Inc. Device b103
* Network controller: Cavium, Inc. Device b903
* Network controller: Cavium, Inc. Device ba03
* Network controller: Cavium, Inc. Device bc03
* Network controller: Cavium, Inc. Device bd03

Changes:
V7:
- Separated octep_vf_get_if_stats from octep_vf_main.h to later patch

    in [1/8]

- Moved introducing ndo_ops from [3/8] to [5/8]

V6: https://lore.kernel.org/all/[email protected]/
- Removed reuse of netif_tx_stop_all_queues, called implicitly in netif_tx_disable, when stopping netdev
- Corrected error jump labels to have proper action-specific names in probe function
- Removed singlethreaded workqueue implementation, since only tx timeout task is run. Run the same in the system workqueue
- netdev_hold when tx_timeout happens to protect against free_netdev if race occurs between rmmod and a tx timeout. netdev_put the reference when timeout task ends to progress freeing netdev

V5: https://lore.kernel.org/all/[email protected]/
- Changed unchecked return types to void and removed unnecessary initializations in [2/8] patch.

V4: https://lore.kernel.org/all/[email protected]/
- Moved some stats from ethtool and added more to ndo_get_stats64
- Replaced code in IQ full check function to use helper from net/netdev_queues.h
- Refactored code so that NETDEV_TX_BUSY is avoided

V3: https://lore.kernel.org/all/[email protected]/
- Removed UINT64_MAX, which is unused
- Replaced masks and ULL declarations with GENMASK_ULL(), ULL() and
other linux/bits.h macros, corrected declarations to conform to xmas tree format in patch [2/8]
- Moved vfree and vzalloc null pointer casting corrections to patch
[3/8], and corrected return values to follow standard kernel error codes in same
- Set static budget of 64 for tx completion processing in NAPI
- Replaces napi_complete and build_skb APIs to napi_complete_done and napi_build_skb APIs respectively
- Replaced code with helper from net/netdev_queues.h to wake queues in TX completion processing
- Removed duplicate reporting of TX/RX packets/bytes, which is already
done during ndo_get_stats64

V2: https://lore.kernel.org/all/[email protected]/
- Removed linux/version.h header file from inclusion in octep_vf_main.c
- Corrected Makefile entry to include building octep_vf_mbox.c in

    [6/8] patch.
  - Removed redundant vzalloc pointer cast and vfree pointer check in
    [6/8] patch.

V1: https://lore.kernel.org/all/[email protected]/

Shinas Rasheed (8):
octeon_ep_vf: Add driver framework and device initialization
octeon_ep_vf: add hardware configuration APIs
octeon_ep_vf: add VF-PF mailbox communication.
octeon_ep_vf: add Tx/Rx ring resource setup and cleanup
octeon_ep_vf: add support for ndo ops
octeon_ep_vf: add Tx/Rx processing and interrupt support
octeon_ep_vf: add ethtool support
octeon_ep_vf: update MAINTAINERS

 .../device_drivers/ethernet/index.rst         |    1 +
 .../ethernet/marvell/octeon_ep_vf.rst         |   24 +
 MAINTAINERS                                   |    9 +
 drivers/net/ethernet/marvell/Kconfig          |    1 +
 drivers/net/ethernet/marvell/Makefile         |    1 +
 .../net/ethernet/marvell/octeon_ep_vf/Kconfig |   19 +
 .../ethernet/marvell/octeon_ep_vf/Makefile    |   10 +
 .../marvell/octeon_ep_vf/octep_vf_cn9k.c      |  489 +++++++
 .../marvell/octeon_ep_vf/octep_vf_cnxk.c      |  500 +++++++
 .../marvell/octeon_ep_vf/octep_vf_config.h    |  160 +++
 .../marvell/octeon_ep_vf/octep_vf_ethtool.c   |  273 ++++
 .../marvell/octeon_ep_vf/octep_vf_main.c      | 1231 +++++++++++++++++
 .../marvell/octeon_ep_vf/octep_vf_main.h      |  334 +++++
 .../marvell/octeon_ep_vf/octep_vf_mbox.c      |  430 ++++++
 .../marvell/octeon_ep_vf/octep_vf_mbox.h      |  166 +++
 .../marvell/octeon_ep_vf/octep_vf_regs_cn9k.h |  154 +++
 .../marvell/octeon_ep_vf/octep_vf_regs_cnxk.h |  162 +++
 .../marvell/octeon_ep_vf/octep_vf_rx.c        |  510 +++++++
 .../marvell/octeon_ep_vf/octep_vf_rx.h        |  224 +++
 .../marvell/octeon_ep_vf/octep_vf_tx.c        |  330 +++++
 .../marvell/octeon_ep_vf/octep_vf_tx.h        |  276 ++++
 21 files changed, 5305 insertions(+)
 create mode 100644 Documentation/networking/device_drivers/ethernet/marvell/octeon_ep_vf.rst
 create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/Kconfig
 create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/Makefile
 create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_cn9k.c
 create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_cnxk.c
 create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_config.h
 create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_ethtool.c
 create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c
 create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.h
 create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_mbox.c
 create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_mbox.h
 create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_regs_cn9k.h
 create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_regs_cnxk.h
 create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_rx.c
 create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_rx.h
 create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_tx.c
 create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_tx.h
Signature · 1 line
2.25.1