@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
@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/
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
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
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
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.
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
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
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
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
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
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
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
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
-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
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/
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(-)
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
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
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/
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
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
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
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
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/
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 --
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
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
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
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
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
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
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
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
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
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
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
/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
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
..@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/
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
.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_
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
---
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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/
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
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 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
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:
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
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
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
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
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
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
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
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
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
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
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
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):
("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
("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
("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
/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
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 +--
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
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
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
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
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
-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
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
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
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
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 --
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
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
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
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
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
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
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
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
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 - 100 of 214 matches
Mail list logo