As some users are still using xen as the hypervisor, I suggest to
continue support for xen in DPDK. And from 16.11, I will be the
maintainer of all xen-related files.
Signed-off-by: Jianfeng Tan
---
MAINTAINERS | 1 +
1 file changed, 1 insertion(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index
info by pci_uio_ioport_map().
Note: this will affect those applications who are using files under
/sys/pci/bus/devices/:xx:xx.x/uio/uioY/maps/ and
/sys/pci/bus/devices/:xx:xx.x/uio/uioY/portio/.
Signed-off-by: Jianfeng Tan
---
lib/librte_eal/linuxapp/eal/eal_pci.c | 4 -
lib
restriction as starting the instance.
Note: previously, some users are using isolated CPUs, which could
be excluded by default. Please add commands like taskset to use
those cores.
Test example:
$ taskset 0xc ./examples/helloworld/build/helloworld -m 1024
Signed-off-by: Jianfeng Tan
Acked
restriction as starting the instance.
Note: previously, some users are using isolated CPUs, which could
be excluded by default. Please add commands like taskset to use
those cores.
Test example:
$ taskset 0xc ./examples/helloworld/build/helloworld -m 1024
Signed-off-by: Jianfeng Tan
Acked
and report error when failing to
start virtio_user devices.
Fixes: ce2eabdd43ec ("net/virtio-user: add virtual device")
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio/virtio_user_ethdev.c | 23 +++
1 file changed, 19 insertions(+), 4 deletions(-)
diff --git a/drivers/
layer")
Reported-by: Zhihong Wang
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio/virtio_user/virtio_user_dev.c | 120 ++-
1 file changed, 72 insertions(+), 48 deletions(-)
diff --git a/drivers/net/virtio/virtio_user/virtio_user_dev.c
b/drivers/net/virtio/v
in the process of
initialization. So the fix here is to include similar logic in
virtio_user.
Fixes: 37a7eb2ae816 ("net/virtio-user: add device emulation layer")
Reported-by: Ning Li
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio/virtio_user/virtio_user_dev.c | 7 +++
1 file changed, 7
Patch 1: fix issue when using virtio_user with OVS-DPDK.
Patch 2: fix issue when using virtio_user with VPP.
Patch 3: fix issue when failing to start virtio_user devices.
Signed-off-by: Jianfeng Tan
Jianfeng Tan (3):
net/virtio_user: fix queue pair not enabled
net/virtio_user: fix wrong
get_psd_sum() is called. The fix is straightforward.
Move the bit setting before get_psd_sum() is called.
Fixes: a50245ede72a ("examples/tep_term: initialize VXLAN sample")
Signed-off-by: Jianfeng Tan
---
examples/tep_termination/vxlan.c | 9 ++---
1 file changed, 6 insertions(+), 3
Based on previous fix of offload on VXLAN using i40e, applications
need to set proper tunneling type on ol_flags so that i40e driver
can pass it to NIC.
Fixes: a50245ede72a ("examples/tep_term: initialize VXLAN sample")
Signed-off-by: Jianfeng Tan
---
examples/tep_termination/vxlan.c
This patch set depends on:
- http://dpdk.org/ml/archives/dev/2016-August/044924.html
Patch 1: fill tunneling type.
Patch 2: inner L4 checksum error.
Signed-off-by: Jianfeng Tan
Jianfeng Tan (2):
examples/tep_term: fix offload on VXLAN failure
examples/tep_term: fix inner L4 checksum
t;tso set _size _port" or the other way around.
Fixes: b51c47536a9e ("app/testpmd: support TSO in checksum forward engine")
Signed-off-by: Zhe Tao
Signed-off-by: Jianfeng Tan
---
app/test-pmd/cmdline.c | 42 --
ines the outer L2 header.
Also, we define TSO on each kind of tunneling type as a capabilities.
Now only i40e declares to support them.
Signed-off-by: Zhe Tao
Signed-off-by: Jianfeng Tan
---
drivers/net/i40e/i40e_ethdev.c | 6 ++-
drivers/net/i40e/i40e_rxtx.c
-off-by: Zhe Tao
Signed-off-by: Jianfeng Tan
---
lib/librte_mbuf/rte_mbuf.c | 4
lib/librte_mbuf/rte_mbuf.h | 17 -
2 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/lib/librte_mbuf/rte_mbuf.c b/lib/librte_mbuf/rte_mbuf.c
index 4846b89..4505abb 100644
--- a/lib
the comments
Signed-off-by: Zhe Tao
Signed-off-by: Jianfeng Tan
Jianfeng Tan (3):
mbuf: add Tx side tunneling type
net/i40e: add TSO support on tunneling packet
app/testpmd: fix Tx offload on tunneling packet
app/test-pmd/cmdline.c | 42 +---
app/test-pmd/csumonly.c
ice as per the docs.
This patch updates related strings in the docs and source code.
Fixes: cb6696d22023 ("drivers: update registration macro usage")
Reported-by: Tiwei Bie
Signed-off-by: Jianfeng Tan
---
doc/guides/rel_notes/release_16_07.rst | 2 +-
doc/guides/sample_app_ug
VM kernel virtio driver
go into big_packets path.
Fixes: 9fd72e3cbd29 ("examples/vhost: add virtio offload")
Reported-by: Qian Xu
Signed-off-by: Jianfeng Tan
---
v3: reword commit log.
v2: change the Fixes line to point to proper commit to fix.
examples/vhost/main.c | 2 ++
1 file c
of vhost example, to avoid VM kernel virtio driver
go into big_packets path.
Fixes: 9fd72e3cbd29 ("examples/vhost: add virtio offload")
Reported-by: Qian Xu
Signed-off-by: Jianfeng Tan
---
v2: change the Fixes line to point to proper commit to fix.
examples/vhost/main.c | 2 ++
1 file
of vhost example, to avoid VM kernel virtio driver
go into big_packets path.
Fixes: 859b480d5afd ("vhost: add guest offload setting")
Reported-by: Qian Xu
Signed-off-by: Jianfeng Tan
---
examples/vhost/main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/examples/vhost/main.c
if (!cvq && !cvq->vq) {
...
}
Coverity issue: 127480
Fixes: 01ad44fd374f ("net/virtio: split Rx/Tx queue")
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio/virtio_ethdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/v
("examples/vhost: import userspace vhost application")
Reported-by: Yulong Pei
Signed-off-by: Jianfeng Tan
---
examples/vhost/main.c | 20
1 file changed, 16 insertions(+), 4 deletions(-)
diff --git a/examples/vhost/main.c b/examples/vhost/main.c
index 3aff2c
evice")
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio/virtio_user/virtio_user_dev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/virtio/virtio_user/virtio_user_dev.c
b/drivers/net/virtio/virtio_user/virtio_user_dev.c
index 1b1e5bf..376c9cf 100644
--- a/d
The return value by rte_kvargs_parse is not free(d), which leads
to memory leak.
Coverity issue: 127482
Fixes: ce2eabdd43ec ("net/virtio-user: add virtual device")
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio/virtio_user_ethdev.c | 4 +++-
1 file changed, 3 insertions(+),
issue: 127484
Fixes: 6a84c37e3975 ("net/virtio-user: add vhost-user adapter layer")
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio/virtio_user/vhost_user.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/virtio/virtio_user/vhost_user.c
b/drivers/
3975 ("net/virtio-user: add vhost-user adapter layer")
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio/virtio_user/vhost_user.c | 3 +-
drivers/net/virtio/virtio_user_ethdev.c | 57 ++---
2 files changed, 45 insertions(+), 15 deletions(-)
diff --git
Patch 1: fix return value not checked, Coverity issue: 127344, 127478
Patch 2: fix string overflow, Coverity issue: 127484
Patch 3: fix resource leaks, Coverity issue: 127482
Patch 4: fix string unterminated, Coverity issue: 127476
Jianfeng Tan (4):
net/virtio-user: fix return value not checked
which needs _GNU_SOURCE defined on some old
systems.
Fixes: 37a7eb2ae816 ("net/virtio-user: add device emulation layer")
Signed-off-by: Jianfeng Tan
---
v2:
- Change the way to fix this issue.
drivers/net/virtio/virtio_user/virtio_user_dev.c | 4 ++--
1 file changed, 2 insertions(+), 2
: ce2eabdd43ec ("net/virtio-user: add virtual device")
Reported-by: Ferruh Yigit
Signed-off-by: Jianfeng Tan
---
config/common_base | 5 +
1 file changed, 5 insertions(+)
diff --git a/config/common_base b/config/common_base
index 5d9daf5..0368d59 100644
--- a/config/common_base
++
t;net/virtio-user: add device emulation layer")
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio/virtio_user/virtio_user_dev.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/virtio/virtio_user/virtio_user_dev.c
b/drivers/net/virtio/virtio_user/virtio_user_dev.c
ind
is simple, change the type of parameter req to enum
vhost_user_request.
Fixes: 6a84c37e3975 ("net/virtio-user: add vhost-user adapter layer")
Suggested-by: Stephen Hemminger
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio/virtio_user/vhost.h | 2 +-
drivers/net/virtio/v
is simple, aka make such conversion explicit.
Fixes: 6a84c37e3975 ("net/virtio-user: add vhost-user adapter layer")
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio/virtio_user/vhost_user.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/virtio/v
In virtio-user driver, when notify ctrl-queue, invoke API of
virtio-user device emulation to handle ctrl-q command.
Besides, multi-queue requires ctrl-queue and ctrl-queue will be
enabled automatically when multi-queue is specified.
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio
of VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET
to handle mq support. This patch provides an API, virtio_user_handle_cq(),
for driver to handle ctrl-queue messages.
Besides, multi-queue requires VIRTIO_NET_F_MQ and VIRTIO_NET_F_CTRL_VQ
are enabled when we do feature negotiation.
Signed-off-by: Jianfeng Tan
---
drivers
This patch mainly adds method in vhost user adapter to communicate
enable/disable queues messages with vhost user backend, aka,
VHOST_USER_SET_VRING_ENABLE.
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio/virtio_user/vhost.h | 5 +
drivers/net/virtio/virtio_user/vhost_user.c | 22
ile-prefix=testpmd \
--vdev=virtio-user0,mac=00:01:02:03:04:05,path=/tmp/sock0,queues=2 \
-- -i --rxq=2 --txq=2 --nb-cores=2 --txqflags=0xf01 --disable-hw-vlan
3. use below commands to see if all queues are working:
testpmd> show port xstats all
Jianfeng Tan (3):
virtio-user: add mq
by: Huawei Xie
Signed-off-by: Jianfeng Tan
Acked-by: Neil Horman
Acked-by: Yuanhan Liu
---
doc/guides/rel_notes/release_16_07.rst | 12 ++
doc/guides/sample_app_ug/vhost.rst | 17 +++
drivers/net/virtio/virtio_ethdev.c | 19 +--
drivers/net/virtio/virtio_ethdev.h | 2 +
d
vhost adapter | |
| -- |
--
|
|
|
--
| vhost backend |
--
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
Acked-by: Neil Horman
Acked-by: Yuanhan Liu
---
drivers/net/
ed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
Acked-by: Neil Horman
---
drivers/net/virtio/Makefile | 1 +
drivers/net/virtio/virtio_user/virtio_user_dev.c | 227 +++
drivers/net/virtio/virtio_user/virtio_user_dev.h | 62 +++
3 files changed, 290 inse
This patch is to move phys addr check from virtio_dev_queue_setup
to pci ops. To makt that happen, make sure virtio_ops.setup_queue
return the result if we pass through the check.
Signed-off-by: Jianfeng Tan
Signed-off-by: Huawei Xie
Acked-by: Yuanhan Liu
---
drivers/net/virtio
In virtio-user driver, when notify ctrl-queue, invoke API of
virtio-user device emulation to handle ctrl-q command.
Besides, multi-queue requires ctrl-queue and ctrl-queue will be
enabled automatically when multi-queue is specified.
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio
of VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET
to handle mq support. This patch provides an API, virtio_user_handle_cq(),
for driver to handle ctrl-queue messages.
Besides, multi-queue requires VIRTIO_NET_F_MQ and VIRTIO_NET_F_CTRL_VQ
are enabled when we do feature negotiation.
Signed-off-by: Jianfeng Tan
---
drivers
This patch mainly adds method in vhost user adapter to communicate
enable/disable queues messages with vhost user backend.
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio/virtio_user/vhost.h | 5 +
drivers/net/virtio/virtio_user/vhost_user.c | 21 +
2 files
Change to use virtio_net_hdr_mem instead of physical addr of memzone
when sending contrl queue commands. The virtio_net_hdr_mem has been
initialized to use virtual address under the case of virtio-user.
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio/virtio_ethdev.c | 6 +++---
1 file
--no-pci --file-prefix=testpmd \
--vdev=virtio-user0,mac=00:01:02:03:04:05,path=/tmp/sock0,queues=2 \
-- -i --rxq=2 --txq=2 --nb-cores=2 --txqflags=0xf01 --disable-hw-vlan
3. use below commands to see if all queues are working:
testpmd> show port xstats all
Jianfeng Tan (4):
vir
by: Huawei Xie
Signed-off-by: Jianfeng Tan
Acked-by: Neil Horman
---
doc/guides/rel_notes/release_16_07.rst | 12 ++
doc/guides/sample_app_ug/vhost.rst | 17 +++
drivers/net/virtio/virtio_ethdev.c | 19 +--
drivers/net/virtio/virtio_ethdev.h | 2 +
drivers/
vhost adapter | |
| -- |
--
|
|
|
--
| vhost backend |
--
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
Acked-by: Neil Horman
---
drivers/net/virtio/Ma
ed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
Acked-by: Neil Horman
---
drivers/net/virtio/Makefile | 1 +
drivers/net/virtio/virtio_user/virtio_user_dev.c | 227 +++
drivers/net/virtio/virtio_user/virtio_user_dev.h | 62 +++
3 files changed, 290 inse
uawei Xie
Signed-off-by: Jianfeng Tan
Acked-by: Neil Horman
---
config/common_linuxapp | 1 +
drivers/net/virtio/Makefile | 4 +
drivers/net/virtio/virtio_user/vhost.h | 141 ++
drivers/net/virtio/virtio_user/vhost_use
here.
It basically means:
a. when set_base_addr, VA address is used;
b. when preparing RX's descriptors, VA address is used;
c. when transmitting packets, VA is filled in TX's descriptors;
d. in TX and CQ's header, VA is used.
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
Acked
This patch is to move phys addr check from virtio_dev_queue_setup
to pci ops. To makt that happen, make sure virtio_ops.setup_queue
return the result if we pass through the check.
Signed-off-by: Jianfeng Tan
Signed-off-by: Huawei Xie
Acked-by: Yuanhan Liu
---
drivers/net/virtio
docker build -t dpdk-app-l2fwd .
d. Used with vhost-user
$: ./examples/vhost/build/vhost-switch -c 3 -n 4 \
--socket-mem 1024,1024 -- -p 0x1 --stats 1
$: docker run -i -t -v :/var/run/usvhost \
-v /dev/hugepages:/dev/hugepages \
dpdk-app-l2fwd l2fwd -c 0x4 -n 4 -m 1024
hat making sz_vq 32-byte aligned. Here we
make it cache line aligned for future optimization.
Fixes: a900472aedef ("virtio: split virtio Rx/Tx queue")
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio/virtio_ethdev.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
di
on these queues, segment fault happens.
Fixes: a900472aedef ("virtio: split virtio Rx/Tx queue")
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio/virtio_rxtx.c | 36
1 file changed, 20 insertions(+), 16 deletions(-)
diff --git a/drivers/net/virtio/virti
there are more than VHOST_MEMORY_MAX_NREGIONS(8)
hugepages.
- Root privilege is a must (mainly becase of sorting hugepages according
to physical address).
- Applications should not use file name like HUGEFILE_FMT ("%smap_%d").
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng
vhost adapter | |
| -- |
--
|
|
|
--
| vhost backend |
--
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
Acked-by: Neil Horman
---
drivers/net/virtio/Ma
ed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
Acked-by: Neil Horman
---
drivers/net/virtio/Makefile | 1 +
drivers/net/virtio/virtio_user/virtio_user_dev.c | 263 +++
drivers/net/virtio/virtio_user/virtio_user_dev.h | 64 ++
3 files changed, 328 inse
t backend |
--
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
Acked-by: Neil Horman
---
config/common_linuxapp| 1 +
drivers/net/virtio/Makefile | 6 +
drivers/net/virtio/virtio_user/vhost.c| 105 +++
drivers/net/virtio/vi
here.
It basically means:
a. when set_base_addr, VA address is used;
b. when preparing RX's descriptors, VA address is used;
c. when transmitting packets, VA is filled in TX's descriptors;
d. in TX and CQ's header, VA is used.
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
Acked
This patch is to move phys addr check from virtio_dev_queue_setup
to pci ops. To makt that happen, make sure virtio_ops.setup_queue
return the result if we pass through the check.
Signed-off-by: Jianfeng Tan
Signed-off-by: Huawei Xie
Acked-by: Yuanhan Liu
---
drivers/net/virtio
-privileged \
-v /dev/vhost-net:/dev/vhost-net \
-v /dev/net/tun:/dev/net/tun \
-v /dev/hugepages:/dev/hugepages \
dpdk-app-l2fwd l2fwd -c 0x4 -n 4 -m 1024 --no-pci \
--vdev=virtio-user0,path=/dev/vhost-net -- -p 0x1
By the way, it's not necessary to run in
there are more than VHOST_MEMORY_MAX_NREGIONS(8)
hugepages.
- Root privilege is a must (mainly becase of sorting hugepages according
to physical address).
- Applications should not use file name like HUGEFILE_FMT ("%smap_%d").
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng
vhost adapter | |
| -- |
--
|
|
|
--
| vhost backend |
--
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
Acked-by: Neil Horman
---
drivers/net/virtio/Ma
t backend |
--
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
Acked-by: Neil Horman
---
config/common_linuxapp| 3 +
drivers/net/virtio/Makefile | 6 +
drivers/net/virtio/virtio_user/vhost.c| 105 +++
drivers/net/virtio/vi
here.
It basically means:
a. when set_base_addr, VA address is used;
b. when preparing RX's descriptors, VA address is used;
c. when transmitting packets, VA is filled in TX's descriptors;
d. in TX and CQ's header, VA is used.
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
Acked
Abstract vring hdr desc init as an inline method.
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio/virtio_ethdev.c | 42 ++
1 file changed, 24 insertions(+), 18 deletions(-)
diff --git a/drivers/net/virtio/virtio_ethdev.c
b
This patch is to move phys addr check from virtio_dev_queue_setup
to pci ops. To makt that happen, make sure virtio_ops.setup_queue
return the result if we pass through the check.
Signed-off-by: Jianfeng Tan
Signed-off-by: Huawei Xie
Acked-by: Yuanhan Liu
---
drivers/net/virtio
t \
-v /dev/net/tun:/dev/net/tun \
-v /dev/hugepages:/dev/hugepages \
dpdk-app-l2fwd l2fwd -c 0x4 -n 4 -m 1024 --no-pci \
--vdev=virtio-user0,path=/dev/vhost-net -- -p 0x1
By the way, it's not necessary to run in a container.
Signed-off-by: Huawei Xie
Signed-off-by:
\
./examples/helloworld/build/helloworld -c 0x2 -n 4
Fixes: af75078fece ("first public release")
Signed-off-by: Jianfeng Tan
Acked-by: Neil Horman
---
v5:
- Make this method as default instead of using an option.
- When SIGBUS is triggered in the case of RTE_EAL_SINGLE_FILE_SEGMENTS,
j
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
---
doc/guides/rel_notes/release_16_07.rst | 4
1 file changed, 4 insertions(+)
diff --git a/doc/guides/rel_notes/release_16_07.rst
b/doc/guides/rel_notes/release_16_07.rst
index f6d543c..b1054b6 100644
--- a/doc/guides/rel_notes
there are more than VHOST_MEMORY_MAX_NREGIONS(8)
hugepages.
- Root privilege is a must (mainly becase of sorting hugepages according
to physical address).
- Applications should not use file name like HUGEFILE_FMT ("%smap_%d").
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng
vhost adapter | |
| -- |
--
|
|
|
--
| vhost backend |
--
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
Acked-by: Neil Horman
---
drivers/net/virtio/Ma
_dev.c, virtio_user_dev.h)
| || |
| | vhost adapter | |
| -- |
--
|
|
|
--
| vhost backend |
--
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
Acked-by
t backend |
--
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
Acked-by: Neil Horman
---
config/common_linuxapp| 3 +
drivers/net/virtio/Makefile | 6 +
drivers/net/virtio/virtio_user/vhost.c| 105 +++
drivers/net/virtio/vi
here.
It basically means:
a. when set_base_addr, VA address is used;
b. when preparing RX's descriptors, VA address is used;
c. when transmitting packets, VA is filled in TX's descriptors;
d. in TX and CQ's header, VA is used.
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
Acked
Abstract vring hdr desc init as an inline method.
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio/virtio_ethdev.c | 42 ++
1 file changed, 24 insertions(+), 18 deletions(-)
diff --git a/drivers/net/virtio/virtio_ethdev.c
b
This patch is to move phys addr check from virtio_dev_queue_setup
to pci ops. To makt that happen, make sure virtio_ops.setup_queue
return the result if we pass through the check.
Signed-off-by: Jianfeng Tan
Signed-off-by: Huawei Xie
Acked-by: Yuanhan Liu
---
drivers/net/virtio
f. Used with vhost-net
$: modprobe vhost
$: modprobe vhost-net
$: docker run -i -t --privileged \
-v /dev/vhost-net:/dev/vhost-net \
-v /dev/net/tun:/dev/net/tun \
-v /dev/hugepages:/dev/hugepages \
dpdk-app-l2fwd l2fwd -c 0x4 -n 4 -m 1024 --no-pci \
--vde
-subgroup
b. cgset -r hugetlb.1GB.limit_in_bytes=2147483648 test-subgroup
c. cgexec -g hugetlb:test-subgroup \
./examples/helloworld/build/helloworld -c 0x2 -n 4 --huge-trybest
Signed-off-by: Jianfeng Tan
Acked-by: Neil Horman
---
v4:
- Change map_all_hugepages to return unsigned
-subgroup
b. cgset -r hugetlb.1GB.limit_in_bytes=2147483648 test-subgroup
c. cgexec -g hugetlb:test-subgroup \
./examples/helloworld/build/helloworld -c 0x2 -n 4 --huge-trybest
Signed-off-by: Jianfeng Tan
Acked-by: Neil Horman
---
v3:
- Reword commit message to include it fixes
queues.
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio/virtio_user/virtio_user_pci.c | 89 +++-
1 file changed, 87 insertions(+), 2 deletions(-)
diff --git a/drivers/net/virtio/virtio_user/virtio_user_pci.c
b/drivers/net/virtio/virtio_user/virtio_user_pci.c
index 873e619
virtio_user_enable_queue_pair() for virtio-user
driver to enable/disable queues.
Note: Do not support multiple queue for vhost kernel backend.
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio/virtio_user/virtio_user_dev.c | 65
drivers/net/virtio/virtio_user/virtio_user_dev.h | 2
This patch mainly adds method in vhost user adapter to communicate
enable/disable queues messages with vhost user backend.
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio/virtio_user/vhost.h | 4
drivers/net/virtio/virtio_user/vhost_user.c | 21 +
2 files
=virtio-user0,mac=00:01:02:03:04:05,path=/tmp/sock0,queues=2 \
-- -i --rxq=2 --txq=2 --nb-cores=2 --txqflags=0xf01 --disable-hw-vlan
3. use below commands to see if all queues are working:
testpmd> show port xstats all
Jianfeng Tan (3):
virtio-user: add mq in vhost user adapter
virtio-u
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
Acked-By: Neil Horman
---
doc/guides/nics/overview.rst | 64 +-
doc/guides/rel_notes/release_16_07.rst | 4 +++
2 files changed, 36 insertions(+), 32 deletions(-)
diff --git a/doc/guides/nics
there are more than VHOST_MEMORY_MAX_NREGIONS(8)
hugepages.
- Root privilege is a must (mainly becase of sorting hugepages according
to physical address).
- Applications should not use file name like HUGEFILE_FMT ("%smap_%d").
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
Acke
vhost adapter | |
| -- |
--
|
|
|
--
| vhost backend |
--
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
Acked-By: Neil Horman
---
drivers/net/virtio/Ma
_dev.c, virtio_user_dev.h)
| || |
| | vhost adapter | |
| -- |
--
|
|
|
--
| vhost backend |
--
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
Acked-By
t backend |
--
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
Acked-By: Neil Horman
---
config/common_linuxapp| 3 +
drivers/net/virtio/Makefile | 6 +
drivers/net/virtio/virtio_pci.h | 1 +
drivers/net/virtio/virtio_use
preparing RX's descriptors, VA address is used;
c. when transmitting packets, VA is filled in TX's descriptors;
d. in TX and CQ's header, VA is used.
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
Acked-By: Neil Horman
---
drivers/net/virtio/virtio_ethdev.c | 11 ---
drivers
To make it reusable, here we abstract the initialization of vring
header into a method.
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
Acked-By: Neil Horman
---
drivers/net/virtio/virtio_ethdev.c | 22 --
drivers/net/virtio/virtqueue.h | 20
This patch is to move phys addr check from virtio_dev_queue_setup
to pci ops. To makt that happen, make sure virtio_ops.setup_queue
return the result if we pass through the check.
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
Acked-By: Neil Horman
---
drivers/net/virtio
st-net:/dev/vhost-net \
-v /dev/net/tun:/dev/net/tun \
-v /dev/hugepages:/dev/hugepages \
dpdk-app-l2fwd l2fwd -c 0x4 -n 4 -m 1024 --no-pci \
--vdev=virtio-user0,path=/dev/vhost-net -- -p 0x1
By the way, it's not necessary to run in a container.
Signed-off-by: Huawei Xie
net_hdr_mz, are freed when queue is released or setup fails.
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio/virtio_ethdev.c | 21 ++---
drivers/net/virtio/virtqueue.h | 2 ++
2 files changed, 16 insertions(+), 7 deletions(-)
diff --git a/drivers/net/virtio/virtio_ethdev.c
b/d
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio/virtio_ethdev.c | 47 +++---
1 file changed, 24 insertions(+), 23 deletions(-)
diff --git a/drivers/net/virtio/virtio_ethdev.c
b/drivers/net/virtio/virtio_ethdev.c
index 1fe90ae..b3f4158 100644
--- a/drivers/net
Patch 1: Do some cleanup in virtio_dev_queue_setup();
Patch 2: Fix the memory leak bug.
Jianfeng Tan (2):
v3: Fix a typo in the queue_type check.
v2: split cleanup and fix into two patches.
virtio: cleanup virtio_dev_queue_setup()
virtio: fix memory leak of virtqueue memzones
drivers
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio/virtio_ethdev.c | 47 +++---
1 file changed, 24 insertions(+), 23 deletions(-)
diff --git a/drivers/net/virtio/virtio_ethdev.c
b/drivers/net/virtio/virtio_ethdev.c
index 1fe90ae..0553b67 100644
--- a/drivers/net
Commit 1: Do some cleanup in virtio_dev_queue_setup();
Commit 2: Fix the memory leak bug.
Signed-off-by: Jianfeng Tan
Jianfeng Tan (2):
virtio: cleanup virtio_dev_queue_setup()
virtio: fix memory leak of virtqueue memzones
drivers/net/virtio/virtio_ethdev.c | 66
is currently shared by each virtio device.
How to fix: dev_flags is a device-specific variable to store this info.
Fixes: da978dfdc43 ("virtio: use port IO to get PCI resource")
Reported-by: David Marchand
Suggested-by: David Marchand
Signed-off-by: Jianfeng Tan
---
v2: RTE_PCI_DR
fails.
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio/virtio_ethdev.c | 69 --
drivers/net/virtio/virtio_ethdev.h | 2 +-
drivers/net/virtio/virtio_rxtx.c | 4 +--
3 files changed, 40 insertions(+), 35 deletions(-)
diff --git a/drivers/net/virtio
is currently shared by each virtio device.
How to fix: dev_flags is a device-specific variable to store this info.
Fixes: da978dfdc43 ("virtio: use port IO to get PCI resource")
Reported-by: David Marchand
Suggested-by: David Marchand
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio/virti
1 - 100 of 258 matches
Mail list logo