[dpdk-dev] Unknown speed

2020-09-22 Thread Ivan Dyukov
It's virtio support for 'ETH_SPEED_NUM_UNKNOWN' which was already merged to dpdk-next-net/main

[dpdk-dev] [PATCH 2/2] net/virtio: sync a virtio speed capa with ethdev

2020-09-22 Thread Ivan Dyukov
ethdev library was updated with new speed 200G Add 200G speed capa to virtio device Signed-off-by: Ivan Dyukov --- drivers/net/virtio/virtio_ethdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 0ef88feda

[dpdk-dev] [PATCH 1/2] net/virtio: set UNKNOWN as default speed

2020-09-22 Thread Ivan Dyukov
rte_ethdev states new rule for NICs: they should return UNKNOWN speed if speed is unknown and interface is up, in case of down interface, NONE speed should be returned. Signed-off-by: Ivan Dyukov --- doc/guides/nics/virtio.rst | 4 ++-- drivers/net/virtio/virtio_ethdev.c | 9

[dpdk-dev] [PATCH v11 23/24] examples/server_nod*: new link status print format

2020-09-15 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/server_node_efd/server/init.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/examples/server_node_efd/server/init.c b/examples/server_node_efd/server

[dpdk-dev] [PATCH v11 21/24] example/performance*: new link status print format

2020-09-15 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/performance-thread/l3fwd-thread/main.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/examples/performance-thread/l3fwd-thread/main.c b/examples

[dpdk-dev] [PATCH v11 24/24] examples/vm_power_*: new link status print format

2020-09-15 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/vm_power_manager/main.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/examples/vm_power_manager/main.c b/examples/vm_power_manager/main.c index

[dpdk-dev] [PATCH v11 16/24] examples/l2fwd: new link status print format

2020-09-15 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/l2fwd/main.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/examples/l2fwd/main.c b/examples/l2fwd/main.c index e04c601b5..28bede684 100644 --- a/examples

[dpdk-dev] [PATCH v11 22/24] examples/qos_sched: new link status print format

2020-09-15 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/qos_sched/init.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/examples/qos_sched/init.c b/examples/qos_sched/init.c index 9626c15b8..06328ddb2 100644

[dpdk-dev] [PATCH v11 18/24] examples/l3fwd-power: new link status print format

2020-09-15 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/l3fwd-power/main.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c index 9db94ce04..bcd737994

[dpdk-dev] [PATCH v11 19/24] examples/multi_proc*: new link status print format

2020-09-15 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- .../client_server_mp/mp_server/init.c | 15 ++- examples/multi_process/symmetric_mp/main.c| 13 + 2 files changed, 11 insertions(+), 17 deletions(-) diff

[dpdk-dev] [PATCH v11 20/24] examples/ntb: new link status print format

2020-09-15 Thread Ivan Dyukov
Add usage of rte_eth_link_strf function to example applications Signed-off-by: Ivan Dyukov --- examples/ntb/ntb_fwd.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/ntb/ntb_fwd.c b/examples/ntb/ntb_fwd.c index eba8ebf9f..6d9b3b45c 100644 --- a/examples

[dpdk-dev] [PATCH v11 17/24] examples/l3fwd-graph: new link status print format

2020-09-15 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/l3fwd-graph/main.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/examples/l3fwd-graph/main.c b/examples/l3fwd-graph/main.c index c70270c4d..0f3f4088c

[dpdk-dev] [PATCH v11 15/24] examples/l2fwd-event: new link status print format

2020-09-15 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/l2fwd-event/main.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/examples/l2fwd-event/main.c b/examples/l2fwd-event/main.c index 4fe500333..d90c71698

[dpdk-dev] [PATCH v11 14/24] examples/l2fwd-crypt: new link status print format

2020-09-15 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/l2fwd-crypto/main.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c index 827da9b3e..820470db5

[dpdk-dev] [PATCH v11 08/24] examples/bbdev_app: new link status print format

2020-09-15 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/bbdev_app/main.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/bbdev_app/main.c b/examples/bbdev_app/main.c index 68a46050c..fe9d8e0a5 100644 --- a

[dpdk-dev] [PATCH v11 10/24] examples/ip_*: new link status print format

2020-09-15 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications: * ip_fragmentation * ip_reassembly * l3fwd-acl Signed-off-by: Ivan Dyukov --- examples/ip_fragmentation/main.c | 13 + examples/ip_reassembly/main.c| 13 + examples/l3fwd-acl

[dpdk-dev] [PATCH v11 12/24] examples/ipsec-secgw: new link status print format

2020-09-15 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/ipsec-secgw/ipsec-secgw.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c index

[dpdk-dev] [PATCH v11 09/24] examples/ioat: new link status print format

2020-09-15 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/ioat/ioatfwd.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/examples/ioat/ioatfwd.c b/examples/ioat/ioatfwd.c index b66ee73bc..f77012eb9 100644 --- a

[dpdk-dev] [PATCH v11 11/24] examples/ip_pipeline: new link status print format

2020-09-15 Thread Ivan Dyukov
Add usage of rte_eth_link_speed_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/ip_pipeline/cli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/ip_pipeline/cli.c b/examples/ip_pipeline/cli.c index d79699e2e..cf3d7d462 100644

[dpdk-dev] [PATCH v11 13/24] examples/kni: new link status print format

2020-09-15 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/kni/main.c | 27 ++- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/examples/kni/main.c b/examples/kni/main.c index f5d12a5b8..49d888064 100644

[dpdk-dev] [PATCH v11 05/24] net/i40e: return unknown speed in status

2020-09-15 Thread Ivan Dyukov
rte_ethdev has declared new NUM_UNKNOWN speed which could be used in case when no speed information is available and link is up. NUM_NONE should be returned, if link is down. Signed-off-by: Ivan Dyukov Acked-by: Jeff Guo --- drivers/net/i40e/i40e_ethdev.c| 5 - drivers/net/i40e

[dpdk-dev] [PATCH v11 04/24] net/ixgbe: return unknown speed in status

2020-09-15 Thread Ivan Dyukov
rte_ethdev has declared new NUM_UNKNOWN speed which could be used in case when no speed information is available Signed-off-by: Ivan Dyukov Reviewed-by: Wei Zhao --- drivers/net/ixgbe/ixgbe_ethdev.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/net/ixgbe

[dpdk-dev] [PATCH v11 07/24] examples: new link status print format

2020-09-15 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications: * ipv4_multicast * l2fwd-jobstats * l2fwd-keepalive * l3fwd * link_status_interrupt Signed-off-by: Ivan Dyukov --- examples/ipv4_multicast/main.c| 14 ++--- examples/l2fwd

[dpdk-dev] [PATCH v11 06/24] net/ice: return unknown speed in status

2020-09-15 Thread Ivan Dyukov
rte_ethdev has declared new NUM_UNKNOWN speed which could be used in case when no speed information is available and link is up. NUM_NONE should be returned, if link is down. Signed-off-by: Ivan Dyukov Reviewed-by: Ferruh Yigit --- drivers/net/ice/ice_ethdev.c | 5 - 1 file changed, 4

[dpdk-dev] [PATCH v11 02/24] ethdev: format a link status text

2020-09-15 Thread Ivan Dyukov
re to text. This commit adds two functions: * rte_eth_link_speed_to_str - format link_speed to string * rte_eth_link_to_str - convert link status structure to string Signed-off-by: Ivan Dyukov --- MAINTAINERS | 1 + app/test/Makefile| 3 +

[dpdk-dev] [PATCH v11 00/24] ethdev: allow unknown link speed

2020-09-15 Thread Ivan Dyukov
MAINTAINERS | 1 + app/proc-info/main.c | 11 ++--- app/test-pipeline/init.c | 11 ++--- app/test-pmd/config.c| 9 ++-- app/test-pmd/testpmd.c

[dpdk-dev] [PATCH v11 03/24] app: update apps&docs with new UNKNOWN link speed

2020-09-15 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications and docs Signed-off-by: Ivan Dyukov --- app/proc-info/main.c | 11 +-- app/test-pipeline/init.c | 11 +-- app/test-pmd/config.c | 9

[dpdk-dev] [PATCH v11 01/24] ethdev: allow unknown link speed

2020-09-15 Thread Ivan Dyukov
From: Thomas Monjalon When querying the link information, the link status is a mandatory major information. Other boolean values are supposed to be accurate: - duplex mode (half/full) - negotiation (auto/fixed) This API update is making explicit that the link speed information is

[dpdk-dev] [PATCH v10 21/24] example/performance*: new link status print format

2020-09-10 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/performance-thread/l3fwd-thread/main.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/examples/performance-thread/l3fwd-thread/main.c b/examples

[dpdk-dev] [PATCH v10 22/24] examples/qos_sched: new link status print format

2020-09-10 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/qos_sched/init.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/examples/qos_sched/init.c b/examples/qos_sched/init.c index 9626c15b8..06328ddb2 100644

[dpdk-dev] [PATCH v10 24/24] examples/vm_power_*: new link status print format

2020-09-10 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/vm_power_manager/main.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/examples/vm_power_manager/main.c b/examples/vm_power_manager/main.c index

[dpdk-dev] [PATCH v10 23/24] examples/server_nod*: new link status print format

2020-09-10 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/server_node_efd/server/init.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/examples/server_node_efd/server/init.c b/examples/server_node_efd/server

[dpdk-dev] [PATCH v10 20/24] examples/ntb: new link status print format

2020-09-10 Thread Ivan Dyukov
Add usage of rte_eth_link_strf function to example applications Signed-off-by: Ivan Dyukov --- examples/ntb/ntb_fwd.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/ntb/ntb_fwd.c b/examples/ntb/ntb_fwd.c index eba8ebf9f..6d9b3b45c 100644 --- a/examples

[dpdk-dev] [PATCH v10 19/24] examples/multi_proc*: new link status print format

2020-09-10 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- .../client_server_mp/mp_server/init.c | 15 ++- examples/multi_process/symmetric_mp/main.c| 13 + 2 files changed, 11 insertions(+), 17 deletions(-) diff

[dpdk-dev] [PATCH v10 18/24] examples/l3fwd-power: new link status print format

2020-09-10 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/l3fwd-power/main.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c index 9db94ce04..bcd737994

[dpdk-dev] [PATCH v10 16/24] examples/l2fwd: new link status print format

2020-09-10 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/l2fwd/main.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/examples/l2fwd/main.c b/examples/l2fwd/main.c index e04c601b5..28bede684 100644 --- a/examples

[dpdk-dev] [PATCH v10 17/24] examples/l3fwd-graph: new link status print format

2020-09-10 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/l3fwd-graph/main.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/examples/l3fwd-graph/main.c b/examples/l3fwd-graph/main.c index c70270c4d..0f3f4088c

[dpdk-dev] [PATCH v10 15/24] examples/l2fwd-event: new link status print format

2020-09-10 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/l2fwd-event/main.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/examples/l2fwd-event/main.c b/examples/l2fwd-event/main.c index 4fe500333..d90c71698

[dpdk-dev] [PATCH v10 14/24] examples/l2fwd-crypt: new link status print format

2020-09-10 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/l2fwd-crypto/main.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c index 827da9b3e..820470db5

[dpdk-dev] [PATCH v10 12/24] examples/ipsec-secgw: new link status print format

2020-09-10 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/ipsec-secgw/ipsec-secgw.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c index

[dpdk-dev] [PATCH v10 13/24] examples/kni: new link status print format

2020-09-10 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/kni/main.c | 27 ++- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/examples/kni/main.c b/examples/kni/main.c index f5d12a5b8..49d888064 100644

[dpdk-dev] [PATCH v10 11/24] examples/ip_pipeline: new link status print format

2020-09-10 Thread Ivan Dyukov
Add usage of rte_eth_link_speed_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/ip_pipeline/cli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/ip_pipeline/cli.c b/examples/ip_pipeline/cli.c index d79699e2e..cf3d7d462 100644

[dpdk-dev] [PATCH v10 09/24] examples/ioat: new link status print format

2020-09-10 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/ioat/ioatfwd.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/examples/ioat/ioatfwd.c b/examples/ioat/ioatfwd.c index b66ee73bc..f77012eb9 100644 --- a

[dpdk-dev] [PATCH v10 08/24] examples/bbdev_app: new link status print format

2020-09-10 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/bbdev_app/main.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/bbdev_app/main.c b/examples/bbdev_app/main.c index 68a46050c..fe9d8e0a5 100644 --- a

[dpdk-dev] [PATCH v10 06/24] net/ice: return unknown speed in status

2020-09-10 Thread Ivan Dyukov
rte_ethdev has declared new NUM_UNKNOWN speed which could be used in case when no speed information is available and link is up. NUM_NONE should be returned, if link is down. Signed-off-by: Ivan Dyukov Reviewed-by: Ferruh Yigit --- drivers/net/ice/ice_ethdev.c | 5 - 1 file changed, 4

[dpdk-dev] [PATCH v10 10/24] examples/ip_*: new link status print format

2020-09-10 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications: * ip_fragmentation * ip_reassembly * l3fwd-acl Signed-off-by: Ivan Dyukov --- examples/ip_fragmentation/main.c | 13 + examples/ip_reassembly/main.c| 13 + examples/l3fwd-acl

[dpdk-dev] [PATCH v10 07/24] examples: new link status print format

2020-09-10 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications: * ipv4_multicast * l2fwd-jobstats * l2fwd-keepalive * l3fwd * link_status_interrupt Signed-off-by: Ivan Dyukov --- examples/ipv4_multicast/main.c| 14 ++--- examples/l2fwd

[dpdk-dev] [PATCH v10 00/24] ethdev: allow unknown link speed

2020-09-10 Thread Ivan Dyukov
MAINTAINERS | 1 + app/proc-info/main.c | 9 +- app/test-pipeline/init.c | 11 ++- app/test-pmd/config.c| 20 +++-- app/test-pmd/testpmd.c

[dpdk-dev] [PATCH v10 04/24] net/ixgbe: return unknown speed in status

2020-09-10 Thread Ivan Dyukov
rte_ethdev has declared new NUM_UNKNOWN speed which could be used in case when no speed information is available Signed-off-by: Ivan Dyukov Reviewed-by: Wei Zhao --- drivers/net/ixgbe/ixgbe_ethdev.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/net/ixgbe

[dpdk-dev] [PATCH v10 05/24] net/i40e: return unknown speed in status

2020-09-10 Thread Ivan Dyukov
rte_ethdev has declared new NUM_UNKNOWN speed which could be used in case when no speed information is available and link is up. NUM_NONE should be returned, if link is down. Signed-off-by: Ivan Dyukov Acked-by: Jeff Guo --- drivers/net/i40e/i40e_ethdev.c| 5 - drivers/net/i40e

[dpdk-dev] [PATCH v10 03/24] app: update apps&docs with new UNKNOWN link speed

2020-09-10 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications and docs Signed-off-by: Ivan Dyukov --- app/proc-info/main.c | 11 +-- app/test-pipeline/init.c | 11 +-- app/test-pmd/config.c | 9

[dpdk-dev] [PATCH v10 02/24] ethdev: format a link status text

2020-09-10 Thread Ivan Dyukov
re to text. This commit adds two functions: * rte_eth_link_speed_to_str - format link_speed to string * rte_eth_link_to_str - convert link status structure to string Signed-off-by: Ivan Dyukov --- MAINTAINERS | 1 + app/test/Makefile| 3 +

[dpdk-dev] [PATCH v10 01/24] ethdev: allow unknown link speed

2020-09-10 Thread Ivan Dyukov
From: Thomas Monjalon When querying the link information, the link status is a mandatory major information. Other boolean values are supposed to be accurate: - duplex mode (half/full) - negotiation (auto/fixed) This API update is making explicit that the link speed information is

Re: [dpdk-dev] [PATCH v9 00/24] ethdev: allow unknown link speed

2020-09-07 Thread Ivan Dyukov
Hi Ferruh, Morten, 07.09.2020 18:29, Morten Brørup пишет: >> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Ferruh Yigit >> Sent: Monday, September 7, 2020 3:25 PM >> >> On 8/11/2020 9:52 AM, Ivan Dyukov wrote: >> >> <...> >> >>&

Re: [dpdk-dev] [PATCH v9 02/24] ethdev: add a link status text representation

2020-08-11 Thread Ivan Dyukov
11.08.2020 18:47, Stephen Hemminger пишет: > On Tue, 11 Aug 2020 11:52:21 +0300 > Ivan Dyukov wrote: > >> Link status structure keeps complicated values which are hard to >> represent to end user. e.g. link_speed has INT_MAX value which >> means that speed is unknown, l

Re: [dpdk-dev] [PATCH v9 02/24] ethdev: add a link status text representation

2020-08-11 Thread Ivan Dyukov
11.08.2020 15:53, Gaëtan Rivet пишет: > On 11/08/20 15:48 +0300, Ivan Dyukov wrote: >> 11.08.2020 14:02, Gaëtan Rivet пишет: >>> On 11/08/20 11:52 +0300, Ivan Dyukov wrote: >>>> Link status structure keeps complicated values which are hard to >>>> represen

Re: [dpdk-dev] [PATCH v9 02/24] ethdev: add a link status text representation

2020-08-11 Thread Ivan Dyukov
11.08.2020 14:02, Gaëtan Rivet пишет: > On 11/08/20 11:52 +0300, Ivan Dyukov wrote: >> Link status structure keeps complicated values which are hard to >> represent to end user. e.g. link_speed has INT_MAX value which >> means that speed is unknown, link_duplex equal to 0

[dpdk-dev] [PATCH v9 24/24] examples/vm_power_*: new link status print format

2020-08-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/vm_power_manager/main.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/examples/vm_power_manager/main.c b/examples/vm_power_manager/main.c index

[dpdk-dev] [PATCH v9 23/24] examples/server_nod*: new link status print format

2020-08-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/server_node_efd/server/init.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/examples/server_node_efd/server/init.c b/examples/server_node_efd/server

[dpdk-dev] [PATCH v9 19/24] examples/multi_proc*: new link status print format

2020-08-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- .../client_server_mp/mp_server/init.c | 15 ++- examples/multi_process/symmetric_mp/main.c| 13 + 2 files changed, 11 insertions(+), 17 deletions(-) diff

[dpdk-dev] [PATCH v9 22/24] examples/qos_sched: new link status print format

2020-08-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/qos_sched/init.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/examples/qos_sched/init.c b/examples/qos_sched/init.c index 9626c15b8..99521bc4a 100644

[dpdk-dev] [PATCH v9 20/24] examples/ntb: new link status print format

2020-08-11 Thread Ivan Dyukov
Add usage of rte_eth_link_strf function to example applications Signed-off-by: Ivan Dyukov --- examples/ntb/ntb_fwd.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/ntb/ntb_fwd.c b/examples/ntb/ntb_fwd.c index eba8ebf9f..abb05a612 100644 --- a/examples

[dpdk-dev] [PATCH v9 21/24] example/performance*: new link status print format

2020-08-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/performance-thread/l3fwd-thread/main.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/examples/performance-thread/l3fwd-thread/main.c b/examples

[dpdk-dev] [PATCH v9 18/24] examples/l3fwd-power: new link status print format

2020-08-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/l3fwd-power/main.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c index 9db94ce04..ff862fbc8

[dpdk-dev] [PATCH v9 17/24] examples/l3fwd-graph: new link status print format

2020-08-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/l3fwd-graph/main.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/examples/l3fwd-graph/main.c b/examples/l3fwd-graph/main.c index c70270c4d..ccf55859f

[dpdk-dev] [PATCH v9 16/24] examples/l2fwd: new link status print format

2020-08-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/l2fwd/main.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/examples/l2fwd/main.c b/examples/l2fwd/main.c index e04c601b5..b229a760a 100644 --- a/examples

[dpdk-dev] [PATCH v9 13/24] examples/kni: new link status print format

2020-08-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/kni/main.c | 26 +- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/examples/kni/main.c b/examples/kni/main.c index f5d12a5b8..f1045b284 100644 --- a

[dpdk-dev] [PATCH v9 15/24] examples/l2fwd-event: new link status print format

2020-08-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/l2fwd-event/main.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/examples/l2fwd-event/main.c b/examples/l2fwd-event/main.c index 4fe500333..f43b61daf

[dpdk-dev] [PATCH v9 12/24] examples/ipsec-secgw: new link status print format

2020-08-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/ipsec-secgw/ipsec-secgw.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c index

[dpdk-dev] [PATCH v9 14/24] examples/l2fwd-crypt: new link status print format

2020-08-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/l2fwd-crypto/main.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c index 827da9b3e..da3b12f4f

[dpdk-dev] [PATCH v9 09/24] examples/ioat: new link status print format

2020-08-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/ioat/ioatfwd.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/examples/ioat/ioatfwd.c b/examples/ioat/ioatfwd.c index b66ee73bc..bb8cff7c1 100644 --- a

[dpdk-dev] [PATCH v9 11/24] examples/ip_pipeline: new link status print format

2020-08-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/ip_pipeline/cli.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/examples/ip_pipeline/cli.c b/examples/ip_pipeline/cli.c index d79699e2e..236553aae 100644

[dpdk-dev] [PATCH v9 08/24] examples/bbdev_app: new link status print format

2020-08-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/bbdev_app/main.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/bbdev_app/main.c b/examples/bbdev_app/main.c index 68a46050c..2eff5441a 100644 --- a

[dpdk-dev] [PATCH v9 10/24] examples/ip_*: new link status print format

2020-08-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications: * ip_fragmentation * ip_reassembly * l3fwd-acl Signed-off-by: Ivan Dyukov --- examples/ip_fragmentation/main.c | 13 + examples/ip_reassembly/main.c| 13 + examples/l3fwd-acl

[dpdk-dev] [PATCH v9 07/24] examples: new link status print format

2020-08-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications: * ipv4_multicast * l2fwd-jobstats * l2fwd-keepalive * l3fwd * link_status_interrupt Signed-off-by: Ivan Dyukov --- examples/ipv4_multicast/main.c| 14 ++-- examples/l2fwd

[dpdk-dev] [PATCH v9 04/24] net/ixgbe: return unknown speed in status

2020-08-11 Thread Ivan Dyukov
rte_ethdev has declared new NUM_UNKNOWN speed which could be used in case when no speed information is available Signed-off-by: Ivan Dyukov Reviewed-by: Wei Zhao --- drivers/net/ixgbe/ixgbe_ethdev.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/net/ixgbe

[dpdk-dev] [PATCH v9 05/24] net/i40e: return unknown speed in status

2020-08-11 Thread Ivan Dyukov
rte_ethdev has declared new NUM_UNKNOWN speed which could be used in case when no speed information is available and link is up. NUM_NONE should be returned, if link is down. Signed-off-by: Ivan Dyukov Acked-by: Jeff Guo --- drivers/net/i40e/i40e_ethdev.c| 5 - drivers/net/i40e

[dpdk-dev] [PATCH v9 06/24] net/ice: return unknown speed in status

2020-08-11 Thread Ivan Dyukov
rte_ethdev has declared new NUM_UNKNOWN speed which could be used in case when no speed information is available and link is up. NUM_NONE should be returned, if link is down. Signed-off-by: Ivan Dyukov Reviewed-by: Ferruh Yigit --- drivers/net/ice/ice_ethdev.c | 5 - 1 file changed, 4

[dpdk-dev] [PATCH v9 03/24] app: UNKNOWN link speed print

2020-08-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications and docs Signed-off-by: Ivan Dyukov --- app/proc-info/main.c | 13 ++- app/test-pipeline/init.c | 11 - app/test-pmd/config.c | 23

[dpdk-dev] [PATCH v9 01/24] ethdev: allow unknown link speed

2020-08-11 Thread Ivan Dyukov
From: Thomas Monjalon When querying the link information, the link status is a mandatory major information. Other boolean values are supposed to be accurate: - duplex mode (half/full) - negotiation (auto/fixed) This API update is making explicit that the link speed information is

[dpdk-dev] [PATCH v9 02/24] ethdev: add a link status text representation

2020-08-11 Thread Ivan Dyukov
ced. This commit adds function which treat link status structure and format it to text representation. User may create custom link status string using format string. If format string is NULL, the function construct standard link status string. Signed-off-by: Ivan Dyukov --- M

[dpdk-dev] [PATCH v9 00/24] ethdev: allow unknown link speed

2020-08-11 Thread Ivan Dyukov
MAINTAINERS | 1 + app/proc-info/main.c | 9 +- app/test-pipeline/init.c | 11 ++- app/test-pmd/config.c| 20 +++-- app/test-pmd/testpmd.c

Re: [dpdk-dev] [PATCH v8 02/24] ethdev: add a link status text representation

2020-07-12 Thread Ivan Dyukov
12.07.2020 10:35, Thomas Monjalon пишет: > 11/07/2020 20:58, Ivan Dyukov: >> 11.07.2020 14:27, Thomas Monjalon пишет: >>> 11/07/2020 12:43, Ivan Dyukov: >>>> +__rte_experimental >>>> +int rte_eth_link_printf(const char *const fmt, >>>> +

Re: [dpdk-dev] [PATCH v8 02/24] ethdev: add a link status text representation

2020-07-11 Thread Ivan Dyukov
11.07.2020 14:27, Thomas Monjalon пишет: > 11/07/2020 12:43, Ivan Dyukov: >> +__rte_experimental >> +int rte_eth_link_printf(const char *const fmt, >> + const struct rte_eth_link *eth_link); >> > Maybe I missed your reply, > I still don't

[dpdk-dev] [PATCH v8 24/24] examples/vm_power_*: new link status print format

2020-07-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/vm_power_manager/main.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/examples/vm_power_manager/main.c b/examples/vm_power_manager/main.c index

[dpdk-dev] [PATCH v8 23/24] examples/server_nod*: new link status print format

2020-07-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/server_node_efd/server/init.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/examples/server_node_efd/server/init.c b/examples/server_node_efd/server

[dpdk-dev] [PATCH v8 17/24] examples/l3fwd-graph: new link status print format

2020-07-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/l3fwd-graph/main.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/examples/l3fwd-graph/main.c b/examples/l3fwd-graph/main.c index c70270c4d..8af835e15

[dpdk-dev] [PATCH v8 19/24] examples/multi_proc*: new link status print format

2020-07-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- .../client_server_mp/mp_server/init.c | 14 +- examples/multi_process/symmetric_mp/main.c | 12 2 files changed, 9 insertions(+), 17 deletions(-) diff

[dpdk-dev] [PATCH v8 21/24] example/performance*: new link status print format

2020-07-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/performance-thread/l3fwd-thread/main.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/examples/performance-thread/l3fwd-thread/main.c b/examples

[dpdk-dev] [PATCH v8 22/24] examples/qos_sched: new link status print format

2020-07-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/qos_sched/init.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/examples/qos_sched/init.c b/examples/qos_sched/init.c index 9626c15b8..4bb975fc9 100644 --- a

[dpdk-dev] [PATCH v8 18/24] examples/l3fwd-power: new link status print format

2020-07-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/l3fwd-power/main.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c index 9db94ce04..f5bf0a92d

[dpdk-dev] [PATCH v8 20/24] examples/ntb: new link status print format

2020-07-11 Thread Ivan Dyukov
Add usage of rte_eth_link_strf function to example applications Signed-off-by: Ivan Dyukov --- examples/ntb/ntb_fwd.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/ntb/ntb_fwd.c b/examples/ntb/ntb_fwd.c index eba8ebf9f..1cbaace58 100644 --- a/examples

[dpdk-dev] [PATCH v8 13/24] examples/kni: new link status print format

2020-07-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/kni/main.c | 26 +- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/examples/kni/main.c b/examples/kni/main.c index f5d12a5b8..679b158d4 100644 --- a

[dpdk-dev] [PATCH v8 16/24] examples/l2fwd: new link status print format

2020-07-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/l2fwd/main.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/examples/l2fwd/main.c b/examples/l2fwd/main.c index e04c601b5..dd9ca43a0 100644 --- a/examples

[dpdk-dev] [PATCH v8 15/24] examples/l2fwd-event: new link status print format

2020-07-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/l2fwd-event/main.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/examples/l2fwd-event/main.c b/examples/l2fwd-event/main.c index 4fe500333..3849aaae0

[dpdk-dev] [PATCH v8 12/24] examples/ipsec-secgw: new link status print format

2020-07-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/ipsec-secgw/ipsec-secgw.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c index

[dpdk-dev] [PATCH v8 14/24] examples/l2fwd-crypt: new link status print format

2020-07-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/l2fwd-crypto/main.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c index 827da9b3e..cdb4f18ab

[dpdk-dev] [PATCH v8 11/24] examples/ip_pipeline: new link status print format

2020-07-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/ip_pipeline/cli.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/examples/ip_pipeline/cli.c b/examples/ip_pipeline/cli.c index d79699e2e..236553aae 100644

[dpdk-dev] [PATCH v8 05/24] net/i40e: return unknown speed in status

2020-07-11 Thread Ivan Dyukov
rte_ethdev has declared new NUM_UNKNOWN speed which could be used in case when no speed information is available and link is up. NUM_NONE should be returned, if link is down. Signed-off-by: Ivan Dyukov Acked-by: Jeff Guo --- drivers/net/i40e/i40e_ethdev.c| 5 - drivers/net/i40e

[dpdk-dev] [PATCH v8 09/24] examples/ioat: new link status print format

2020-07-11 Thread Ivan Dyukov
Add usage of rte_eth_link_to_str function to example applications Signed-off-by: Ivan Dyukov --- examples/ioat/ioatfwd.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/examples/ioat/ioatfwd.c b/examples/ioat/ioatfwd.c index b66ee73bc..7d1164ebd 100644 --- a

  1   2   3   4   >