numam-dpdk/drivers
Gautam Dawar 05fa170a2b net/sfc/base: support data path with EVB module
ef10_nic_init() allocates a vAdaptor for the physical port in current
flow. In case of SR-IOV, this vAdaptor must be created for the PF as the
vSwitch is allocated on the physical port. So, the call to
efx_mcdi_vadaptor_alloc() should be avoided in ef10_nic_init() in SR-IOV
flow. To achieve this, for SR-IOV use case, the vSwitch is created
before NIC initialization and its handle is used to prevent vAdaptor
allocation in ef10_nic_init(). This approach has been taken to minimize
the changes in NIC initialization flow.

This is also the case with Linux driver where vSwitch creation happens
before NIC initialization.

Also, when DMA queues need to be allocated for Tx/Rx functionality
(MC_CMD_INIT_RXQ / MC_CMD_INIT_TXQ), the correct vPort is selected
based on efx_vswitch_t property of efx_nic_t structure - vport
corresponding to PF in case of SR-IOV use case and EVB_PORT_ID_ASSIGNED
for physical port.

Signed-off-by: Gautam Dawar <gdawar@solarflare.com>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
2019-06-20 23:42:04 +02:00
..
baseband bb/turbo_sw: update for FlexRAN 18.09 2018-12-19 11:19:10 +01:00
bus bus/pci: fix TOCTOU for sysfs access 2019-06-14 16:33:56 +09:00
common build: enable large file support on 32-bit 2019-06-03 23:53:40 +02:00
compress compress/qat: fix dataplane return 2019-04-18 16:01:28 +02:00
crypto crypto/aesni_mb: fix build with gcc 4.8.5 2019-06-05 18:37:08 +02:00
event build: add libatomic dependency for 32-bit clang 2019-06-03 23:57:43 +02:00
mempool build: increase readability via shortcut variables 2019-04-17 18:09:52 +02:00
net net/sfc/base: support data path with EVB module 2019-06-20 23:42:04 +02:00
raw doc: fix spelling reported by aspell in comments 2019-05-03 00:38:14 +02:00
Makefile drivers: add common as dependency for bus 2018-10-16 14:54:25 +02:00
meson.build build: increase readability via shortcut variables 2019-04-17 18:09:52 +02:00