net/softnic: sw fall-back for traffic management
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 0 repliesNew
- v12 patches 11 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | net/softnic: add softnic PMD for traffic managementMAINTAINERS config/ drivers/ +7 more | +1891 | 62 replies | |
| 2/2 | net/softnic: add traffic management opsdrivers/ drivers/ drivers/ +1 more | +1274 | 0 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Lu, Wenzhuo | Thomas Monjalon | Cristian Dumitrescu |
|---|---|---|---|
| 1/2 | A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b | A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b | A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v2 0/2] net/softnic: sw fall-back for traffic management
The SoftNIC PMD provides SW fall-back option for the NICs not supporting the Traffic Management (TM) features.
SoftNIC PMD overview:
- The SW fall-back is based on the existing librte_sched DPDK library.
- The TM-agnostic port (the underlay device) is wrapped into a TM-aware softnic port (the overlay device).
- Once the overlay device (virtual device) is created, the configuration of the underlay device is taking place through the overlay device.
- The SoftNIC PMD is generic, i.e. it works for any underlay device PMD that implements the ethdev API.
Similarly to Ring PMD, the SoftNIC virtual device can be created in two different ways:
1. Through EAL command line (--vdev option)�
2.�Through the rte_eth_softnic_create() API function called by the
application.
SoftNIC PMD params:
- iface (mandatory): the ethdev port name (i.e. PCI address or vdev name) for the underlay device
- txq_id (optional, default = 0): tx queue id of the underlay device
- deq_bsz (optional, default = 24): traffic manager dequeue burst size
- Example:� --vdev 'net_softnic0,iface=0000:04:00.1,txq_id=0,deq_bsz=28'
SoftNIC PMD build instructions:
- To build SoftNIC PMD, the following parameter needs to be set on config/common_base file: CONFIG_RTE_LIBRTE_PMD_SOFTNIC=y
- The SoftNIC PMD depends on the TM API [1] and therefore is initially targeted for the tm-next repository
Patch 1 adds softnic device PMD for traffic management. Patch 2 adds traffic management ops to the softnic device suggested in generic ethdev API for traffic management[1].
[1] TM API version 6:�
http://dpdk.org/dev/patchwork/patch/25275/
http://dpdk.org/dev/patchwork/patch/25276/
Jasvinder Singh (2):
net/softnic: add softnic PMD for traffic management net/softnic: add traffic management ops
MAINTAINERS | 5 + config/common_base | 5 + drivers/net/Makefile | 5 + drivers/net/softnic/Makefile | 58 ++ drivers/net/softnic/rte_eth_softnic.c | 580 ++++++++++++ drivers/net/softnic/rte_eth_softnic.h | 99 ++ drivers/net/softnic/rte_eth_softnic_default.c | 1108 ++++++++++++++++++++++ drivers/net/softnic/rte_eth_softnic_internals.h | 148 +++ drivers/net/softnic/rte_eth_softnic_tm.c | 1145 +++++++++++++++++++++++ drivers/net/softnic/rte_eth_softnic_version.map | 7 + mk/rte.app.mk | 5 +- 11 files changed, 3164 insertions(+), 1 deletion(-) create mode 100644 drivers/net/softnic/Makefile create mode 100644 drivers/net/softnic/rte_eth_softnic.c create mode 100644 drivers/net/softnic/rte_eth_softnic.h create mode 100644 drivers/net/softnic/rte_eth_softnic_default.c create mode 100644 drivers/net/softnic/rte_eth_softnic_internals.h create mode 100644 drivers/net/softnic/rte_eth_softnic_tm.c create mode 100644 drivers/net/softnic/rte_eth_softnic_version.map
Signature · 1 line
2.9.3