.
Suggested-by: Bruce Richardson
Signed-off-by: Jianfeng Tan
Acked-by: Konstantin Ananyev
---
v2: exclude the commit of updating doc/guides/nics/overview.rst.
lib/librte_ether/rte_ethdev.c | 3 +--
lib/librte_ether/rte_ethdev.h | 9 ++---
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git
PMD_RX_LOG,
PMD_TX_LOG, and PMD_DRV_LOG, and removes some "\n" when using these
macros.
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio/virtio_ethdev.c | 2 +-
drivers/net/virtio/virtio_logs.h | 6 +++---
drivers/net/virtio/virtio_rxtx.c | 12 ++--
3 files changed,
/dev/net/tun:/dev/net/tun \
-v /dev/hugepages:/dev/hugepages \
dpdk-app-l2fwd l2fwd -c 0x4 -n 4 -m 1024 --no-pci \
--vdev=eth_cvio0,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: Jianfeng Tan
Acked-B
rectly talk with backend through the vhost
file. Depending on the type of vhost file,
- vhost-user is used if the given path points to a unix socket;
- vhost-net is used if the given path points to a char device.
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
Acked-By: Neil
)
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
Acked-By: Neil Horman
---
doc/guides/nics/ov
cause inside virtqueue_enqueue_xmit(), the flag of
desc has been updated inside the do {} while (); and after the loop, all descs
could have run out, so idx is VQ_RING_DESC_CHAIN_END (32768), use this idx to
reference the start_dp array will lead to segment fault.
Signed-off-by: Jianfeng Tan
---
ult.)
Fixes: dd856dfcb9e ("virtio: use any layout on Tx")
Signed-off-by: Jianfeng Tan
---
v2: refine the commit message.
drivers/net/virtio/virtio_rxtx.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/net/virtio/virtio_rxtx.c b/drivers/net/virtio/virtio_rxtx.c
index e
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
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
---
v2: RTE_PCI_DR
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
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
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..b3f4158 100644
--- a/drivers/net
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
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
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
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
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
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
_dev.c, virtio_user_dev.h)
| || |
| | vhost adapter | |
| -- |
--
|
|
|
--
| vhost backend |
--
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
Acked-By
vhost adapter | |
| -- |
--
|
|
|
--
| vhost backend |
--
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
Acked-By: Neil Horman
---
drivers/net/virtio/Ma
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
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
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
-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
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
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 --
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
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
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
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
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
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
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/
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
1
By the way, it's not necessary to run in a container.
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
Jianfeng Tan (5):
mem: add --single-file to create single mem-backed file
mem: add API to obtain memory-backed file info
virtio/vdev: add embeded device emulation
virtio/vd
instead of file-backed way to create memory.
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
---
lib/librte_eal/common/eal_common_options.c | 17 ++
lib/librte_eal/common/eal_internal_cfg.h | 1 +
lib/librte_eal/common/eal_options.h| 2 ++
lib/librte_eal/linuxapp/eal/eal.c
A new API named rte_eal_get_backfile_info() and a new data
struct back_file is added to obstain information of memory-
backed file info.
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
---
lib/librte_eal/common/include/rte_memory.h | 16
lib/librte_eal/linuxapp/eal
if the given path
points to a char device.
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
---
config/common_linuxapp | 5 +
drivers/net/virtio/Makefile | 4 +
drivers/net/virtio/vhost.h | 194 +
drivers/net/virtio/vhost_embedded.c | 809
Xie
Signed-off-by: Jianfeng Tan
---
drivers/net/virtio/virtio_ethdev.c | 329 +---
drivers/net/virtio/virtio_rxtx.c| 6 +-
drivers/net/virtio/virtio_rxtx_simple.c | 13 +-
drivers/net/virtio/virtqueue.h | 15 +-
4 files changed, 282
Signed-off-by: Huawei Xie
Signed-off-by: Jianfeng Tan
---
doc/guides/rel_notes/release_2_3.rst | 4
1 file changed, 4 insertions(+)
diff --git a/doc/guides/rel_notes/release_2_3.rst
b/doc/guides/rel_notes/release_2_3.rst
index 7945694..1e7d51d 100644
--- a/doc/guides/rel_notes
buf mempool cache.
Signed-off-by: Jianfeng Tan
Reported-by: Qian Xu
---
doc/guides/rel_notes/release_16_04.rst | 5 +
examples/vhost/main.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/doc/guides/rel_notes/release_16_04.rst
b/doc/guides/rel_no
.
Patch 2: add an option in l3fwd.
Patch 3: enable vector pmd in i40e by default.
Signed-off-by: Jianfeng Tan
Acked-by: Konstantin Ananyev
Jianfeng Tan (3):
ethdev: refine API to query supported packet types
examples/l3fwd: fix using packet type blindly
config: enable vector driver by de
Return 0 instead of -ENOTSUP for those which do not fill any packet types,
with some note and doc updated.
Signed-off-by: Jianfeng Tan
Acked-by: Konstantin Ananyev
---
doc/guides/nics/overview.rst | 2 +-
lib/librte_ether/rte_ethdev.c | 3 +--
lib/librte_ether/rte_ethdev.h | 9 ++---
3
supported by the devices. Currently we can:
a. remove this requirements, or
b. wait for virtio front end (pmd) to support it.
Signed-off-by: Jianfeng Tan
Acked-by: Konstantin Ananyev
---
doc/guides/rel_notes/release_16_04.rst | 9 +++
doc/guides/sample_app_ug/l3_forward.rst | 6 +-
Previously, vector driver is not the first (default) choice for i40e,
as it cannot fill packet type info for l3fwd to work well. Now there
is an option for l3fwd to analysis packet type softly. So enable it
by default.
Signed-off-by: Jianfeng Tan
Acked-by: Konstantin Ananyev
---
config
patch 0: return 0 instead of -ENOTSUP.
patch 1: update doc/guides/nics/overview.rst.
Suggested-by: Bruce Richardson
Signed-off-by: Jianfeng Tan
Jianfeng Tan (2):
ethdev: refine new API to query supported ptypes
doc: update which PMDs can parse packet type
doc/guides/nics/overview.rst
.
Suggested-by: Bruce Richardson
Signed-off-by: Jianfeng Tan
---
lib/librte_ether/rte_ethdev.c | 3 +--
lib/librte_ether/rte_ethdev.h | 9 ++---
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c
index a328027..1ee79d2 100644
Signed-off-by: Jianfeng Tan
---
doc/guides/nics/overview.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/guides/nics/overview.rst b/doc/guides/nics/overview.rst
index 542479a..e7504da 100644
--- a/doc/guides/nics/overview.rst
+++ b/doc/guides/nics/overview.rst
=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
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_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
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
-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
-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
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
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
201 - 258 of 258 matches
Mail list logo