[dpdk-dev] [PATCH v2] net/virtio: fix add pointer checking for rxvq

2018-05-24 Thread zhiyong . yang
@intel.com Signed-off-by: Zhiyong Yang Reviewed-by: Maxime Coquelin --- Change in V2: change title prefix from net/virtio-user to net/virtio. drivers/net/virtio/virtio_ethdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethd

[dpdk-dev] [PATCH] net/virtio-user: fix add pointer checking for rxvq

2018-05-23 Thread zhiyong . yang
@intel.com Signed-off-by: Zhiyong Yang --- drivers/net/virtio/virtio_ethdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 5833dad73..df50a571a 100644 --- a/drivers/net/virtio/virtio_ethdev.c +++ b/drivers/

[dpdk-dev] [PATCH] ethdev: fix eth_dev_last_created_port storage type

2018-05-17 Thread zhiyong . yang
eth_dev_last_created_port is used to store port id type and should be extended to 16bits corresponding to ethdev port id range. Cc: sta...@dpdk.org Cc: ferruh.yi...@intel.com Fixes: f8244c6399d9 ("ethdev: increase port id range") Signed-off-by: Zhiyong Yang --- lib/librte_ethdev/rt

[dpdk-dev] [PATCH v2] app/testpmd: fix pmd_test_exit function for vdevs

2018-05-17 Thread zhiyong . yang
quot;net/virtio-user: support server mode") Signed-off-by: Zhiyong Yang --- changes in V2: 1. change the pache title and add a fixes line. app/test-pmd/testpmd.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 134401603..1d308f

[dpdk-dev] [PATCH] app/testpmd: add to call detach for vdev when quitting

2018-05-16 Thread zhiyong . yang
calls the rte_eth_dev_detach() for vdev when quitting testpmd. Cc: maxime.coque...@redhat.com Cc: ferruh.yi...@intel.com Cc: tiwei@intel.com Cc: lei.a@intel.com Signed-off-by: Zhiyong Yang --- app/test-pmd/testpmd.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/app/tes

[dpdk-dev] [PATCH] app/testpmd: fix print unused parameter name

2018-05-13 Thread zhiyong . yang
The second parameter "name" in the function rte_eth_dev_detach has been already redefined as "char *name __rte_unused", "port_id" is printed instead of "name" in testpmd. Fixes: b65ecf199324 ("devargs: rename legacy API") Cc: sta...@dpdk.

[dpdk-dev] [PATCH v4] net/virtio-user: fix multiple queues fail in server mode

2018-05-10 Thread zhiyong . yang
Cc: tiwei@intel.com Cc: ferruh.yi...@intel.com Cc: maxime.coque...@redhat.com Signed-off-by: Zhiyong Yang Reviewed-by: Tiwei Bie --- Changes in V4: 1. fix two typoes. Changes in V3: 1. virtio_user_handle_mq is redefined as extern instead of static. 2. add to call virtio_user_ha

[dpdk-dev] [PATCH v3] net/virtio-user: fix multiple queues fail in server mode

2018-05-10 Thread zhiyong . yang
ned-off-by: Zhiyong Yang --- Changes in V3: 1. virtio_user_handle_mq is redefined as extern instead of static. 2. add to call virtio_user_handle_mq in virtio_user_server_reconnect. Changes in V2: 1. fix a comment typo. 2. add feature negotiation in the processing of reconnection. drivers/net/virtio/v

[dpdk-dev] [PATCH v2] net/virtio-user: fix multiple queues fail in server mode

2018-05-10 Thread zhiyong . yang
This patch fixes multiple queues failure when virtio-user works in server mode. This patch adds feature negotiation in the processing of virtio-user reccnnection. Fixes: bd8f50a45d0f ("net/virtio-user: support server mode") Signed-off-by: Zhiyong Yang --- Changes in V2: 1. fix a co

[dpdk-dev] [PATCH] net/virtio-user: fix multiple queues fail in server mode

2018-05-09 Thread zhiyong . yang
This patch fixes multiple queues failure when virtio-user works in server mode. Fixes: bd8f50a45d0f ("net/virtio-user: support server mode") Cc: sta...@dpdk.org Signed-off-by: Zhiyong Yang --- drivers/net/virtio/virtio_user/vhost_user.c | 3 +++ drivers/net/virtio/v

[dpdk-dev] [PATCH v7] net/virtio-user: add support for server mode

2018-04-06 Thread zhiyong . yang
tarts, it can reconnect to virtio-user and continue communications. With current implementation, LSC is enabled at virtio-user side to support to accept the coming connection. Server mode virtio-user only supports to work with vhost-user. Release note is updated in this patch. Signed-off-by: Zh

[dpdk-dev] [PATCH v6] net/virtio-user: add support for server mode

2018-04-05 Thread zhiyong . yang
tarts, it can reconnect to virtio-user and continue communications. With current implementation, LSC is enabled at virtio-user side to support to accept the coming connection. Release note is updated in this patch. Signed-off-by: Zhiyong Yang --- Changes in V6: 1. fix report wrong link stau

[dpdk-dev] [PATCH v5] net/virtio-user: add support for server mode

2018-04-04 Thread zhiyong . yang
tarts, it can reconnect to virtio-user and continue communications. With current implementation, LSC is enabled at virtio-user side to support to accept the coming connection. Release note is updated in this patch. Signed-off-by: Zhiyong Yang --- Changes in V5: 1. Support server mode virtio

[dpdk-dev] [PATCH v4 0/1] server mode virtio-user

2018-04-03 Thread zhiyong . yang
e_vhost exposed as new APIs. 3. release note is added in the patch 5/5. 4. squash data structure change patch into 4/5 according to Maxime's suggestion. Zhiyong Yang (1): net/virtio-user: add support for server mode doc/guides/rel_notes/release_18_05.rst | 6 ++ drivers/net/v

[dpdk-dev] [PATCH v4 1/1] net/virtio-user: add support for server mode

2018-04-03 Thread zhiyong . yang
-user supports many times' vhost-user reconnections with the same parameter configurations. Release note is updated in the patch. Signed-off-by: Zhiyong Yang --- doc/guides/rel_notes/release_18_05.rst | 6 ++ drivers/net/virtio/virtio_user/vhost_user.c

[dpdk-dev] [PATCH] net/virtio-user: fix port_id type

2018-03-30 Thread zhiyong . yang
virtio-user port_id range should be increased from 8 bits to 16 bits. Fixes: f8244c6399d9 ("ethdev: increase port id range") Signed-off-by: Zhiyong Yang --- drivers/net/virtio/virtio_user/virtio_user_dev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/

[dpdk-dev] [PATCH v3 2/4] net/virtio: add checking for cvq

2018-03-20 Thread zhiyong . yang
Add checking for cvq to judge if virtio_ack_link_announce should be called. The existing code doesn't cause issue, and add the checking just to look more reasonable. Signed-off-by: Zhiyong Yang --- drivers/net/virtio/virtio_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[dpdk-dev] [PATCH v3 3/4] net/virtio-user: add support for server mode

2018-03-20 Thread zhiyong . yang
same configurations. Signed-off-by: Zhiyong Yang --- drivers/net/virtio/virtio_user/vhost_user.c | 96 ++-- drivers/net/virtio/virtio_user/virtio_user_dev.c | 47 drivers/net/virtio/virtio_user/virtio_user_dev.h | 11 +++ drivers/net/virtio/virtio_user_ethdev.c

[dpdk-dev] [PATCH v3 4/4] net/vhost: add NULL pointer checking

2018-03-20 Thread zhiyong . yang
When vhost user PMD works in client mode to connect/reconnect virtio-user with server mode, new thread sometimes may run to new_device before queue_setup has been done, So have to wait until memory allocation is done. Release note is updated in the patch. Signed-off-by: Zhiyong Yang --- doc

[dpdk-dev] [PATCH v3 1/4] net/virtio: fix add pointer checking

2018-03-20 Thread zhiyong . yang
It is necessary to add pointer checking because in some case the code will cause crash. For example, the code goes here before memory allocation of rxvq is finished. Fixes: 7365504f77e3("net/virtio: support guest announce") Cc: sta...@dpdk.org Signed-off-by: Zhiyong Yang --- drivers/

[dpdk-dev] [PATCH v3 0/4] add support for virtio-user server mode

2018-03-20 Thread zhiyong . yang
fdset related functions to librte_eal from librte_vhost exposed as new APIs according to Thomas' comments. 3. release note is added in the patch 5/5. 4. squash data structure change patch into 4/5 according to Maxime's suggestion. Zhiyong Yang (4): net/virtio: fix add pointer checking

[dpdk-dev] [PATCH v2 5/5] net/vhost: add memory checking

2018-03-15 Thread zhiyong . yang
When vhost user PMD works in client mode to connect/reconnect virtio-user with server mode, new thread sometimes may run to new_device before queue_setup has been done, So have to wait until memory allocation is done. Release note is updated in the patch. Signed-off-by: Zhiyong Yang --- doc

[dpdk-dev] [PATCH v2 4/5] net/virtio-user: add support for server mode

2018-03-15 Thread zhiyong . yang
tions. Signed-off-by: Zhiyong Yang --- drivers/net/virtio/virtio_user/vhost_user.c | 77 -- drivers/net/virtio/virtio_user/virtio_user_dev.c | 44 + drivers/net/virtio/virtio_user/virtio_user_dev.h | 8 +++ drivers/net/virtio/virtio_user_ethdev.c

[dpdk-dev] [PATCH v2 3/5] eal: expose fdset related APIs

2018-03-15 Thread zhiyong . yang
host changes new function names accordingly when invoking. Remove the files fd_man.h and fd_man.c and remove fd_mac.c from Makefile from librte_vhost. Signed-off-by: Zhiyong Yang --- lib/librte_eal/common/include/rte_eal_interrupts.h | 56 + lib/librte_eal/linuxapp/eal/eal

[dpdk-dev] [PATCH v2 1/5] net/virtio: fix add pointer checking

2018-03-15 Thread zhiyong . yang
It is necessary to add pointer checking because in some case the code will cause crash. For example, The code goes here before memory allocation of rxvq is done. Fixes: 7365504f77e3("net/virtio: support guest announce") Cc: sta...@dpdk.org Signed-off-by: Zhiyong Yang --- drivers/

[dpdk-dev] [PATCH v2 2/5] net/virtio: add checking for cvq

2018-03-15 Thread zhiyong . yang
Add checking for cvq to judge if virtio_ack_link_announce is called. The original code doesn't cause issue, and add the checking just to look more reasonable. Signed-off-by: Zhiyong Yang --- drivers/net/virtio/virtio_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --

[dpdk-dev] [PATCH v2 0/5] add support for virtio-user server mode

2018-03-15 Thread zhiyong . yang
rt for server mode according to Maxime's comments. 2. move fdset related functions to librte_eal from librte_vhost exposed as new APIs according to Thomas' comments. 3. release note is added in the patch 5/5. 4. squash data structure change patch into 4/5 according to Maxime's suggestion. Z

[dpdk-dev] [PATCH 5/5] net/sfc: remove void pointer cast

2018-02-26 Thread Zhiyong Yang
Cc: arybche...@solarflare.com Signed-off-by: Zhiyong Yang --- drivers/net/sfc/sfc_flow.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/sfc/sfc_flow.c b/drivers/net/sfc/sfc_flow.c index 93cdf8f4c..eb555c324 100644 --- a/drivers/net/sfc/sfc_flow.c +++ b

[dpdk-dev] [PATCH 4/5] net/bnxt: remove void pointer cast

2018-02-26 Thread Zhiyong Yang
Cc: ajit.khapa...@broadcom.com Cc: somnath.ko...@broadcom.com Signed-off-by: Zhiyong Yang --- drivers/net/bnxt/bnxt_filter.c | 44 -- 1 file changed, 17 insertions(+), 27 deletions(-) diff --git a/drivers/net/bnxt/bnxt_filter.c b/drivers/net/bnxt

[dpdk-dev] [PATCH 3/5] net/e1000: remove void pointer cast

2018-02-26 Thread Zhiyong Yang
Cc: wenzhuo...@intel.com Signed-off-by: Zhiyong Yang --- drivers/net/e1000/igb_flow.c | 27 +-- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/drivers/net/e1000/igb_flow.c b/drivers/net/e1000/igb_flow.c index a14275968..c0f5b5190 100644 --- a/drivers/net

[dpdk-dev] [PATCH 2/5] net/ixgbe: remove void pointer cast

2018-02-26 Thread Zhiyong Yang
Cc: wenzhuo...@intel.com Cc: konstantin.anan...@intel.com Signed-off-by: Zhiyong Yang --- drivers/net/ixgbe/ixgbe_flow.c | 106 ++--- 1 file changed, 46 insertions(+), 60 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_flow.c b/drivers/net/ixgbe

[dpdk-dev] [PATCH 1/5] flow_classify: remove void pointer cast

2018-02-26 Thread Zhiyong Yang
Cc: bernard.iremon...@intel.com Signed-off-by: Zhiyong Yang --- lib/librte_flow_classify/rte_flow_classify.c | 4 +--- lib/librte_flow_classify/rte_flow_classify_parse.c | 24 +++--- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/lib/librte_flow_classify

[dpdk-dev] [PATCH 0/5] remove void pointer explicit cast

2018-02-26 Thread Zhiyong Yang
The patch series cleanup void pointer explicit cast related to struct rte_flow_item fields in librte_flow_classify and make code more readable. Zhiyong Yang (5): flow_classify: remove void pointer cast net/ixgbe: remove void pointer cast net/e1000: remove void pointer cast net/bnxt

[dpdk-dev] [PATCH 4/4] net/vhost: add memory checking to support client mode

2018-02-14 Thread Zhiyong Yang
When vhost user PMD works in client mode to connect/reconnect virtio user in server mode, new thread sometimes may run to new_device before queue_setup has been done, So have to wait until memory allocation is done. Signed-off-by: Zhiyong Yang --- drivers/net/vhost/rte_eth_vhost.c | 9

[dpdk-dev] [PATCH 3/4] net/virtio-user: support server mode

2018-02-14 Thread Zhiyong Yang
only one connection at the same time in server mode. Signed-off-by: Zhiyong Yang --- drivers/net/virtio/virtio_ethdev.c | 9 ++- drivers/net/virtio/virtio_user/vhost_user.c | 77 -- drivers/net/virtio/virtio_user/virtio_user_dev.c | 44 + driver

[dpdk-dev] [PATCH 2/4] net/virtio-user: add data members to support server mode

2018-02-14 Thread Zhiyong Yang
Add data members so as to support server mode. Signed-off-by: Zhiyong Yang --- drivers/net/virtio/virtio_user/virtio_user_dev.h | 8 1 file changed, 8 insertions(+) diff --git a/drivers/net/virtio/virtio_user/virtio_user_dev.h b/drivers/net/virtio/virtio_user/virtio_user_dev.h index

[dpdk-dev] [PATCH 1/4] vhost: move fdset functions from fd_man.c to fd_man.h

2018-02-14 Thread Zhiyong Yang
The patch moves fdset related funcitons from fd_man.c to fd_man.h in order to reuse these funcitons from the perspective of PMDs. Signed-off-by: Zhiyong Yang --- lib/librte_vhost/Makefile | 3 +- lib/librte_vhost/fd_man.c | 274 -- lib/librte_vhost

[dpdk-dev] [PATCH 0/4] add to support for virtio-user server mode

2018-02-14 Thread Zhiyong Yang
/tmp/sock0,client=0,queues=1' -- -i --rxq=1 --txq=1 \ --nb-cores=1 --no-numa Zhiyong Yang (4): vhost: move fdset functions from fd_man.c to fd_man.h net/virtio-user: add data members to support server mode net/virtio-user: support server mode net/vhost: add memory checking to supp

[dpdk-dev] [PATCH] vhost: unlink existing file for server mode

2018-02-02 Thread Zhiyong Yang
Vhost-user startup will fail based on server mode, if the specified socket file has already existed. The patch introduces function unlink() to remove the possible existing file. Cc: y...@fridaylinux.org Cc: maxime.coque...@redhat.com Signed-off-by: Zhiyong Yang --- lib/librte_vhost/socket.c

[dpdk-dev] [PATCH] net/tap: fix ICC compilation fails

2018-01-31 Thread Zhiyong Yang
..@intel.com Cc: tho...@monjalon.net Cc: ophi...@mellanox.com Signed-off-by: Zhiyong Yang --- drivers/net/tap/tap_flow.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/tap/tap_flow.c b/drivers/net/tap/tap_flow.c index 212992e49..65657f0a0 100644 --- a/drivers/net/

[dpdk-dev] [PATCH] net/i40e: remove unnecessary void pointer cast

2018-01-24 Thread Zhiyong Yang
void pointer can be assigned to any type pointer without type cast. The patch can make code more simple. Cc: beilei.x...@intel.com Cc: qi.z.zh...@intel.com Cc: helin.zh...@intel.com Signed-off-by: Zhiyong Yang --- drivers/net/i40e/i40e_flow.c | 118

[dpdk-dev] [PATCH] event/opdl: fix ICC fails at compile time

2018-01-24 Thread Zhiyong Yang
.com Cc: peter.mccar...@intel.com Cc: ferruh.yi...@intel.com Signed-off-by: Zhiyong Yang --- drivers/event/opdl/opdl_test.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/event/opdl/opdl_test.c b/drivers/event/opdl/opdl_test.c index 13d4f6b45..39c6cf8cf 100644 --- a/drivers/event/opdl/opdl_

[dpdk-dev] [PATCH] examples/flow_filtering: fix incorrect port id size

2018-01-23 Thread Zhiyong Yang
ned-off-by: Zhiyong Yang --- examples/flow_filtering/flow_blocks.c | 4 ++-- examples/flow_filtering/main.c| 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/flow_filtering/flow_blocks.c b/examples/flow_filtering/flow_blocks.c index f92df1024..61b045af3 100644 ---

[dpdk-dev] [PATCH] lib: fix wrong cast

2018-01-23 Thread Zhiyong Yang
m Cc: akhil.go...@nxp.com Signed-off-by: Zhiyong Yang --- lib/librte_cryptodev/rte_cryptodev.c | 2 +- lib/librte_security/rte_security.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_cryptodev/rte_cryptodev.c b/lib/librte_cryptodev/rte_cryptodev.c index 77

[dpdk-dev] [PATCH] mbuf: remove void pointer cast

2018-01-19 Thread Zhiyong Yang
It is unnecessary to cast from void * to struct rte_mbuf *, the change can make code clearer. Signed-off-by: Zhiyong Yang --- lib/librte_mbuf/rte_mbuf.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h index a594e4772

[dpdk-dev] [PATCH] lib/librte_mbuf: remove void * pointer cast

2018-01-19 Thread Zhiyong Yang
It is unnecessary to cast from void * to struct rte_mbuf *, the change can make code more simple. Signed-off-by: Zhiyong Yang --- lib/librte_mbuf/rte_mbuf.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h index

[dpdk-dev] [PATCH v3] doc: fix link bonding PMD typo in prog guide

2018-01-18 Thread Zhiyong Yang
fix one typo and a grammatical mistake. Fixes: b0152b1b40fe ("doc: update bonding") Cc: sta...@dpdk.org Signed-off-by: Zhiyong Yang Acked-by: Marko Kovacevic --- Changes in V3: use "similar capabilities" instead of "the similar capabilities" Changes in V2: Fi

[dpdk-dev] [PATCH 5/5] lib/librte_pipeline: remove unnecessary void * pointer cast using rte_zmalloc_socket

2018-01-15 Thread Zhiyong Yang
void * pointer can be assigned to any data type pointer. Unnecessary cast can be removed in order to keep code clearer. Signed-off-by: Zhiyong Yang --- lib/librte_pipeline/rte_pipeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_pipeline/rte_pipeline.c b

[dpdk-dev] [PATCH 4/5] lib/librte_member: remove unnecessary void * pointer cast

2018-01-15 Thread Zhiyong Yang
void * pointer can be assigned to any data type pointer. Unnecessary cast can be removed in order to keep code clearer. Signed-off-by: Zhiyong Yang --- lib/librte_member/rte_member.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_member/rte_member.c b/lib

[dpdk-dev] [PATCH 3/5] lib/librte_hash: remove unnecessary void * pointer cast using rte_zmalloc_socket

2018-01-15 Thread Zhiyong Yang
void * pointer can be assigned to any data type pointer. Unnecessary cast can be removed in order to keep code clearer. Signed-off-by: Zhiyong Yang --- lib/librte_hash/rte_fbk_hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_hash/rte_fbk_hash.c b/lib

[dpdk-dev] [PATCH 2/5] lib/librte_efd: remove unnecessary void * pointer cast using rte_zmalloc_socket

2018-01-15 Thread Zhiyong Yang
void * pointer can be assigned to any data type pointer. Unnecessary cast can be removed in order to keep code clearer. Signed-off-by: Zhiyong Yang --- lib/librte_efd/rte_efd.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/librte_efd/rte_efd.c b/lib/librte_efd

[dpdk-dev] [PATCH 0/5] remove unnecessary void * pointer cast

2018-01-15 Thread Zhiyong Yang
void * pointer can be assigned to any data type pointer. Unnecessary cast can be removed in order to keep code clearer. Zhiyong Yang (5): lib/librte_lpm: remove unnecessary void * pointer cast lib/librte_efd: remove unnecessary void * pointer cast using rte_zmalloc_socket lib

[dpdk-dev] [PATCH 1/5] lib/librte_lpm: remove unnecessary void * pointer cast

2018-01-15 Thread Zhiyong Yang
void * pointer can be assigned to any data type pointer. Unnecessary cast can be removed in order to keep code clearer. Signed-off-by: Zhiyong Yang --- lib/librte_lpm/rte_lpm.c | 24 lib/librte_lpm/rte_lpm6.c | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions

[dpdk-dev] [PATCH v2] doc: fix link bonding PMD typo in prog guide

2018-01-12 Thread Zhiyong Yang
fix one typo and a grammatical mistake. Fixes: b0152b1b40fe ("doc: update bonding") Cc: sta...@dpdk.org Signed-off-by: Zhiyong Yang Acked-by: Marko Kovacevic --- Changes in V2: 1. Fix the title and fixline format issue in commit log. doc/guides/prog_guide/link_bonding_poll_mode_d

[dpdk-dev] [PATCH] lib/librte_vhost: mov enum definition from PMD to lib

2018-01-12 Thread Zhiyong Yang
The enum definition is placed in librte_vhost in order to avoid many duplication definitions in PMD and example code everywhere. Signed-off-by: Zhiyong Yang --- drivers/net/vhost/rte_eth_vhost.c | 2 -- examples/tep_termination/main.h | 2 -- examples/vhost/main.h | 2 -- lib

[dpdk-dev] [PATCH v2] examples/vhost: fix remove dev_info.max_rx_queues checking to solve startup failure

2018-01-09 Thread Zhiyong Yang
val don't affect any functionality (have already validated ixgbe and i40e). The removal can avoid similar issue when introduing new physical NIC. Fixes: 8bd6c395a568("examples/vhost: increase maximum queue number") Cc: sta...@dpdk.org Signed-off-by: Zhiyong Yang --- Changes in

[dpdk-dev] [PATCH v3] bus/pci: fix wrong intr_handle.type with uio_pci_generic

2018-01-09 Thread Zhiyong Yang
ndary() in order to keep consistencies and avoid future questions. Fixes: 756ce64b1ecd ("eal: introduce PCI ioport API") Cc: sta...@dpdk.org Signed-off-by: Zhiyong Yang --- Changes in V3: 1. Such assignments are removed in order to keep consistencies and avoid future questions. Changes

[dpdk-dev] [PATCH] examples/vhost: fix extend MAX_QUEUES to resolve startup failure

2018-01-03 Thread Zhiyong Yang
When binding X710 NIC (i40e driver) to DPDK, vhost sample startups failure. The sample requires that MAX_QUEUES should be defined no less than 320. So, the patch redefines MAX_QUEUES 320 to fix the issue. Cc: sta...@dpdk.org Signed-off-by: Zhiyong Yang --- examples/vhost/main.c | 2 +- 1 file

[dpdk-dev] [PATCH v2] bus/pci: fix wrong intr_handle.type with uio_pci_generic

2017-12-28 Thread Zhiyong Yang
he removal has no harm to other cases since it already is set to this value (0) at init. Fixes: 756ce64b1ecd ("eal: introduce PCI ioport API") Cc: sta...@dpdk.org Signed-off-by: Zhiyong Yang --- Changes in V2: 1. reword the commit log. 2. remove the assignment operation which causes

[dpdk-dev] [PATCH] doc: fix link bonding pmd typo in prog guide

2017-12-28 Thread Zhiyong Yang
fix one typo and a grammatical mistake. Fixes: b0152b1b40fe("doc: update bonding") Signed-off-by: Zhiyong Yang --- doc/guides/prog_guide/link_bonding_poll_mode_drv_lib.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/guides/

[dpdk-dev] [PATCH] bus/pci: fix wrong intr_handle.type with uio_pci_generic

2017-12-27 Thread Zhiyong Yang
quot;eal: introduce PCI ioport API") Cc: sta...@dpdk.org Signed-off-by: Zhiyong Yang --- drivers/bus/pci/linux/pci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/bus/pci/linux/pci.c b/drivers/bus/pci/linux/pci.c index 5da6728fb..8ff7dbfd7 100644 --- a/drivers/bus/pc

[dpdk-dev] [PATCH] net/virtio: fix wrong use_msix value for legacy device

2017-12-27 Thread Zhiyong Yang
If virtio fails to detect modern device, use_misx should be reset to VIRTIO_MSIX_NONE, otherwise this wrong value will be used after legacy device detection succeeds to be done. Fixes: fe19d49cb525 ("net/virtio: fix Rx interrupt with VFIO") Cc: sta...@dpdk.org Signed-off-by: Zh

[dpdk-dev] [PATCH] net/virtio: remove unnecessary macro definitions

2017-12-26 Thread Zhiyong Yang
DPDK has already the definition of Ethernet numeric link speeds in Mbps in the file Rte_ethdev.h, it is unnecessary to rededine virtio specific link speeds macros again. Signed-off-by: Zhiyong Yang --- drivers/net/virtio/virtio_ethdev.c | 2 +- drivers/net/virtio/virtio_ethdev.h | 5 - 2

[dpdk-dev] [PATCH] lib/librte_vhost: remove redundant logic judgement

2017-12-25 Thread Zhiyong Yang
At the beginning of vring_translate, the code if(!(dev->features & (1ULL << VIRTIO_F_IOMMU_PLATFORM))) already judges if IOMMU_PLATFORM is supported. The function vhost_iova_to_vva always repeats the logic, __vhost_iova_to_vva can be used directly to avoid it here. Signed-off-by:

[dpdk-dev] [PATCH 08/11] net/vhostpci: add RX function

2017-11-30 Thread Zhiyong Yang
Add the functions to support receiving packets. Signed-off-by: Zhiyong Yang --- drivers/net/vhostpci/vhostpci_ethdev.c | 311 + 1 file changed, 311 insertions(+) diff --git a/drivers/net/vhostpci/vhostpci_ethdev.c b/drivers/net/vhostpci/vhostpci_ethdev.c index

[dpdk-dev] [PATCH 09/11] net/vhostpci: add TX function

2017-11-30 Thread Zhiyong Yang
add the functions to support transmitting packets. Signed-off-by: Zhiyong Yang --- drivers/net/vhostpci/vhostpci_ethdev.c | 352 + 1 file changed, 352 insertions(+) diff --git a/drivers/net/vhostpci/vhostpci_ethdev.c b/drivers/net/vhostpci/vhostpci_ethdev.c

[dpdk-dev] [PATCH 11/11] net/vhostpci: update release note

2017-11-30 Thread Zhiyong Yang
update release note doc. update MAINTAINERS file. Signed-off-by: Zhiyong Yang --- MAINTAINERS| 6 ++ doc/guides/rel_notes/release_18_02.rst | 6 ++ 2 files changed, 12 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f0baeb423..7db0cfa35 100644

[dpdk-dev] [PATCH 07/11] net/vhostpci: get remote memory region and vring info

2017-11-30 Thread Zhiyong Yang
Linking up status is triggered to indicate that remote memory regions and vring info have been ready, Vhostpci PMD can get them. Signed-off-by: Zhiyong Yang --- drivers/net/vhostpci/vhostpci_ethdev.c | 81 ++ 1 file changed, 81 insertions(+) diff --git a/drivers

[dpdk-dev] [PATCH 10/11] net/vhostpci: support RX/TX packets statistics

2017-11-30 Thread Zhiyong Yang
Add the functions to support for TX/RX pkts statistics. Signed-off-by: Zhiyong Yang --- drivers/net/vhostpci/vhostpci_ethdev.c | 73 ++ 1 file changed, 73 insertions(+) diff --git a/drivers/net/vhostpci/vhostpci_ethdev.c b/drivers/net/vhostpci/vhostpci_ethdev.c

[dpdk-dev] [PATCH 04/11] net/vhostpci: add basic framework

2017-11-30 Thread Zhiyong Yang
This commit introduces the vhostpci framework in DPDK. Including: 1. Register vhostpci PMD. 2. Implement the pci device probe and remove functions. 3. vhostpci_net PMD allocates memory and initializes. 4. start, stop, close and info_gets functions. Signed-off-by: Zhiyong Yang --- config

[dpdk-dev] [PATCH 06/11] net/vhostpci: add support for link status change

2017-11-30 Thread Zhiyong Yang
Signed-off-by: Zhiyong Yang --- drivers/net/vhostpci/vhostpci_ethdev.c | 102 + 1 file changed, 102 insertions(+) diff --git a/drivers/net/vhostpci/vhostpci_ethdev.c b/drivers/net/vhostpci/vhostpci_ethdev.c index 068c19b2b..76353930a 100644 --- a/drivers/net

[dpdk-dev] [PATCH 05/11] net/vhostpci: add queue setup

2017-11-30 Thread Zhiyong Yang
add the functions for setup the RX/TX queue. Signed-off-by: Zhiyong Yang --- drivers/net/vhostpci/vhostpci_ethdev.c | 63 ++ 1 file changed, 63 insertions(+) diff --git a/drivers/net/vhostpci/vhostpci_ethdev.c b/drivers/net/vhostpci/vhostpci_ethdev.c index

[dpdk-dev] [PATCH 03/11] net/vhostpci: add debugging log macros

2017-11-30 Thread Zhiyong Yang
add a header file with debugging log macros for vhostpci PMD. Signed-off-by: Zhiyong Yang --- config/common_base | 4 +++ drivers/net/vhostpci/vhostpci_logs.h | 69 2 files changed, 73 insertions(+) create mode 100644 drivers/net/vhostpci

[dpdk-dev] [PATCH 01/11] drivers/net: add vhostpci PMD base files

2017-11-30 Thread Zhiyong Yang
Add Makefile and map files for vhostpci PMD. Update common_base and drivers/net/Makefile files. Signed-off-by: Zhiyong Yang --- config/common_base| 5 +++ drivers/net/Makefile | 1 + drivers/net/vhostpci/Makefile

[dpdk-dev] [PATCH 02/11] net/vhostpci: public header files

2017-11-30 Thread Zhiyong Yang
add public/exported files for vhostpci PMD. The structures and constants that define the method of operation of the device can be visible by both the PMD and the DPDK application. Signed-off-by: Zhiyong Yang --- drivers/net/vhostpci/vhostpci_ethdev.h | 176 drivers/net

[dpdk-dev] [PATCH 00/11] net/vhostpci: A new vhostpci PMD supporting VM2VM scenario

2017-11-30 Thread Zhiyong Yang
n "start tx_first" loopback testing can work. note: 1. only support igb_uio for now. 2. vhostpci device is a modern pci device. vhostpci PMD only supports mergable mode. Virtio device side must be mergable mode. 3. vhostpci PMD supports one queue pair for now. Zhiyong Yang (11):

[dpdk-dev] [PATCH v6] net/virtio: fix rxq intr config fails using vfio-pci

2017-11-09 Thread Zhiyong Yang
("net/virtio: fix MAC address read") Signed-off-by: Zhiyong Yang Acked-by: Jianfeng Tan Acked-by: Maxime Coquelin --- Changes in v6: Change enum type name "VIRTIO_MSIX_STATUS" to "virtio_msix_status". Changes in v5: 1. Introduce new enum data type "VIRTIO_MSIX_ST

[dpdk-dev] [PATCH v5] net/virtio: fix rxq intr config fails using vfio-pci

2017-11-09 Thread Zhiyong Yang
("net/virtio: fix MAC address read") Signed-off-by: Zhiyong Yang Acked-by: Jianfeng Tan Acked-by: Maxime Coquelin --- Changes in v5: 1. Introduce new enum data type "VIRTIO_MSIX_STATUS" instead of macros. 2. Remove the unnecessary comments. Changes in v4: Enhance the c

[dpdk-dev] [PATCH v4] net/virtio: fix rxq intr config fails using vfio-pci

2017-11-08 Thread Zhiyong Yang
("net/virtio: fix MAC address read") Signed-off-by: Zhiyong Yang --- Changes in v4: Enhance the commit log description. Changes in v3: Simply the code according to jianfeng's comments. Changes in v2: Add the capability to detect msix if virtio intr c

[dpdk-dev] [PATCH v3] net/virtio: fix rxq intr config fails using vfio-pci

2017-11-08 Thread Zhiyong Yang
/disable to enhance the ability to detect msix. Only supporting and enabling msix can assign "VIRTIO_MSIX_ENABLED(2)" to use_msix. Fixes: cb482cb3a305 ("net/virtio: fix MAC address read") Signed-off-by: Zhiyong Yang --- Changes in v3: Simply the code according to jianfeng&#x

[dpdk-dev] [PATCH v2] net/virtio: fix rxq intr config fails using vfio-pci

2017-11-08 Thread Zhiyong Yang
o enhance the ability to detect msix. Only support and enable msix can assign "1" to use_msix. Fixes: cb482cb3a305 ("net/virtio: fix MAC address read") Signed-off-by: Zhiyong Yang --- drivers/net/virtio/virtio_ethdev.c | 64 +--

[dpdk-dev] [PATCH] net/virtio: fix use_msix get the wrong value

2017-10-31 Thread Zhiyong Yang
x is not assigned to the right value "1". The patch fixes the issue. Fixes: cb482cb3a305 ("net/virtio: fix MAC address read") Signed-off-by: Zhiyong Yang --- drivers/net/virtio/virtio_pci.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/n

[dpdk-dev] [PATCH v3] net/virtio: fix wrong TX pkt length stats

2017-10-23 Thread Zhiyong Yang
fload") Cc: sta...@dpdk.org Cc: y...@fridaylinux.org Cc: maxime.coque...@redhat.com Signed-off-by: Zhiyong Yang Reviewed-by: Maxime Coquelin --- Changes in V3: Move code inside "if (can_push)" clause and simplify comments. Changes in V2: Put code in the function virtqueue_enqueue

[dpdk-dev] [PATCH v2] net/virtio: fix wrong TX pkt length stats

2017-10-22 Thread Zhiyong Yang
pdk.org Cc: y...@fridaylinux.org Cc: maxime.coque...@redhat.com Signed-off-by: Zhiyong Yang Reviewed-by: Maxime Coquelin --- Changes in V2: Put code in the function virtqueue_enqueue_xmit() according to yuanhan's comments. drivers/net/virtio/virtio_rxtx.c | 7 +++ 1 file changed, 7 inse

[dpdk-dev] [PATCH v2] examples/l2fwd-crypto: fix port id type

2017-10-18 Thread Zhiyong Yang
Fix port id issues and keep variables related to port ids in consistent data type definition "uint16_t". Remove unnecessary cast in the meanwhile. Fixes: f8244c6399d9 ("ethdev: increase port id range") Signed-off-by: Zhiyong Yang Acked-by: Pablo de Lara --- examples/l2fw

[dpdk-dev] [PATCH] examples/l2fwd-crypto: fix port id type

2017-10-18 Thread Zhiyong Yang
Fix port id issue and remove unnecessary cast. Fixes: f8244c6399d9 ("ethdev: increase port id range") Signed-off-by: Zhiyong Yang --- examples/l2fwd-crypto/main.c | 30 -- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/examples/l2fwd-crypt

[dpdk-dev] [PATCH v3] doc: add virtio lsc note

2017-10-15 Thread Zhiyong Yang
-by: Zhiyong Yang Reviewed-by: John McNamara --- doc/guides/nics/virtio.rst | 7 +++ 1 file changed, 7 insertions(+) Changes in v3: Add a blank line and indent, and text is minor changed according to John's comments. Changes in v2: reword the doc and commit log. diff --git a/doc/guides

[dpdk-dev] [PATCH] app/testpmd: remove useless funciton declarations

2017-10-15 Thread Zhiyong Yang
The four function declarations have no funciton implementation, remove them. Signed-off-by: Zhiyong Yang --- app/test-pmd/testpmd.h | 4 1 file changed, 4 deletions(-) diff --git a/app/test-pmd/testpmd.h b/app/test-pmd/testpmd.h index 265b75f9f..15ebf8c92 100644 --- a/app/test-pmd

[dpdk-dev] [PATCH 7/8] examples: fix port id type

2017-10-13 Thread Zhiyong Yang
Fixes: f8244c6399d9 ("ethdev: increase port id range") Signed-off-by: Zhiyong Yang --- examples/distributor/main.c| 2 +- examples/ethtool/lib/rte_ethtool.c | 42 +-- examples/ethtool/lib/rte_ethtool.h

[dpdk-dev] [PATCH 8/8] doc: update port id type

2017-10-13 Thread Zhiyong Yang
Since port id has changed from uint8_t to uint16_t in dpdk code, So update the change in related doc. Fixes: f8244c6399d9 ("ethdev: increase port id range") Signed-off-by: Zhiyong Yang --- doc/guides/prog_guide/poll_mode_drv.rst | 2 +- doc/guides/prog_guide/rt

[dpdk-dev] [PATCH 6/8] test: fix port id type

2017-10-13 Thread Zhiyong Yang
Fixes: f8244c6399d9 ("ethdev: increase port id range") Signed-off-by: Zhiyong Yang --- test/test-pipeline/init.c | 8 test/test/test_link_bonding.c | 2 +- test/test/test_link_bonding_mode4.c | 4 ++-- test/test/test_link_bonding_rssconf.c | 7 --

[dpdk-dev] [PATCH 5/8] app: fix port id type

2017-10-13 Thread Zhiyong Yang
Fixes: f8244c6399d9 ("ethdev: increase port id range") Signed-off-by: Zhiyong Yang --- app/pdump/main.c | 2 +- app/test-pmd/cmdline.c | 52 ++ 2 files changed, 28 insertions(+), 26 deletions(-) diff --git a/app/pdump/main.c b

[dpdk-dev] [PATCH 4/8] net/mrvl: fix port id type

2017-10-13 Thread Zhiyong Yang
port id should be defined as uint16_t. Fixes: f8244c6399d9 ("ethdev: increase port id range") Signed-off-by: Zhiyong Yang --- drivers/net/mrvl/mrvl_qos.c | 2 +- drivers/net/mrvl/mrvl_qos.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/mrvl/mr

[dpdk-dev] [PATCH 3/8] net/fm10k: fix port id type

2017-10-13 Thread Zhiyong Yang
The variable "port" should be defined as uint16_t, fix it here. Fixes: f8244c6399d9 ("ethdev: increase port id range") Signed-off-by: Zhiyong Yang --- drivers/net/fm10k/fm10k_rxtx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/fm10k/fm

[dpdk-dev] [PATCH 2/8] net/i40e: fix port id type

2017-10-13 Thread Zhiyong Yang
Some functions applied were still developed on top of uint8_t port_id, however port_id has been increased range to uint16_t. The patch fixes the issue. Fixes: f8244c6399d9 ("ethdev: increase port id range") Signed-off-by: Zhiyong Yang --- drivers/net/i40e/i40e_ethdev.c | 2 +- driver

[dpdk-dev] [PATCH 1/8] net/bonding: fix port id type

2017-10-13 Thread Zhiyong Yang
Fixes: f8244c6399d9 ("ethdev: increase port id range") Signed-off-by: Zhiyong Yang --- drivers/net/bonding/rte_eth_bond_pmd.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_p

[dpdk-dev] [PATCH 0/8] fix port id type

2017-10-13 Thread Zhiyong Yang
Fix port id type and update related docs. Zhiyong Yang (8): net/bonding: fix port id type net/i40e: fix port id type net/fm10k: fix port id type net/mrvl: fix port id type app: fix port id type test: fix port id type examples: fix port id type doc: update port id type app/pdump

[dpdk-dev] [PATCH 6/6] app/testpmd: fix port id type

2017-10-12 Thread Zhiyong Yang
Fixes: f8244c6399d9 ("ethdev: increase port id range") Signed-off-by: Zhiyong Yang --- app/test-pmd/cmdline.c | 427 + app/test-pmd/config.c | 14 +- app/test-pmd/testpmd.c | 13 +- app/test-pmd/testpmd.h | 16 +- 4 files ch

[dpdk-dev] [PATCH 4/6] app/pdump: fix port id type

2017-10-12 Thread Zhiyong Yang
Increase port id range to 16 bits and remove the unnecessary cast. Fixes: f8244c6399d9 ("ethdev: increase port id range") Signed-off-by: Zhiyong Yang --- app/pdump/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/pdump/main.c b/app/pdump/main.c index

[dpdk-dev] [PATCH 5/6] app/proc_info: fix port id type

2017-10-12 Thread Zhiyong Yang
Fixes: f8244c6399d9 ("ethdev: increase port id range") Signed-off-by: Zhiyong Yang --- app/proc_info/main.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/proc_info/main.c b/app/proc_info/main.c index 12566e27d..64fbbd0f8 100644 --- a/app/proc_i

  1   2   3   >