#
c0802544 |
| 15-May-2017 |
Ferruh Yigit <ferruh.yigit@intel.com> |
drivers/net: add generic ethdev macro to get PCI device
Instead of many PMD define their own macro, define a generic one in ethdev and use that in PMDs.
Signed-off-by: Ferruh Yigit <ferruh.yigit@in
drivers/net: add generic ethdev macro to get PCI device
Instead of many PMD define their own macro, define a generic one in ethdev and use that in PMDs.
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> Acked-by: Allain Legacy <allain.legacy@windriver.com> Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com> Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
show more ...
|
#
95b097c8 |
| 01-May-2017 |
Jerin Jacob <jerin.jacob@caviumnetworks.com> |
net/thunderx: add compile-time checks
The thunderx PMD is sensitive to the layout of the mbuf on the RX path. Add in some compile-time checks to make sure the mbuf layout assumptions are valid, and
net/thunderx: add compile-time checks
The thunderx PMD is sensitive to the layout of the mbuf on the RX path. Add in some compile-time checks to make sure the mbuf layout assumptions are valid, and to provide hints to anyone changing the mbuf where things may need to be updated.
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
show more ...
|
#
06e81dc9 |
| 20-May-2017 |
David Marchand <david.marchand@6wind.com> |
drivers/net: fix vfio kmod dependency
vfio is the kernel framework used by the vfio-pci kernel driver. DPDK drivers do not rely solely on vfio, but rather on vfio-pci to gain access to pci resources
drivers/net: fix vfio kmod dependency
vfio is the kernel framework used by the vfio-pci kernel driver. DPDK drivers do not rely solely on vfio, but rather on vfio-pci to gain access to pci resources.
Fixes: 0880c40113ef ("drivers: advertise kmod dependencies in pmdinfo") Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@6wind.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
show more ...
|
#
5c7ccb26 |
| 14-Apr-2017 |
Jerin Jacob <jerin.jacob@caviumnetworks.com> |
net/thunderx: reduce writes to mbuf
With the mbuf rework, we now have 8 contiguous bytes to be rearmed in the mbuf at 8B naturally aligned address. Use single 8B write to avoid multiple 2B writes in
net/thunderx: reduce writes to mbuf
With the mbuf rework, we now have 8 contiguous bytes to be rearmed in the mbuf at 8B naturally aligned address. Use single 8B write to avoid multiple 2B writes in Rx path.
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com> Signed-off-by: Maciej Czekaj <maciej.czekaj@caviumnetworks.com>
show more ...
|
#
695cd416 |
| 11-Apr-2017 |
Marcin Wilk <marcin.wilk@caviumnetworks.com> |
net/thunderx: fix stats access out of bounds
Trying to assign more queues to stats struct break only from one loop when the maximum size is reached. Outside loop iteration is continued. This leads t
net/thunderx: fix stats access out of bounds
Trying to assign more queues to stats struct break only from one loop when the maximum size is reached. Outside loop iteration is continued. This leads to access an array out of bounds.
Fixes: 21e3fb0050b9 ("net/thunderx: add final bits for secondary queue support") Cc: stable@dpdk.org
Signed-off-by: Marcin Wilk <marcin.wilk@caviumnetworks.com> Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
show more ...
|
#
fdf91e0f |
| 11-Apr-2017 |
Jan Blunck <jblunck@infradead.org> |
drivers/net: do not use ethdev driver
Signed-off-by: Jan Blunck <jblunck@infradead.org> Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com> Acked-by: Stephen Hemminger <stephen@networkplumber.org>
|
#
0cca5670 |
| 31-Mar-2017 |
Andriy Berestovskyy <andriy.berestovskyy@caviumnetworks.com> |
net/thunderx: wait to complete during link update
Some DPDK applications/examples check link status on their start. NICVF does not wait for the link, so those apps fail.
Wait up to 9 seconds for th
net/thunderx: wait to complete during link update
Some DPDK applications/examples check link status on their start. NICVF does not wait for the link, so those apps fail.
Wait up to 9 seconds for the link as other PMDs do in order to fix those apps/examples.
Signed-off-by: Andriy Berestovskyy <andriy.berestovskyy@caviumnetworks.com> Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
show more ...
|
#
fc2c8014 |
| 19-Mar-2017 |
Jerin Jacob <jerin.jacob@caviumnetworks.com> |
net/thunderx: fix build on FreeBSD
SIMPLEQ_* operations are not available in FreeBSD. Replacing with equivalent STAILQ_* operations.
Fixes: f2546f8e51b8 ("net/thunderx/base: add functions to store
net/thunderx: fix build on FreeBSD
SIMPLEQ_* operations are not available in FreeBSD. Replacing with equivalent STAILQ_* operations.
Fixes: f2546f8e51b8 ("net/thunderx/base: add functions to store qsets")
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
show more ...
|
#
34c2e702 |
| 13-Mar-2017 |
Jerin Jacob <jerin.jacob@caviumnetworks.com> |
net/thunderx: check data offset alignment requirement
nicvf HW expects the DMA address of the packet data to be aligned with cache line size.
Packet data offset is a function of struct mbuf size, m
net/thunderx: check data offset alignment requirement
nicvf HW expects the DMA address of the packet data to be aligned with cache line size.
Packet data offset is a function of struct mbuf size, mbuf private size and headroom. mbuf private size can be changed from the application in pool creation, this check detects HW alignment requirement constraint in pmd start function.
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
show more ...
|
#
eac901ce |
| 23-Dec-2016 |
Jan Blunck <jblunck@infradead.org> |
ethdev: decouple from PCI device
This makes struct rte_eth_dev independent of struct rte_pci_device by replacing it with a pointer to the generic struct rte_device.
Signed-off-by: Jan Blunck <jblun
ethdev: decouple from PCI device
This makes struct rte_eth_dev independent of struct rte_pci_device by replacing it with a pointer to the generic struct rte_device.
Signed-off-by: Jan Blunck <jblunck@infradead.org> Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
show more ...
|
#
ae34410a |
| 23-Dec-2016 |
Jan Blunck <jblunck@infradead.org> |
ethdev: move info filling of PCI into drivers
Only the drivers itself can decide if it could fill PCI information fields of dev_info.
Signed-off-by: Jan Blunck <jblunck@infradead.org> Acked-by: Shr
ethdev: move info filling of PCI into drivers
Only the drivers itself can decide if it could fill PCI information fields of dev_info.
Signed-off-by: Jan Blunck <jblunck@infradead.org> Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
show more ...
|
#
0880c401 |
| 15-Dec-2016 |
Olivier Matz <olivier.matz@6wind.com> |
drivers: advertise kmod dependencies in pmdinfo
Add a new macro RTE_PMD_REGISTER_KMOD_DEP() that allows a driver to declare the list of kernel modules required to run properly.
Today, most PCI driv
drivers: advertise kmod dependencies in pmdinfo
Add a new macro RTE_PMD_REGISTER_KMOD_DEP() that allows a driver to declare the list of kernel modules required to run properly.
Today, most PCI drivers require uio/vfio.
Signed-off-by: Olivier Matz <olivier.matz@6wind.com> Acked-by: Fiona Trahe <fiona.trahe@intel.com> Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
show more ...
|
#
174dd78e |
| 08-Nov-2016 |
Jerin Jacob <jerin.jacob@caviumnetworks.com> |
net/thunderx: support CN83xx devices
83xx NIC subsystem differs in new PCI subsystem_device_id and NICVF_CAP_DISABLE_APAD capability.
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
|
#
8a946db3 |
| 08-Nov-2016 |
Jerin Jacob <jerin.jacob@caviumnetworks.com> |
net/thunderx: disable L3 alignment padding
Based on the packet type(IPv4 or IPv6), the nicvf HW aligns L3 data to the 64bit memory address. The alignment creates a hole in mbuf(between the end of he
net/thunderx: disable L3 alignment padding
Based on the packet type(IPv4 or IPv6), the nicvf HW aligns L3 data to the 64bit memory address. The alignment creates a hole in mbuf(between the end of headroom and packet data start). The new revision of the HW provides an option to disable the L3 alignment feature and make mbuf layout looks more like other NICs. For better application compatibility, disabling l3 alignment feature on the hardware revisions it supports.
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
show more ...
|
#
c1ceaf3a |
| 10-Oct-2016 |
Bernard Iremonger <bernard.iremonger@intel.com> |
ethdev: add an argument to internal callback function
add cb_arg parameter to the _rte_eth_dev_callback_process function.
Adding a parameter to this function allows passing information to the appli
ethdev: add an argument to internal callback function
add cb_arg parameter to the _rte_eth_dev_callback_process function.
Adding a parameter to this function allows passing information to the application when an eth device event occurs such as a VF to PF message. This allows the application to decide if a particular function is permitted.
Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Signed-off-by: Alex Zelezniak <alexz@att.com>
show more ...
|
#
01f19227 |
| 10-Oct-2016 |
Shreyansh Jain <shreyansh.jain@nxp.com> |
drivers: rename register macro prefix
All macros related to driver registeration renamed from DRIVER_* to RTE_PMD_*
This includes:
DRIVER_REGISTER_PCI -> RTE_PMD_REGISTER_PCI DRIVER_REGISTER_PCI
drivers: rename register macro prefix
All macros related to driver registeration renamed from DRIVER_* to RTE_PMD_*
This includes:
DRIVER_REGISTER_PCI -> RTE_PMD_REGISTER_PCI DRIVER_REGISTER_PCI_TABLE -> RTE_PMD_REGISTER_PCI_TABLE DRIVER_REGISTER_VDEV -> RTE_PMD_REGISTER_VDEV DRIVER_REGISTER_PARAM_STRING -> RTE_PMD_REGISTER_PARAM_STRING DRIVER_EXPORT_* -> RTE_PMD_EXPORT_*
Fix PMDINFOGEN tool to look for matches of RTE_PMD_REGISTER_*.
Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
show more ...
|
#
21e3fb00 |
| 30-Sep-2016 |
Kamil Rytarowski <kamil.rytarowski@caviumnetworks.com> |
net/thunderx: add final bits for secondary queue support
Summary: - add secondary qset support in device stats - add support for releasing mbufs from RBDR for >8 queues - add support for releasin
net/thunderx: add final bits for secondary queue support
Summary: - add secondary qset support in device stats - add support for releasing mbufs from RBDR for >8 queues - add support for releasing mbufs from RX queues for >8 queues - support >8 queues in tx_queue_setup - support >8 queues in rx_queue_setup - support up to 96 queues per device (dev_info->max_rx_queues) - add secondary qset support in rbdr_rte_mempool_get - support >8 queues in multiprocess mode (do not reconfigure VFs) - setup periodic alarm accordingly for type of VFs: * primary VF - handle events on queues and link status * secondary VF - handle events on queues - initialize hardware capabilities in secondary qsets
Signed-off-by: Maciej Czekaj <maciej.czekaj@caviumnetworks.com> Signed-off-by: Kamil Rytarowski <kamil.rytarowski@caviumnetworks.com> Signed-off-by: Zyta Szpak <zyta.szpak@semihalf.com> Signed-off-by: Slawomir Rosek <slawomir.rosek@semihalf.com> Signed-off-by: Radoslaw Biernacki <rad@semihalf.com> Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
show more ...
|
#
b7004ab2 |
| 30-Sep-2016 |
Kamil Rytarowski <kamil.rytarowski@caviumnetworks.com> |
net/thunderx: add secondary queue set support in configure
Signed-off-by: Maciej Czekaj <maciej.czekaj@caviumnetworks.com> Signed-off-by: Kamil Rytarowski <kamil.rytarowski@caviumnetworks.com> Signe
net/thunderx: add secondary queue set support in configure
Signed-off-by: Maciej Czekaj <maciej.czekaj@caviumnetworks.com> Signed-off-by: Kamil Rytarowski <kamil.rytarowski@caviumnetworks.com> Signed-off-by: Zyta Szpak <zyta.szpak@semihalf.com> Signed-off-by: Slawomir Rosek <slawomir.rosek@semihalf.com> Signed-off-by: Radoslaw Biernacki <rad@semihalf.com> Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
show more ...
|
#
71e76186 |
| 30-Sep-2016 |
Kamil Rytarowski <kamil.rytarowski@caviumnetworks.com> |
net/thunderx: add secondary queue set support in start
Signed-off-by: Maciej Czekaj <maciej.czekaj@caviumnetworks.com> Signed-off-by: Kamil Rytarowski <kamil.rytarowski@caviumnetworks.com> Signed-of
net/thunderx: add secondary queue set support in start
Signed-off-by: Maciej Czekaj <maciej.czekaj@caviumnetworks.com> Signed-off-by: Kamil Rytarowski <kamil.rytarowski@caviumnetworks.com> Signed-off-by: Zyta Szpak <zyta.szpak@semihalf.com> Signed-off-by: Slawomir Rosek <slawomir.rosek@semihalf.com> Signed-off-by: Radoslaw Biernacki <rad@semihalf.com> Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
show more ...
|
#
627d4ba2 |
| 30-Sep-2016 |
Kamil Rytarowski <kamil.rytarowski@caviumnetworks.com> |
net/thunderx: add secondary queue set support in stop/close
Signed-off-by: Maciej Czekaj <maciej.czekaj@caviumnetworks.com> Signed-off-by: Kamil Rytarowski <kamil.rytarowski@caviumnetworks.com> Sign
net/thunderx: add secondary queue set support in stop/close
Signed-off-by: Maciej Czekaj <maciej.czekaj@caviumnetworks.com> Signed-off-by: Kamil Rytarowski <kamil.rytarowski@caviumnetworks.com> Signed-off-by: Zyta Szpak <zyta.szpak@semihalf.com> Signed-off-by: Slawomir Rosek <slawomir.rosek@semihalf.com> Signed-off-by: Radoslaw Biernacki <rad@semihalf.com> Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
show more ...
|
#
6d3cbd56 |
| 30-Sep-2016 |
Kamil Rytarowski <kamil.rytarowski@caviumnetworks.com> |
net/thunderx: remove private data to ethdev link
In case of the multiprocess mode a shared nicvf struct between processes cannot point with the eth_dev pointer to master device, therefore remove it
net/thunderx: remove private data to ethdev link
In case of the multiprocess mode a shared nicvf struct between processes cannot point with the eth_dev pointer to master device, therefore remove it along with references to it refactoring the code where needed.
This change fixes multiprocess issues detected in stats.
Fixes: 7413feee662d ("net/thunderx: add device start/stop and close")
Signed-off-by: Maciej Czekaj <maciej.czekaj@caviumnetworks.com> Signed-off-by: Kamil Rytarowski <kamil.rytarowski@caviumnetworks.com> Signed-off-by: Zyta Szpak <zyta.szpak@semihalf.com> Signed-off-by: Slawomir Rosek <slawomir.rosek@semihalf.com> Signed-off-by: Radoslaw Biernacki <rad@semihalf.com> Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
show more ...
|
#
f141adca |
| 30-Sep-2016 |
Kamil Rytarowski <kamil.rytarowski@caviumnetworks.com> |
net/thunderx: add secondary queue set in interrupt functions
Signed-off-by: Maciej Czekaj <maciej.czekaj@caviumnetworks.com> Signed-off-by: Kamil Rytarowski <kamil.rytarowski@caviumnetworks.com> Sig
net/thunderx: add secondary queue set in interrupt functions
Signed-off-by: Maciej Czekaj <maciej.czekaj@caviumnetworks.com> Signed-off-by: Kamil Rytarowski <kamil.rytarowski@caviumnetworks.com> Signed-off-by: Zyta Szpak <zyta.szpak@semihalf.com> Signed-off-by: Slawomir Rosek <slawomir.rosek@semihalf.com> Signed-off-by: Radoslaw Biernacki <rad@semihalf.com> Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
show more ...
|
#
394014bc |
| 30-Sep-2016 |
Kamil Rytarowski <kamil.rytarowski@caviumnetworks.com> |
net/thunderx: cleanup
Refactored features: - enable nicvf_qset_rbdr_precharge to handle secondary queue sets - rte_free already handles NULL pointer - check mempool flags to predict being contigu
net/thunderx: cleanup
Refactored features: - enable nicvf_qset_rbdr_precharge to handle secondary queue sets - rte_free already handles NULL pointer - check mempool flags to predict being contiguous in memory - prohibit to use mempool with multiple memory chunks - simplify local construct of accessing nb_rx_queues - enable NICVF_CAP_CQE_RX2 on CN88XX PASS2.0 hardware. - remove redundant check for RSS size in nicvf_eth_dev_init
Signed-off-by: Maciej Czekaj <maciej.czekaj@caviumnetworks.com> Signed-off-by: Kamil Rytarowski <kamil.rytarowski@caviumnetworks.com> Signed-off-by: Zyta Szpak <zyta.szpak@semihalf.com> Signed-off-by: Slawomir Rosek <slawomir.rosek@semihalf.com> Signed-off-by: Radoslaw Biernacki <rad@semihalf.com> Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
show more ...
|
#
b72a7768 |
| 21-Jul-2016 |
Jerin Jacob <jerin.jacob@caviumnetworks.com> |
net/thunderx: support 81xx SoC
81xx NIC subsystem differs in new PCI subsystem_device_id and NICVF_CAP_CQE_RX2 capability.
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
|
#
e2c519b3 |
| 21-Jul-2016 |
Jerin Jacob <jerin.jacob@caviumnetworks.com> |
net/thunderx: add tunneling extension info capability flag
Certain thunderx SoC pass has additional optional word in Rx descriptor to hold tunneling extension info. Based on this capability, the loc
net/thunderx: add tunneling extension info capability flag
Certain thunderx SoC pass has additional optional word in Rx descriptor to hold tunneling extension info. Based on this capability, the location where packet pointer address stored in Rx descriptor will vary.
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
show more ...
|