Adrien Mazarguil
0d440d081c
lib: fix missing includes in exported headers
...
Many exported headers rely on definitions found in rte_config.h without
including it, as shown by the following command:
grep -L '^#include <rte_config.h>' -- \
$(grep -Rl \
$(sed -n '/^#define \([^ ]\+\).*$/{s//\1/;H;};${x;s/\n//;s/\n/\\|/g;p;}' \
build/include/rte_config.h) \
-- build/include/)
We cannot assume external applications will include rte_config.h on their
own, neither directly nor through a -include parameter like DPDK does
internally.
This not only causes obvious compilation failures that can be reproduced
with check-includes.sh such as:
[...]/rte_memory.h:88:43: error: ‘RTE_CACHE_LINE_SIZE’ was not declared in
this scope
#define __rte_cache_aligned __rte_aligned(RTE_CACHE_LINE_SIZE)
^
It also results in less visible issues, for instance rte_hash_crc.h relying
on RTE_ARCH_X86_64's presence to provide dedicated inline functions.
This patch partially reverts the commit below and adds missing include
lines to the remaining files.
Fixes: f1a7a5c5f4
("remove include of generated config header")
Cc: stable@dpdk.org
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
2018-01-17 00:31:05 +01:00
Adrien Mazarguil
34c709f9b2
member: fix ISO C in exported header
...
Reported by check-includes.sh:
[...]/rte_member.h:107:40: error: ISO C does not permit named variadic
macros [-Werror=variadic-macros]
#define RTE_MEMBER_LOG(level, fmt, args...) \
^
Fixes: 857ed6c68c
("member: implement main API")
Cc: stable@dpdk.org
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
2018-01-17 00:27:51 +01:00
Adrien Mazarguil
2ca5355654
flow_classify: fix ISO C in exported header
...
Reported by check-includes.sh:
[...]/rte_flow_classify.h:85:47: error: ISO C does not permit named
variadic macros [-Werror=variadic-macros]
#define RTE_FLOW_CLASSIFY_LOG(level, fmt, args...) \
^
Fixes: be41ac2a33
("flow_classify: introduce flow classify library")
Cc: stable@dpdk.org
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
2018-01-17 00:27:19 +01:00
Adrien Mazarguil
12f9877574
net/i40e: fix ISO C in exported header
...
Reported by check-includes.sh:
[...]/rte_pmd_i40e.h:97:30: error: ISO C restricts enumerator values to
range of `int' [-Werror=pedantic]
RTE_PMD_I40E_PKG_INFO_MAX = 0xFFFFFFFF
^
Fixes: edeab742ed
("net/i40e: get information about DDP profile")
Cc: stable@dpdk.org
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
2018-01-17 00:24:56 +01:00
Adrien Mazarguil
8cf791231e
devtools: update check-includes exceptions
...
rte_eal_interrupts.h is an internal file not supposed to be included
directly by applications.
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
2018-01-17 00:24:45 +01:00
Ferruh Yigit
1fb6fee3af
net/pcap: convert license headers to SPDX tags
...
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
5d98dd0897
examples/skeleton: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
15c2e9521d
examples/server_node_efd: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
19f366cc05
examples/rxtx_callbacks: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
b960219b0d
examples/ptpclient: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
6833f919f5
examples/packet_ordering: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
e6bb307776
examples/flow_filtering: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Ori Kam <orika@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
e524240094
examples/flow_classify: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
98fc2007c1
examples/eventdev_pipeline: convert to new offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
008ee817df
examples/ethtool: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
f8f0012d45
examples/distributor: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
f21e3b8830
examples/vm_power_manager: convert to new offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: David Hunt <david.hunt@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
044c63fff0
examples/vmdq_dcb: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
8dd0befed4
examples/vmdq: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
cc22d8cae0
examples/vhost: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
524efb72d3
examples/tep_termination: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
3d487ea9ba
examples/quota_watermark: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
e2ef4628ee
examples/qos_sched: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
0b8fccaa7c
examples/qos_meter: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
373149c631
examples/performance-thread: convert to new offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
774bf47c24
examples/netmap_compat: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
f8c02ca878
examples/multi_process: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
973a864174
examples/load_balancer: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
312967c341
examples/link_status_interrupt: convert to new offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
6b85f708f4
examples/ipv4_multicast: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
6162b8b376
examples/ipsec-secgw: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Radu Nicolau <radu.nicolau@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
9df56e69ee
examples/ip_reassembly: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
eab919d001
examples/ip_pipeline: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
fdb9eff67f
examples/ip_fragmentation: convert to new offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
fc9ee41b70
examples/kni: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
8374e445fc
examples/exception_path: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
c1b7778886
examples/bond: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Reviewed-by: Radu Nicolau <radu.nicolau@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
43fc038262
examples/l3fwd-vf: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
40df1d7a69
examples/l3fwd-power: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: David Hunt <david.hunt@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
ba8c103d24
examples/l3fwd-acl: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
1ef9600b2d
examples/l3fwd: convert to ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
563e239b45
examples/l2fwd-keepalive: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
0cdee2357a
examples/l2fwd-jobstats: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
f2b713e3f5
examples/l2fwd-crypto: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Shahaf Shuler
75d7f266e9
examples/l2fwd: convert to new ethdev offloads API
...
Ethdev offloads API has changed since:
commit ce17eddefc
("ethdev: introduce Rx queue offloads API")
commit cba7f53b71
("ethdev: introduce Tx queue offloads API")
This commit support the new API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
Jiayu Hu
57b4eafa1d
vhost: support Explicit Congestion Notification
...
In virtio, Explicit Congestion Notification (ECN) includes two parts:
guest ECN and host ECN. Guest ECN means the frontend can handle TSO
packets which have ECN set, and host ECN means the backend can handle
TSO packets which have ECN set.
The ECN features are rarely used. However, virtio-net enables them by
default, and vhost-net support both. To make live migration from
vhost-net to vhost-user possible, this patch announces to support
guest and host ECN in vhost-user.
Signed-off-by: Jiayu Hu <jiayu.hu@intel.com>
Acked-by: Yuanhan Liu <yliu@fridaylinux.org>
2018-01-16 18:47:49 +01:00
Xiao Wang
c3ffdba0e8
vhost: use API to make RARP packet
...
Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2018-01-16 18:47:49 +01:00
Xiao Wang
45ae05df82
net: add a helper for making RARP packet
...
Suggested-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2018-01-16 18:47:49 +01:00
Xiao Wang
1978a9dc57
net/virtio: add packet injection method
...
This patch adds dev_pause, dev_resume and inject_pkts APIs to allow
driver to pause the worker threads and inject special packets into
Tx queue. The next patch will be based on this.
Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2018-01-16 18:47:49 +01:00
Xiao Wang
a2ffb87b1b
net/virtio: make control queue thread-safe
...
The virtio_send_command function may be called from app's configuration
routine, but also from an interrupt handler called when live migration
is done on the backup side. So this patch makes control queue
thread-safe first.
Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2018-01-16 18:47:49 +01:00