[dpdk-dev] [PATCH v2] doc: add code coverage report generation guide

2019-09-23 Thread Marcin Zapolski
Add unit tests and code coverage reports generation guides to Meson build documentation. Signed-off-by: Marcin Zapolski --- v2: fix trailing whitespaces --- doc/build-sdk-meson.txt | 40 1 file changed, 40 insertions(+) diff --git a/doc/build-sdk

[dpdk-dev] [PATCH] doc: add code coverage report generation guide

2019-09-23 Thread Marcin Zapolski
Add unit tests and code coverage reports generation guides to Meson build documentation. Signed-off-by: Marcin Zapolski --- doc/build-sdk-meson.txt | 40 1 file changed, 40 insertions(+) diff --git a/doc/build-sdk-meson.txt b/doc/build-sdk-meson.txt

[dpdk-dev] [RFC 19.11 v2 3/3] ixgbe: make driver compatible with changes in ethdev

2019-09-06 Thread Marcin Zapolski
Modify ixgbe to be compatible with new rte_eth_dev structures layout. Signed-off-by: Marcin Zapolski --- drivers/net/ixgbe/ixgbe_ethdev.c | 30 +++--- drivers/net/ixgbe/ixgbe_ethdev.h | 23 ++--- drivers/net/ixgbe/ixgbe_rxtx.c | 111 +-- drivers

[dpdk-dev] [RFC 19.11 v2 2/3] i40e: make driver compatible with changes in ethdev

2019-09-06 Thread Marcin Zapolski
Modify i40e to be compatible with new rte_eth_dev structures layout. Signed-off-by: Marcin Zapolski --- drivers/net/i40e/i40e_ethdev.c | 10 +- drivers/net/i40e/i40e_ethdev.h | 1 + drivers/net/i40e/i40e_ethdev_vf.c| 8 +- drivers/net/i40e/i40e_rxtx.c

[dpdk-dev] [RFC 19.11 v2 1/3] ethdev: hide key ethdev structures from public API

2019-09-06 Thread Marcin Zapolski
Split rte_eth_dev structure to two parts: head that is available for user applications, and rest which is DPDK internal. Make an array of pointers to rte_eth_dev structures available for user applications. Signed-off-by: Marcin Zapolski --- lib/librte_bitratestats/rte_bitrate.c | 2

[dpdk-dev] [RFC 19.11 v2 0/3] Hide DPDK internal struct from public API

2019-09-06 Thread Marcin Zapolski
. Marcin Zapolski (3): ethdev: hide key ethdev structures from public API i40e: make driver compatible with changes in ethdev ixgbe: make driver compatible with changes in ethdev drivers/net/i40e/i40e_ethdev.c| 10 +- drivers/net/i40e/i40e_ethdev.h| 1

[dpdk-dev] [RFC 19.11 2/2] ethdev: hide DPDK internal struct from public API

2019-07-30 Thread Marcin Zapolski
Remove rte_eth_dev, rte_eth_dev_data and rte_eth_dev_ops from public API (make rte_ethdev_core APIs private). They are DPDK internal structures and as such should not be accessed by user applications directly. Signed-off-by: Marcin Zapolski --- drivers/net/cxgbe/base/adapter.h | 1

[dpdk-dev] [RFC 19.11 1/2] ethdev: make DPDK core functions non-inline

2019-07-30 Thread Marcin Zapolski
testpmd. Signed-off-by: Marcin Zapolski --- lib/librte_ethdev/rte_ethdev.c | 168 +++ lib/librte_ethdev/rte_ethdev.h | 166 ++ lib/librte_ethdev/rte_ethdev_version.map | 12 ++ 3 files changed, 195 insertions(+), 151 deletions(-) diff

[dpdk-dev] [RFC 19.11 0/2] Hide DPDK internal struct from public API

2019-07-30 Thread Marcin Zapolski
Several DPDK internal structures are exposed to direct access by user applications. This patch removes them from public API, and makes core DPDK functions that use them non-inline. Marcin Zapolski (2): ethdev: make DPDK core functions non-inline ethdev: hide DPDK internal struct from public

[dpdk-dev] [PATCH] examples/ip_frag: fix stale content of eth info struct

2019-07-22 Thread Marcin Zapolski
The eth_dev_info was used with content that was obsolete. Added update of struct content prior to use. Fixes: 6b7780bfebe4 ("examples/ip_frag: fix use of ethdev internal device array") Signed-off-by: Marcin Zapolski --- examples/ip_fragmentation/main.c | 1 + 1 file changed, 1

[dpdk-dev] [v2 0/3] examples: fix use of internal struct

2019-07-17 Thread Marcin Zapolski
Some example applications have references to rte_eth_dev structure, which is not a part of public API. These patches replace them with calls to API functions. v2: * adjust commit titles * add fixlines for the original commits Marcin Zapolski (3): examples/l3fwd*: fix use of internal struct

[dpdk-dev] [v2 3/3] examples/ipsec-secgw: fix use of internal struct

2019-07-17 Thread Marcin Zapolski
Modify ipsec-secgw example app to use rte_eth_dev_info_get instead of rte_eth_dev. Apps should not be using internal DPDK data structures directly. Fixes: a4677f78368b ("examples/ipsec-secgw: add target queues in flow actions") Cc: nelio.laranje...@6wind.com Signed-off-by: Marci

[dpdk-dev] [v2 2/3] examples/ip_fragmentation: fix use of internal struct

2019-07-17 Thread Marcin Zapolski
Modify ip_fragmentation example app to use rte_eth_info_get instead of global rte_eth_devices structure. Apps should not be using internal DPDK data structures directly. Fixes: 9758b956dcf4 ("examples/ip_fragmentation: fix Tx queues init") Cc: alia...@mellanox.com Signed-off-by: Marci

[dpdk-dev] [v2 1/3] examples/l3fwd*: fix use of internal struct

2019-07-17 Thread Marcin Zapolski
ance-thread: convert to new offloads API") Cc: shah...@mellanox.com Signed-off-by: Marcin Zapolski --- examples/l3fwd-acl/main.c | 6 +- examples/l3fwd-power/main.c | 6 +- examples/l3fwd-vf/main.c| 7 +-- e

[dpdk-dev] [PATCH 1/3] examples/l3fwd*: remove references to rte_eth_devices

2019-07-15 Thread Marcin Zapolski
Modify l3fwd and related example apps to use locally defined port_conf instead of global rte_eth_devices which is not a part of public API. Signed-off-by: Marcin Zapolski --- examples/l3fwd-acl/main.c | 6 +- examples/l3fwd-power/main.c | 6

[dpdk-dev] [PATCH 3/3] examples/ipsec-secgw: remove usage of internal structure

2019-07-15 Thread Marcin Zapolski
Modify ipsec-secgw example app to use rte_eth_dev_info_get instead of rte_eth_dev. Signed-off-by: Marcin Zapolski --- examples/ipsec-secgw/ipsec.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/ipsec-secgw/ipsec.c b/examples/ipsec-secgw/ipsec.c index

[dpdk-dev] [PATCH 0/3] examples: remove usage of internal structures

2019-07-15 Thread Marcin Zapolski
Some example applications have references to rte_eth_dev structure, which is not a part of public API. These patches replace them with calls to API functions. Marcin Zapolski (3): examples/l3fwd*: remove references to rte_eth_devices examples/ip_fragmentation: remove usage of internal struct

[dpdk-dev] [PATCH 2/3] examples/ip_fragmentation: remove usage of internal struct

2019-07-15 Thread Marcin Zapolski
Modify ip_fragmentation example app to use rte_eth_info_get instead of global rte_eth_devices structure. Signed-off-by: Marcin Zapolski --- examples/ip_fragmentation/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ip_fragmentation/main.c b/examples