its start/end address to HW pool manager.
Signed-off-by: Santosh Shukla
Signed-off-by: Jerin Jacob
---
v6 --> v7:
- Incorporated comment nits suggested by Olivier.
Refer [1].
[1] http://dpdk.org/dev/patchwork/patch/28468/
v5 --> v6:
- Renamed from rte_mempool_ops_update_ra
ff' may end up sacrificing first block_sz area of
memzone area x. So total number of the object which can fit in the
pool area is n-1, Which is incorrect behavior.
Therefore we request one additional object (/block_sz area) from memzone
when MEMPOOL_F_CAPA_BLK_ALIGNED_OBJECTS flag is set.
S
ry described in each patch.
Checkpatch status:
- None.
Work History:
* Refer [1] for v1.
Thanks.
[1] http://dpdk.org/ml/archives/dev/2017-June/067022.html
Santosh Shukla (2):
eal: allow user to override default pool handle
ethdev: get the supported pool for a port
doc/guides/freebsd_gsg/b
t supports this mempool handle (Priority '1')
Signed-off-by: Santosh Shukla
Acked-by: Olivier Matz
---
v5 --> v6:
- Arranged alphabetical order for rte_eth_dev_pool_ops_supported.
(Suggested by Thomas)
v4 --> v5:
- Incorporated wording comment perv 4 feedback, refer [1](Su
user can override the RTE_MEMPOOL_OPS_DEFAULT by passing
pool handle to eal `--mbuf-pool-ops-name=""`.
Signed-off-by: Santosh Shukla
Acked-by: Hemant Agrawal
Acked-by: Olivier Matz
---
v5 --> v6:
- Arranged alphabetical order for OPT_MBUF_POOL_OPS_NAME_NUM.
(Suggested by Thoma
has complete
implementation.
Signed-off-by: Santosh Shukla
Signed-off-by: Jerin Jacob
Reviewed-by: Maxime Coquelin
Tested-by: Hemant Agrawal
Reviewed-by: Anatoly Burakov
---
lib/librte_eal/bsdapp/eal/eal_pci.c | 10 ++
lib/librte_eal/bsdapp/eal/rte_eal_version.map
g/ml/archives/dev/2017-July/070952.html
[9] http://dpdk.org/ml/archives/dev/2017-July/070918.html
[10] http://dpdk.org/ml/archives/dev/2017-July/071754.html
[11] http://dpdk.org/ml/archives/dev/2017-August/072871.html
Santosh Shukla (9):
eal/pci: export match function
eal/pci: get iommu class
Export rte_pci_match() function as it needed in the followup patch.
Signed-off-by: Santosh Shukla
Signed-off-by: Jerin Jacob
Acked-by: Maxime Coquelin
Reviewed-by: Anatoly Burakov
Tested-by: Hemant Agrawal
---
lib/librte_eal/bsdapp/eal/rte_eal_version.map | 7 +++
lib/librte_eal
e as RTE_IOVA_VA. Otherwise use default
mapping scheme (RTE_IOVA_PA).
Signed-off-by: Santosh Shukla
Signed-off-by: Jerin Jacob
Reviewed-by: Maxime Coquelin
Acked-by: Hemant Agrawal
Reviewed-by: Anatoly Burakov
Tested-by: Hemant Agrawal
---
lib/librte_eal/common/include/rte_pci.h | 2 +
lib/librte
selection scheme is:
if mode == 0 then iova mode is _pa,
if mode == 1 then iova mode is _pa,
if mode == 2 then iova mode is _va,
if mode == 3 then iova mode ia _pa.
So mode !=2 will be default iova mode (_pa).
Signed-off-by: Santosh Shukla
Signed-off-by: Jerin Jacob
Reviewed-by: Maxime Coquelin
Introducing rte_eal_iova_mode() helper API. This API
used by non-eal library for detecting iova mode.
Signed-off-by: Santosh Shukla
Signed-off-by: Jerin Jacob
Reviewed-by: Maxime Coquelin
Tested-by: Hemant Agrawal
---
lib/librte_eal/bsdapp/eal/eal.c | 6 ++
lib
s moved up in the eal initialization order:
- eal_option_device_parse
- rte_bus_scan
And based on the result of rte_bus_scan_iommu_class - select iova
mapping mode.
Signed-off-by: Santosh Shukla
Signed-off-by: Jerin Jacob
Reviewed-by: Maxime Coquelin
Reviewed-by: Anatoly Burakov
Check iova mode and accordingly map iova to pa or va.
Signed-off-by: Santosh Shukla
Signed-off-by: Jerin Jacob
Reviewed-by: Maxime Coquelin
Acked-by: Anatoly Burakov
Tested-by: Hemant Agrawal
---
lib/librte_eal/linuxapp/eal/eal_vfio.c | 10 --
1 file changed, 8 insertions(+), 2
Check iova mode and accordingly return phy addr.
Signed-off-by: Santosh Shukla
Signed-off-by: Jerin Jacob
Reviewed-by: Maxime Coquelin
Reviewed-by: Anatoly Burakov
Tested-by: Hemant Agrawal
---
lib/librte_eal/linuxapp/eal/eal_memory.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a
Check iova mode and accordingly return phy addr.
Signed-off-by: Santosh Shukla
Signed-off-by: Jerin Jacob
Reviewed-by: Maxime Coquelin
Reviewed-by: Anatoly Burakov
Tested-by: Hemant Agrawal
---
lib/librte_eal/common/rte_malloc.c | 9 -
1 file changed, 8 insertions(+), 1 deletion
positive line over 80 char debug warning
- asm_ false +ve error.
Thanks.
[1] https://github.com/sshukla82/dpdk branch: octeontx-ona-pmd-v2
Santosh Shukla (10):
mempool/octeontx: add HW constants
mempool/octeontx: add build and log infrastructure
mempool/octeontx: probe fpavf pcie devices
add HW constants of octeontx fpa mempool device.
Signed-off-by: Santosh Shukla
Signed-off-by: Jerin Jacob
---
drivers/mempool/octeontx/octeontx_fpavf.h | 71 +++
1 file changed, 71 insertions(+)
create mode 100644 drivers/mempool/octeontx/octeontx_fpavf.h
diff
Signed-off-by: Santosh Shukla
Signed-off-by: Jerin Jacob
---
config/common_base | 6 +++
drivers/Makefile | 5 +-
drivers/mempool/Makefile | 2 +
drivers/mempool/octeontx/Makefile
. rte_mempool_create_empty), Infrastructure creates a pool device
with earlier probed PCIe VF devices.
Signed-off-by: Santosh Shukla
Signed-off-by: Jerin Jacob
---
drivers/mempool/octeontx/octeontx_fpavf.c | 151 ++
drivers/mempool/octeontx/octeontx_fpavf.h | 39
2
Upon pool allocation request by application, Octeontx FPA alloc
does following:
- Gets free pool from pci fpavf array.
- Uses mbox to communicate fpapf driver about,
* gpool-id
* pool block_sz
* alignemnt
- Programs fpavf pool boundary.
Signed-off-by: Santosh Shukla
Signed-off-by: Jerin
Signed-off-by: Santosh Shukla
Signed-off-by: Jerin Jacob
---
drivers/mempool/octeontx/Makefile | 13 +
drivers/mempool/octeontx/rte_mempool_octeontx.c | 69 -
2 files changed, 80 insertions(+), 2 deletions(-)
diff --git a/drivers/mempool/octeontx
Upon pool free request from application, Octeon FPA free
does following:
- Uses mbox to reset fpapf pool setup.
- frees fpavf resources.
Signed-off-by: Santosh Shukla
Signed-off-by: Jerin Jacob
---
drivers/mempool/octeontx/octeontx_fpavf.c | 111
drivers/mempool
Signed-off-by: Santosh Shukla
Signed-off-by: Jerin Jacob
---
drivers/mempool/octeontx/rte_mempool_octeontx.c | 12 +++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/drivers/mempool/octeontx/rte_mempool_octeontx.c
b/drivers/mempool/octeontx/rte_mempool_octeontx.c
index
Add support for register_memory_area ops in mempool driver.
Allow more than one HW pool when using OcteonTx mempool driver:
By storing each pool information to the list and find appropriate
list element by matching the rte_mempool pointers.
Signed-off-by: Santosh Shukla
Signed-off-by: Jerin
Signed-off-by: Santosh Shukla
Signed-off-by: Jerin Jacob
---
drivers/mempool/octeontx/octeontx_fpavf.c | 27 +
drivers/mempool/octeontx/octeontx_fpavf.h | 2 ++
drivers/mempool/octeontx/rte_mempool_octeontx.c | 12 ++-
3 files changed, 40 insertions
This commit adds a section to the docs listing the mempool
device PMDs available.
It then adds the octeontx fpavf mempool PMD to the listed mempool
devices.
Cc: John McNamara
Signed-off-by: Santosh Shukla
Signed-off-by: Jerin Jacob
Reviewed-by: John McNamara
---
v2 --> v3:
- Incorpora
From: Jerin Jacob
Adding octeontx specific io operations. Added a stub for building
against non octeontx targets.
Signed-off-by: Jerin Jacob
Co-authored-by: Santosh Shukla
Signed-off-by: Santosh Shukla
---
drivers/net/octeontx/base/octeontx_io.h | 156
1
copy to workaround the issue.
Signed-off-by: Jerin Jacob
Co-authored-by: Santosh Shukla
Signed-off-by: Santosh Shukla
---
drivers/event/octeontx/ssovf_mbox.c | 14 --
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/drivers/event/octeontx/ssovf_mbox.c
b/drivers/event
Jacob
Co-authored-by: Santosh Shukla
Signed-off-by: Santosh Shukla
---
drivers/net/octeontx/Makefile| 5 ++
drivers/net/octeontx/base/octeontx_bgx.c | 119 +++
drivers/net/octeontx/base/octeontx_bgx.h | 74 +++
3 files changed, 198
From: Jerin Jacob
Adding bare minimum PMD library and doc build infrastructure.
Signed-off-by: Jerin Jacob
Co-authored-by: Santosh Shukla
Signed-off-by: Santosh Shukla
---
config/common_base| 10 +++
doc/guides/nics/features/octeontx.ini | 9
From: Jerin Jacob
Adding remaining BGX operations like, link status, statistics,
promiscuous configuration etc.
Signed-off-by: Jerin Jacob
Co-authored-by: Santosh Shukla
Signed-off-by: Santosh Shukla
---
drivers/net/octeontx/base/octeontx_bgx.c | 154 +++
drivers
v2:
Includes Minor changes like:
- Incorporated minor review comment (Suggested y John)
- Added correct pool handle ops name i.e. from mbuf-pool-ops to
mbuf-pool-ops-name in the doc.
- Rebased on Octeontx-fpavf v3 series and tested for same.
- Refer[7]: rebased (octeontx PMD + octeontx_fpavf memp
: Santosh Shukla
Signed-off-by: Santosh Shukla
---
drivers/net/octeontx/Makefile | 2 +
drivers/net/octeontx/base/octeontx_pkivf.c | 70
drivers/net/octeontx/base/octeontx_pkovf.c | 175 +
drivers/net/octeontx/base/octeontx_pkovf.h | 63
logical port identifier.
Signed-off-by: Jerin Jacob
Co-authored-by: Santosh Shukla
Signed-off-by: Santosh Shukla
---
drivers/net/octeontx/base/octeontx_pkivf.c | 84 ++
drivers/net/octeontx/base/octeontx_pkivf.h | 67
2 files changed, 151
From: Jerin Jacob
Adding remaining PKI operations and sync up the mailbox
definitions with PF driver.
Signed-off-by: Jerin Jacob
Co-authored-by: Santosh Shukla
Signed-off-by: Santosh Shukla
---
drivers/net/octeontx/base/octeontx_pki_var.h | 237 +
drivers/net/octeontx/base
server to process the message with the logical port identifier.
Signed-off-by: Jerin Jacob
Co-authored-by: Santosh Shukla
Signed-off-by: Santosh Shukla
---
drivers/net/octeontx/base/octeontx_pkovf.c | 327 +
drivers/net/octeontx/base/octeontx_pkovf.h | 17 ++
2 files
From: Jerin Jacob
Adding remaining PKO operations like flow control, Tx channel query, etc.
Signed-off-by: Jerin Jacob
Co-authored-by: Santosh Shukla
Signed-off-by: Santosh Shukla
---
drivers/net/octeontx/base/octeontx_pkovf.c | 114 +
drivers/net/octeontx/base
From: Jerin Jacob
Create ethdev ports by registering withethdev subsystem based on
"nr_port" vdev argument or maximum physical ports available in the system.
Signed-off-by: Jerin Jacob
Co-authored-by: Santosh Shukla
Signed-off-by: Santosh Shukla
---
drivers/net/octeontx/octeont
or maximum
physical ports are available in the system.
Signed-off-by: Jerin Jacob
Co-authored-by: Santosh Shukla
Signed-off-by: Santosh Shukla
---
drivers/net/octeontx/Makefile | 1 +
drivers/net/octeontx/octeontx_ethdev.c | 321 +
drivers/net/octeon
From: Jerin Jacob
mark Jumbo frame, CRC offload support in features.
Signed-off-by: Jerin Jacob
Co-authored-by: Santosh Shukla
Signed-off-by: Santosh Shukla
---
doc/guides/nics/features/octeontx.ini | 2 +
drivers/net/octeontx/octeontx_ethdev.c | 93 ++
2
From: Jerin Jacob
Mark Speed capabilities, Lock-free Tx queue in features.
Signed-off-by: Jerin Jacob
Co-authored-by: Santosh Shukla
Signed-off-by: Santosh Shukla
---
doc/guides/nics/features/octeontx.ini | 2 ++
drivers/net/octeontx/octeontx_ethdev.c | 37
From: Jerin Jacob
Mark Link status in features.
Signed-off-by: Jerin Jacob
Co-authored-by: Santosh Shukla
Signed-off-by: Santosh Shukla
---
doc/guides/nics/features/octeontx.ini | 1 +
drivers/net/octeontx/octeontx_ethdev.c | 100 +
2 files changed, 101
From: Jerin Jacob
Mark Promiscuous mode in features.
Signed-off-by: Jerin Jacob
Co-authored-by: Santosh Shukla
Signed-off-by: Santosh Shukla
---
doc/guides/nics/features/octeontx.ini | 1 +
drivers/net/octeontx/octeontx_ethdev.c | 42 ++
2 files changed, 43
From: Jerin Jacob
Mark Basic stats support in features.
Signed-off-by: Jerin Jacob
Co-authored-by: Santosh Shukla
Signed-off-by: Santosh Shukla
---
doc/guides/nics/features/octeontx.ini | 1 +
drivers/net/octeontx/octeontx_ethdev.c | 52 ++
2 files changed
From: Jerin Jacob
Signed-off-by: Jerin Jacob
Co-authored-by: Santosh Shukla
Signed-off-by: Santosh Shukla
---
drivers/net/octeontx/octeontx_ethdev.c | 168 +
drivers/net/octeontx/octeontx_ethdev.h | 9 ++
2 files changed, 177 insertions(+)
diff --git a
From: Jerin Jacob
Signed-off-by: Jerin Jacob
Co-authored-by: Santosh Shukla
Signed-off-by: Santosh Shukla
---
drivers/net/octeontx/Makefile| 6 ++
drivers/net/octeontx/octeontx_rxtx.c | 104 +++
drivers/net/octeontx/octeontx_rxtx.h | 46
From: Jerin Jacob
Implement "mac_addr_set" op and mark "Unicast MAC filter" feature as "P"
as "mac_addr_add" and "mac_addr_remove" are not implemented.
Signed-off-by: Jerin Jacob
Co-authored-by: Santosh Shukla
Signed-off-by: Santosh Shukla
From: Jerin Jacob
Mark "Queue start/stop" as P as its been implemented only for tx queue.
Signed-off-by: Jerin Jacob
Co-authored-by: Santosh Shukla
Signed-off-by: Santosh Shukla
---
doc/guides/nics/features/octeontx.ini | 1 +
drivers/net/octeontx/octeontx_eth
From: Jerin Jacob
Signed-off-by: Jerin Jacob
Co-authored-by: Santosh Shukla
Signed-off-by: Santosh Shukla
---
drivers/net/octeontx/octeontx_ethdev.c | 88 ++
1 file changed, 88 insertions(+)
diff --git a/drivers/net/octeontx/octeontx_ethdev.c
b/drivers/net
From: Jerin Jacob
Signed-off-by: Jerin Jacob
Co-authored-by: Santosh Shukla
Signed-off-by: Santosh Shukla
---
drivers/net/octeontx/octeontx_rxtx.c | 38
drivers/net/octeontx/octeontx_rxtx.h | 2 ++
2 files changed, 40 insertions(+)
diff --git a/drivers
From: Jerin Jacob
Mark Packet type parsing in features.
Signed-off-by: Jerin Jacob
Co-authored-by: Santosh Shukla
Signed-off-by: Santosh Shukla
---
doc/guides/nics/features/octeontx.ini | 1 +
drivers/net/octeontx/octeontx_ethdev.c | 22
drivers/net/octeontx/octeontx_rxtx.c
From: Jerin Jacob
Adding octeontx ethdev driver documentation and claim octeontx ethdev
driver maintainership.
Cc: John McNamara
Signed-off-by: Jerin Jacob
Co-authored-by: Santosh Shukla
Signed-off-by: Santosh Shukla
Acked-by: John McNamara
---
v1 --> v2:
- Incorporated minor doc comm
From: Jerin Jacob
add start, stop and close support.
Signed-off-by: Jerin Jacob
Co-authored-by: Santosh Shukla
Signed-off-by: Santosh Shukla
---
drivers/net/octeontx/octeontx_ethdev.c | 137 +
1 file changed, 137 insertions(+)
diff --git a/drivers/net
tmp/vhost-user2'
PANIC in main():
Cannot init EAL
Fixes: cf408c224 ("eal: auto detect IOVA mode")
Reported-by: Maxime Coquelin
Signed-off-by: Santosh Shukla
---
lib/librte_eal/bsdapp/eal/eal.c | 10 +++---
lib/librte_eal/linuxapp/eal/eal.c | 10 +++---
2 files changed
/event/octeontx/Makefile and drivers/mempool/octeontx/Makefile.
Fixes: 8700239f7767 ("mempool/octeontx: add build and log infrastructure")
Reported-by: Hemant Agrawal
Signed-off-by: Santosh Shukla
---
drivers/Makefile | 6 +-
driver
This commit bumps the library version to reflect the ABI change
caused by removing the below function from event/octeontx:
* octeontx_ssovf_info
* octeontx_ssovf_bar
* octeontx_ssovf_mbox_send
And moved to mempool/octeontx area.
Signed-off-by: Santosh Shukla
---
doc/guides/rel_notes
dpdk/commit/doc/guides/rel_notes?id=caa570db61307e07efc461cf558ec291a3e71b29
[2] http://dpdk.org/ml/archives/test-report/2017-August/027020.html
Santosh Shukla (6):
eal: rename phys addr to iova addr
eal/memory: rename buf physaddr to buf iovaaddr
eal/memory: rename memseg member phys to iova
Renamed data type from phys_addr_t to iova_addr_t.
Signed-off-by: Santosh Shukla
Reviewed-by: Anatoly Burakov
---
v2 --> v3:
- Replaced __KERNEL__ with __clang__ in kni header (By Anatoly)
Refer v2:
http://dpdk.org/dev/patchwork/patch/28358/
app/test-crypto-perf/cperf_test_commo
Rename buf_physaddr to buf_iovaaddr
Signed-off-by: Santosh Shukla
Reviewed-by: Anatoly Burakov
---
app/test-crypto-perf/cperf_test_common.c | 4 ++--
doc/guides/prog_guide/img/mbuf1.svg| 2 +-
drivers/bus/fslmc/portal/dpaa2_hw_pvt.h
Renaming rte_memseg {.phys_addr} to {.iova_addr}
Signed-off-by: Santosh Shukla
Reviewed-by: Anatoly Burakov
---
lib/librte_eal/bsdapp/eal/eal_memory.c | 4 ++--
lib/librte_eal/common/eal_common_memory.c | 2 +-
lib/librte_eal/common/include/rte_memory.h | 4 ++--
lib/librte_eal/common
: Santosh Shukla
---
app/proc_info/main.c | 2 +-
app/test-crypto-perf/cperf_test_vector_parsing.c | 4 ++--
app/test-crypto-perf/cperf_test_vectors.c| 6 +++---
app/test-pmd/cmdline.c | 2 +-
doc/guides/rel_notes/release_17_11.rst
Removed dpdk iova aware ABI deprecation notice,
and updated ABI change details in release_17.11.rst.
Signed-off-by: Santosh Shukla
Acked-by: John McNamara
---
doc/guides/rel_notes/deprecation.rst | 7 ---
doc/guides/rel_notes/release_17_11.rst | 28
2 files
Use RTE_PTR_DIFF macro in rte_mem_virt2iova api.
Suggested-by: Anatoly Burakov
Signed-off-by: Santosh Shukla
---
lib/librte_eal/common/rte_malloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/librte_eal/common/rte_malloc.c
b/lib/librte_eal/common/rte_malloc.c
index
/octeontx.rst.
Cc: John McNamara
Signed-off-by: Santosh Shukla
---
v3 --> v4:
- Added doc/guide/platform/ as per v3 discussion.
- Moved common content of "Prerequisite" section from eventdev/octeontx.rst
to platform/octeontx.rst.
doc/guides/eventdevs/octeontx.rst | 28 +-
Patch 1: Introduce platform/ entry in guide. That has information about
platform drivers. ( As per discussion[1])
Patch 2: Introduce mempool/ entry in guide. (Refer discussion[1])
Patch 3: Misc Fix for nic/octeontx.rst
Thanks.
[1] http://dpdk.org/dev/patchwork/patch/29893/
Santosh Shukla (3
This commit adds a section to the docs listing the mempool
device PMDs available.
It then adds the octeontx fpavf mempool PMD to the listed mempool
devices.
Cc: John McNamara
Signed-off-by: Santosh Shukla
---
v3 --> v4:
- Moved Prerequisite section from mempool/octeontx.rst to
platf
Fixes: f820b5896631 ("doc: add octeontx ethdev driver documentation")
Signed-off-by: Santosh Shukla
---
doc/guides/nics/octeontx.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/guides/nics/octeontx.rst b/doc/guides/nics/octeontx.rst
index 2527aa3e3..d40d1f
Coverity Issue: 195000
Fixes: 02fd6c744350 ("mempool/octeontx: support allocation")
Signed-off-by: Santosh Shukla
---
drivers/mempool/octeontx/octeontx_fpavf.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/mempool/octeontx/octeontx_fpavf.c
b/drivers/mempoo
; 4:
* Replaced `Ref:` with `Sec :doc:` as per John review comment.
* Renamed Feature to Features (john).
* Replaced Section from `Platform Device Driver` to
`Platform Specific guide` (john).
Thanks.
Discussion history;
[1] http://dpdk.org/dev/patchwork/patch/29893/
Santosh Shukla (3):
doc:
/octeontx.rst.
Cc: John McNamara
Signed-off-by: Santosh Shukla
---
v4 --> v5:
* Replaced `Ref:` with `Sec :doc:` as per John review comment.
* * Renamed Feature to Features (john).
* * Replaced Section from `Platform Device Driver` to
`Platform Specific guide` (john).
* s/Intel Corporation / Cavium
Fixes: f820b5896631 ("doc: add octeontx ethdev driver documentation")
Signed-off-by: Santosh Shukla
Acked-by: Jerin Jacob
Acked-by: John McNamara
---
doc/guides/nics/octeontx.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/guides/nics/octeontx.rst b/doc/g
This commit adds a section to the docs listing the mempool
device PMDs available.
It then adds the octeontx fpavf mempool PMD to the listed mempool
devices.
Cc: John McNamara
Signed-off-by: Santosh Shukla
---
v4 --> v5:
* Replaced `Ref :` with `See :doc:` (John)
* Renamed section f
Fixes: f18b146c498d ("net/octeontx: create ethdev ports")
Coverity issue: 195040
Cc: sta...@dpdk.org
Signed-off-by: Santosh Shukla
---
drivers/net/octeontx/octeontx_ethdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/octeontx/octeontx_ethdev.c
b/d
Fixes: f18b146c498d ("net/octeontx: create ethdev ports")
Coverity issue: 195045
Cc: sta...@dpdk.org
Signed-off-by: Santosh Shukla
---
drivers/net/octeontx/octeontx_ethdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/octeontx/octeontx_ethdev.c
b/d
] http://dpdk.org/dev/patchwork/patch/10429/
Santosh Shukla (3):
eal/linux: never check iopl for arm
eal/linux: vfio: ignore mapping for ioport region
eal/linux: vfio: add pci ioport support
lib/librte_eal/linuxapp/eal/eal.c |2 +
lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 56
iopl() syscall not supported in linux-arm/arm64 so always return 0 value.
Signed-off-by: Santosh Shukla
Suggested-by: Stephen Hemminger
Acked-by: Jan Viktorin
Acked-by: David Marchand
---
lib/librte_eal/linuxapp/eal/eal.c |2 ++
1 file changed, 2 insertions(+)
diff --git a/lib
vfio_pci_mmap() try to map all pci bars. ioport region are not mapped in
vfio/kernel so ignore mmaping for ioport.
Signed-off-by: Santosh Shukla
Acked-by: Anatoly Burakov
---
v9: included anatoly acked-by
lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 20
1 file changed
Include vfio map/rd/wr support for pci ioport.
Signed-off-by: Santosh Shukla
Acked-by: Anatoly Burakov
Acked-by: David Marchand
---
v7:
- This is enhancement patch for vfio map/rd/wr, rebased on top of David(s) -
"Rework ioport for virtio" patchset. For more information about api, r
On Mon, Feb 22, 2016 at 7:33 AM, Xie, Huawei wrote:
> On 2/19/2016 2:42 PM, Yuanhan Liu wrote:
>> On Fri, Feb 19, 2016 at 10:16:42AM +0530, Santosh Shukla wrote:
>>> On Tue, Feb 16, 2016 at 8:35 AM, Yuanhan Liu
>>> wrote:
>>>> On Mon, Feb 15, 2016 at
Hi Thomas,
On Mon, Feb 22, 2016 at 11:11 AM, Yuanhan Liu
wrote:
> On Sun, Feb 21, 2016 at 07:47:58PM +0530, Santosh Shukla wrote:
>> v9 patchset to support vfio infrasture for ioport, required for archs example
>> arm64/arm and x86.
>>
>>
>> For virtio inc_vec
On Thu, Feb 25, 2016 at 5:00 PM, Mauricio V?squez
wrote:
> Hello,
>
> I am trying to connect two virtual machines through Open vSwitch using
> vhost-user ports, on the host side everything looks fine.
> When using the standard virtio drivers both virtual machines are able to
> exchange traffic, bu
drivers/virtio/virtio_vec_.h file.
2) Remove use_simple_rxtx flag, so that virtio/virtio_vec_.h
files to provide vectored/non-vectored rx/tx apis.
Signed-off-by: Santosh Shukla
---
- v1: This is a rework of patch [1].
Note: This patch will let non-x86 arch to use virtio pmd.
[1] http://dpdk.org/dev
On Fri, Feb 26, 2016 at 2:14 PM, Xie, Huawei wrote:
> On 2/26/2016 4:29 PM, David Marchand wrote:
>> On Fri, Feb 26, 2016 at 3:23 AM, Yuanhan Liu
>> wrote:
>>> Mauricio, thanks for the testing and report.
>>>
>>> On Thu, Feb 25, 2016 at 02:30:18PM +0100, David Marchand wrote:
>From the logs,
On Mon, Feb 29, 2016 at 9:57 AM, Yuanhan Liu
wrote:
> On Fri, Feb 26, 2016 at 02:21:02PM +0530, Santosh Shukla wrote:
>> Check cpuflag macro before using vectored api.
>> -virtio_recv_pkts_vec() uses _sse3__ simd instruction for now so added
>> cpuflag.
>> - Also wra
virtio_recv_pkts_vec() implementation to
drivers/virtio/virtio_vec_.h file.
2) Remove use_simple_rxtx flag, so that virtio/virtio_vec_.h
files to provide vectored/non-vectored rx/tx apis.
Signed-off-by: Santosh Shukla
---
- v2: Removed VIRTIO_PMD=n from arm v7/v8
- v1: This is a rework of
if (legacy_virtio_resource_init(dev, hw) < 0)
> + if (legacy_virtio_resource_init(dev, hw) < 0) {
> + if (dev->kdrv == RTE_KDRV_UNKNOWN) {
> + PMD_INIT_LOG(INFO,
> + "skip kernel managed virtio device.");
> + return 1;
> + }
> return -1;
> + }
>
> hw->vtpci_ops = &legacy_ops;
> hw->use_msix = legacy_virtio_has_msix(&dev->addr);
Tested-by: Santosh Shukla
Acked-by: Santosh Shukla
> --
> 1.8.1.4
>
v/igb_ioport by which virtio
pmd driver could able to rd/wr PCI_IOBAR.
{applicable for arm/arm64 only, tested for arm64 as of now}
[1] https://lwn.net/Articles/660745/
Anatoly Burakov (1):
vfio: Support for no-IOMMU mode
Rizwan Ansari (1):
eal: pci: vfio: fix build error
Santos
/avx targets and will work
in non-vectored virtio mode.
Signed-off-by: Santosh Shukla
---
config/common_linuxapp |1 +
drivers/net/virtio/Makefile |2 +-
drivers/net/virtio/virtio_rxtx.c |7 +++
3 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/config
i686 target config example:
config/defconfig_i686-native-linuxapp-gcc says "Vectorized PMD is not supported
on 32-bit".
So setting RTE_VIRTIO_INC_VECTOR to 'n'.
Signed-off-by: Santosh Shukla
---
config/defconfig_i686-native-linuxapp-gcc |1 +
config/defconfig_i686
iopl() syscall not supported in linux-arm/arm64 so always return 0 value.
Signed-off-by: Santosh Shukla
Acked-by: Jan Viktorin
---
lib/librte_eal/linuxapp/eal/eal.c |3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/librte_eal/linuxapp/eal/eal.c
b/lib/librte_eal/linuxapp/eal/eal.c
vfio_pci_mmap() try to map all pci bars. ioport region ar not mapped in
vfio/kernel so ignore mmaping for ioport.
Signed-off-by: Santosh Shukla
---
lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 20
1 file changed, 20 insertions(+)
diff --git a/lib/librte_eal/linuxapp/eal
make sure sys/io.h used only for x86 archs. This fixes build error
arm64/arm case.
Signed-off-by: Santosh Shukla
---
drivers/net/virtio/virtio_pci.h |2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/virtio/virtio_pci.h b/drivers/net/virtio/virtio_pci.h
index 47f722a..8b5b031
Introducing below api for pci bar space rd/wr. Currently used for
pci iobar rd/wr.
Api's are:
- rte_eal_pci_read_bar
- rte_eal_pci_write_bar
virtio when used for vfio-mode then virtio driver will use these api
to do rd/wr operation on ioport pci bar.
Signed-off-by: Santosh Shukla
---
For vfio case - Use pread/pwrite api to access virtio
ioport space.
Signed-off-by: Santosh Shukla
Signed-off-by: Rizwan Ansari
Signed-off-by: Rakesh Krishnamurthy
---
drivers/net/virtio/virtio_vfio.h | 146 ++
1 file changed, 146 insertions(+)
create mode
- adding pci_dev member in struct virtio_hw{} to track
vfio_dev_fd per virtio interface, required for ioport
rd/wr operation.
- Masked default VIRTIO_READ/WRITE for vfio case.
Signed-off-by: Santosh Shukla
Signed-off-by: Rizwan Ansari
Signed-off-by: Rakesh Krishnamurhty
---
drivers/net
Flag required for vfio case, It helps to update vfio_dev_fd for each
virtio net interface.
Signed-off-by: Santosh Shukla
---
drivers/net/virtio/virtio_ethdev.c |4
1 file changed, 4 insertions(+)
diff --git a/drivers/net/virtio/virtio_ethdev.c
b/drivers/net/virtio/virtio_ethdev.c
Enable RTE_LIBRTE_VIRTIO_PMD for armv7/v8 and setting RTE_VIRTIO_INC_VEC=n.
Builds successfully for armv7/v8.
Signed-off-by: Santosh Shukla
---
config/defconfig_arm-armv7a-linuxapp-gcc |6 +-
config/defconfig_arm64-armv8a-linuxapp-gcc |6 +-
2 files changed, 10 insertions
From: Anatoly Burakov
This commit is adding a generic mechanism to support multiple IOMMU
types. For now, it's only type 1 (x86 IOMMU) and no-IOMMU (a special
VFIO mode that doesn't use IOMMU at all), but it's easily extended
by adding necessary definitions into eal_pci_init.h and a DMA
mapping f
-by: Rizwan Ansari
Signed-off-by: Santosh Shukla
---
lib/librte_eal/linuxapp/eal/eal_pci_vfio.c |3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c
b/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c
index c69050d..844ef80 100644
--- a/
On Thu, Jan 7, 2016 at 11:49 PM, Stephen Hemminger <
stephen at networkplumber.org> wrote:
> On Thu, 7 Jan 2016 22:03:03 +0530
> Santosh Shukla wrote:
>
> >
> > +int rte_eal_pci_read_bar(const struct rte_pci_device *device
> __rte_unused,
> > +
301 - 400 of 533 matches
Mail list logo