xgbe_osdep.h file
* Fixng an issue of hash calculation of flow director
* Changing Copyright date of e1000_osdep.c and e1000_osdep.h files
Signed-off-by: Jijiang Liu
jijiangl (3):
Upgrade NIC shared code in ixgbe & e1000 directories
Fix an issue of hash calculation of flow direct
Signed-off-by: Jijiang Liu
---
lib/librte_pmd_ixgbe/ixgbe_fdir.c |5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/lib/librte_pmd_ixgbe/ixgbe_fdir.c
b/lib/librte_pmd_ixgbe/ixgbe_fdir.c
index 0d91ff9..54ebf73 100644
--- a/lib/librte_pmd_ixgbe/ixgbe_fdir.c
+++ b/lib
Signed-off-by: Jijiang Liu
---
lib/librte_eal/common/include/rte_pci_dev_ids.h |8 -
lib/librte_pmd_e1000/e1000/README |2 +-
lib/librte_pmd_e1000/e1000/e1000_80003es2lan.c | 44 +-
lib/librte_pmd_e1000/e1000/e1000_80003es2lan.h |2 +-
lib/librte_pmd_e1000/e1000
Signed-off-by: Jijiang Liu
---
lib/librte_pmd_e1000/e1000/e1000_osdep.c |2 +-
lib/librte_pmd_e1000/e1000/e1000_osdep.h |2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/librte_pmd_e1000/e1000/e1000_osdep.c
b/lib/librte_pmd_e1000/e1000/e1000_osdep.c
index
first, if it
failed, and request memory size of 2M once. The main reasons we did these
changes as follows:
First, to reduce the impact of inceasing in memory fragment after system run a
long time.
Second, to reduce number of memory segment
Signed-off-by: jijiang Liu
---
.../eal/include/exec-env
size of 2M once.
The main reasons we do these changes as follows:
First, to reduce the impact of inceasing in memory fragment after system run a
long time.
Second, to reduce number of memory segment
Signed-off-by: Jijiang Liu
---
.../eal/include/exec-env/rte_dom0_common.h |7
There is a compilation error using latest NIC share codes when
RTE_NIC_BYPASS=y,
the root cause is that the setup_link API have already changed in the share
codes, so change ixgbe_setup_mac_link_multispeed_fixed_fiber()
for eliminating the compilation error.
Signed-off-by: jijiangl
Tested-by:
The patch set supports VxLAN on fortville,and based on current mbuf structure,
when the new mbuf structure done, there will be minor changes later.
It includes:
- Support VxLAN packet filter by configuring UDP port, and add tunneling
UDP APIs.
- Support VxLAN cloud filters: It is used to use
VxLAN UDP port configuration on i40e, it includes
- VxLAN UDP port initialization
- Add VxLAN UDP port API
Signed-off-by: jijiangl
Acked-by: Helin Zhang
Acked-by: Jingjing Wu
Acked-by: Jing Chen
---
lib/librte_ether/rte_ethdev.c | 63
lib/librte_ether/rte_ethdev.h
Add commands to test receive vxlan packet identification, which include
- use command to add/delete VxLAN UDP port.
- use rxonly mode to receive VxLAN packet.
Signed-off-by: jijiangl
Acked-by: Helin Zhang
Acked-by: Jingjing Wu
Acked-by: Jing Chen
---
app/test-pmd/cmdline.c| 78 +++
Add commands to test VxLAN cloud filter API.
Signed-off-by: jijiangl
Acked-by: Helin Zhang
Acked-by: Jingjing Wu
Acked-by: Jing Chen
---
app/test-pmd/cmdline.c | 142
1 files changed, 142 insertions(+), 0 deletions(-)
diff --git a/app/test-pm
Support VxLAN TX check offload, which include outer and inner L3(IP),
inner L4(UDP,TCP and SCTP).
Signed-off-by: jijiangl
Acked-by: Helin Zhang
Acked-by: Jingjing Wu
Acked-by: Jing Chen
---
lib/librte_mbuf/rte_mbuf.h |4 +++
lib/librte_pmd_i40e/i40e_rxtx.c | 58
Add test cases in testpmd to test VxLAN Tx Checksum offlad, which include IP4
and IPV6 case,
and also include inner L3 and L4 test cases.
Signed-off-by: jijiangl
Acked-by: Helin Zhang
Acked-by: Jingjing Wu
Acked-by: Jing Chen
---
app/test-pmd/config.c |6 +-
app/test-pmd/csumon
Support VxLAN cloud filters,which is used to use MAC, VLAN to point
to a queue. The filter types supported include below:
1. Inner MAC and Inner VLAN ID
2. Inner MAC address and inner VLAN ID, tenned ID.
3. Inner MAC and tenant ID
4. Inner MAC address
5. Outer MAC address, tenant
VxLAN packet filters, which use MAC and VLAN to point
to a queue. The filter types supported are listed below:
1. Inner MAC and Inner VLAN ID
2. Inner MAC address, inner VLAN ID and tenant ID.
3. Inner MAC and tenant ID
4. Inner MAC address
5. Outer MAC address, tenant ID and inne
VxLAN UDP port configuration on i40e, which include
- VxLAN UDP port initialization
- add APIs to configure VxLAN UDP port
Signed-off-by: jijiangl
Acked-by: Helin Zhang
Acked-by: Jingjing Wu
Acked-by: Jing Chen
---
lib/librte_ether/rte_ethdev.c | 63
lib/librte_ether/
The implementation of VxLAN packet filter in librte_pmd_i40e.
Signed-off-by: jijiangl
Acked-by: Helin Zhang
Acked-by: Jingjing Wu
Acked-by: Jing Chen
---
lib/librte_pmd_i40e/i40e_ethdev.c | 112 +
1 files changed, 112 insertions(+), 0 deletions(-)
diff -
Support VxLAN Tx checksum offload, which include
- outer L3(IP) checksum offload
- inner L3(IP) checksum offload
- inner L4(UDP, TCP and SCTP) checksum offload
Signed-off-by: jijiangl
---
lib/librte_mbuf/rte_mbuf.h |4 +++
lib/librte_pmd_i40e/i40e_rxtx.c | 58 ++
The patch set supports VxLAN on Fortville based on current mbuf structure. When
Bruce's new mbuf structure is done, there will be minor changes later.
It includes:
- Support VxLAN packet identification by configuring tunneling UDP port.
- Support VxLAN packet filters. It uses MAC and VLAN to p
Add commands to test VxLAN packet identification, which include
- use commands to add/delete VxLAN UDP port.
- use rxonly mode to check VxLAN packet.
Signed-off-by: jijiangl
Acked-by: Helin Zhang
Acked-by: Jingjing Wu
Acked-by: Jing Chen
---
app/test-pmd/cmdline.c| 78 +++
Add tunnel_filter command in testpmd to test VxLAN packet filter API.
Signed-off-by: jijiangl
Acked-by: Helin Zhang
Acked-by: Jingjing Wu
Acked-by: Jing Chen
---
app/test-pmd/cmdline.c | 149 +++-
1 files changed, 148 insertions(+), 1 deletions(-)
Add test cases in testpmd to test VxLAN Tx Checksum offload, which include
- IPv4 tunnel and IPv6 tunnel s
- outer L3, inner L3 and L4 checksum offload for Tx side.
Signed-off-by: jijiangl
Acked-by: Helin Zhang
Acked-by: Jingjing Wu
Acked-by: Jing Chen
---
app/test-pmd/config.c |6 +
hes.
remove l4_tun_len from mbuf structure.
add PKT_TX_OUTER_IPV4 to indicate no IP checksum offload requirement for
tunneling packet.
change i40e PMD and csum engine due to above changes.
Jijiang Liu (3):
Redefine PKT_TX_IPV4, PKT_TX_IPV6 and PKT_TX_VLAN_PKT;
Replace
but it's an IPv4
packet.
Signed-off-by: Jijiang Liu
---
lib/librte_mbuf/rte_mbuf.h | 10 +-
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h
index 2e5fce5..cbadf8e 100644
--- a/lib/librte_mbuf/rte_mbuf.h
+++
PMD due to
these changes.
Signed-off-by: Jijiang Liu
---
app/test-pmd/csumonly.c |9 +++--
lib/librte_mbuf/rte_mbuf.c |7 ++-
lib/librte_mbuf/rte_mbuf.h | 11 ++-
lib/librte_pmd_i40e/i40e_rxtx.c |6 +++---
4 files changed, 26 insertions(+), 7
Replace the inner_l2_len and the inner_l3_len field with the outer_l2_len and
outer_l3_len field, and rework csum forward engine and i40e PMD due to these
changes.
Signed-off-by: Jijiang Liu
---
app/test-pmd/csumonly.c | 60 +-
lib/librte_mbuf
but it's an IPv4
packet.
Signed-off-by: Jijiang Liu
---
lib/librte_mbuf/rte_mbuf.h | 10 +-
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h
index 2e5fce5..cbadf8e 100644
--- a/lib/librte_mbuf/rte_mbuf.h
+++
Replace the inner_l2_len and the inner_l3_len field with the outer_l2_len and
outer_l3_len field, and rework csum forward engine and i40e PMD due to these
changes.
Signed-off-by: Jijiang Liu
---
app/test-pmd/csumonly.c | 58 +--
lib/librte_mbuf
rder to avoid setting PKT_TX_OUTER_IPV4 flags for the case when user didn't
enable TESTPMD_TX_OFFLOAD_VXLAN_CKSUM
Jijiang Liu (3):
Redefine PKT_TX_IPV4, PKT_TX_IPV6 and PKT_TX_VLAN_PKT;
Replace PKT_TX_VXLAN_CKSUM with PKT_TX_UDP_TUNNEL_PKT, and add 3 TX flags,
which are PKT_TX_OUTER_IP
PMD due to
these changes.
Signed-off-by: Jijiang Liu
---
app/test-pmd/csumonly.c |9 +++--
lib/librte_mbuf/rte_mbuf.c |7 ++-
lib/librte_mbuf/rte_mbuf.h | 11 ++-
lib/librte_pmd_i40e/i40e_rxtx.c |6 +++---
4 files changed, 26 insertions(+), 7
TESTPMD_TX_OFFLOAD_TUNNEL_CKSUM flag and add the
TESTPMD_TX_OFFLOAD_OUTER_IP_CKSUM flagin test-pmd application.
Jijiang Liu (3):
add outer IP offload capability in librte_ether.
add outer IP checksum capability in i40e PMD
testpmd command lines of the tx_checksum and csum forwarding
If the flag is set in a PMD, which means the NIC(s) support TX checksum offload
of tunneling packet.
Signed-off-by: Jijiang Liu
---
lib/librte_ether/rte_ethdev.h |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether
The DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM flag is added in i40e capability set, which
means the i40e supports TX checksum offload of tunneling packet.
Signed-off-by: Jijiang Liu
---
lib/librte_pmd_i40e/i40e_ethdev.c |3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/lib
hw|sw) (port-id)" command
3. remove the "vxlan" option from the "tx_checksum set(ip|udp|tcp|sctp|vxlan)
(hw|sw) (port-id)" command
Moreover, replace the TESTPMD_TX_OFFLOAD_VXLAN_CKSUM flag with
TESTPMD_TX_OFFLOAD_TUNNEL_CKSUM flag, and add the
TESTPMD_TX_OFFLOAD_OUTER_IP
UM and TESTPMD_TX_OFFLOAD_NON_TUNNEL_CKSUM flag
in test-pmd application.
v2 change:
redefine the 'none' behaviour for "tx_checksum set tunnel (hw|sw|none)
(port-id)" command.
Jijiang Liu (3):
add outer IP offload capability in librte_ether.
add outer IP checksum cap
If the flag is set in a PMD, which means the NIC(s) support TX checksum offload
of tunneling packet.
Signed-off-by: Jijiang Liu
---
lib/librte_ether/rte_ethdev.h |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether
e
TESTPMD_TX_OFFLOAD_OUTER_IP_CKSUM and TESTPMD_TX_OFFLOAD_NON_TUNNEL_CKSUM flag.
Signed-off-by: Jijiang Liu
---
app/test-pmd/cmdline.c | 209 ---
app/test-pmd/csumonly.c | 38 ++---
app/test-pmd/testpmd.h | 14 +++-
3 files changed, 234 insertions(+), 27 deletions(-
The DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM flag is added in i40e capability set, which
means the i40e supports TX checksum offload of tunneling packet.
Signed-off-by: Jijiang Liu
---
lib/librte_pmd_i40e/i40e_ethdev.c |3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/lib
UM and TESTPMD_TX_OFFLOAD_NON_TUNNEL_CKSUM flag
in test-pmd application.
v2 change:
redefine the 'none' behaviour for "tx_checksum set tunnel (hw|sw|none)
(port-id)" command.
v3 change:
typo correction in cmdline help
Jijiang Liu (3):
add outer IP offload capability in
If the flag is set in a PMD, which means the NIC(s) support TX checksum offload
of tunneling packet.
Signed-off-by: Jijiang Liu
---
lib/librte_ether/rte_ethdev.h |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether
The DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM flag is added in i40e capability set, which
means the i40e supports TX checksum offload of tunneling packet.
Signed-off-by: Jijiang Liu
---
lib/librte_pmd_i40e/i40e_ethdev.c |3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/lib
e
TESTPMD_TX_OFFLOAD_OUTER_IP_CKSUM and TESTPMD_TX_OFFLOAD_NON_TUNNEL_CKSUM flag.
Signed-off-by: Jijiang Liu
---
app/test-pmd/cmdline.c | 209 ---
app/test-pmd/csumonly.c | 38 ++---
app/test-pmd/testpmd.h | 14 +++-
3 files changed, 234 insertions(+), 27 deletions(-
Since Linux kernel version 3.13.0, the xen_create/destroy_contiguous_region()
API has been changed,
and the first parameter is physical address in the API.
Signed-off-by: Jijiang Liu
Acked-by: Huawei Xie
Tested-by: Heng Ding
---
lib/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.c | 24
The unit of allocated_size is MB,so the change below is made. Otherwise, it
will fail to free memory when
available memory is not enough.
Signed-off-by: Jijiang Liu
Acked-by: Huawei Xie
Tested-by: Heng Ding
---
lib/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.c |2 +-
1 files changed, 1
tested in the sample, but other types of
NICs will also be supported if they are able to support tunneling packet filter.
Jijiang Liu (10):
create VXLAN sample framework using virtio device management function
add basic VXLAN structures
addthe pluggable structures
implement VXLAN pa
This sample uses the basic virtio devices management function from the vHost
example, which includes virtio device creation, destroying and maintenance.
Signed-off-by: Jijiang Liu
---
examples/Makefile |1 +
examples/tep_termination/Makefile | 55 ++
examples
Some basic VXLAN definations are added in this file, which includes VXLAN port
information and VXLAN device structures.
Signed-off-by: Jijiang Liu
Signed-off-by: Thomas Long
---
examples/tep_termination/main.c |1 +
examples/tep_termination/vxlan.h | 60
; tunnel parameter processing
Signed-off-by: Jijiang Liu
Signed-off-by: Thomas Long
---
examples/tep_termination/main.c|1 +
examples/tep_termination/vxlan_setup.h | 78
2 files changed, 79 insertions(+), 0 deletions(-)
create mode 100644 exampl
Implement the following functions:
1> VXLAN port configuration
2> VXLAN tunnel setup
3> VXLAN tunnel destroying
4> VXLAN packet processing for Rx side
5> VXLAN packet processing for Tx side
Signed-off-by: Jijiang Liu
Signed-off-by: Thomas Long
---
examples/tep_termi
The port number of UDP tunneling packet is configurable, which has 16 entries
in total for i40e.
Signed-off-by: Jijiang Liu
---
examples/tep_termination/main.c| 18 +-
examples/tep_termination/vxlan_setup.c | 13 -
2 files changed, 29 insertions(+), 2
The follwoing filter types are supported for VXLAN,
1> Inner MAC&VLAN and tenent ID
2> Inner MAC and tenent ID, and Outer MAC
3> Inner MAC and tenent ID
Signed-off-by: Jijiang Liu
---
examples/tep_termination/main.c| 20
examples/tep_termination/vxlan_s
For VXLAN packet, the inner Tx checksum offload means inner IPv4 and inner
L4(TCP/UDP/SCTP).
Signed-off-by: Jijiang Liu
---
examples/tep_termination/main.c | 17
examples/tep_termination/vxlan.c | 80 ++
2 files changed, 97 insertions(+), 0
If the 'tso-segsz' is not 0, which means TSO offload is enabled.
Signed-off-by: Jijiang Liu
---
examples/tep_termination/main.c| 17 +
examples/tep_termination/vxlan.c |6 ++
examples/tep_termination/vxlan.h |1 +
examples/tep_t
The two flags are enabled by default, but sometimes we want to know the
performance influence of the encapsulation and decapsulation operations, and
I think we should add the two options.
Signed-off-by: Jijiang Liu
---
examples/tep_termination/main.c| 36
The number of packets with bad RX IP and L4 checksum in inner header is
recorded.
Signed-off-by: Jijiang Liu
---
examples/tep_termination/main.c| 10 +-
examples/tep_termination/main.h|4
examples/tep_termination/vxlan_setup.c |8
3 files changed
To get device VMDQ info when only i40e VMDQ feature is enabled.
Signed-off-by: Jijiang Liu
---
lib/librte_pmd_i40e/i40e_ethdev.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/librte_pmd_i40e/i40e_ethdev.c
b/lib/librte_pmd_i40e/i40e_ethdev.c
index 96700e4
The patch set supports VxLAN on Fortville based on current mbuf structure. When
Bruce's new mbuf structure is done, there will be minor changes later.
It includes:
- Support VxLAN packet identification by configuring tunneling UDP port.
- Support VxLAN packet filters. It uses MAC and VLAN to p
Add data structures and APIs in librte_ether for supporting tunneling UDP port
configuration on i40e,
Currently, only VxLAN is implemented, which include
- VxLAN UDP port initialization
- Add APIs to configure VxLAN UDP port
Signed-off-by: Jijiang Liu
Acked-by: Helin Zhang
Acked-by
Support tunneling UDP port configuration on i40e in librte_pmd_i40e.
Currently, only VxLAN is implemented, which include
- VxLAN UDP port initialization
- Implement the APIs to configure VxLAN UDP port in librte_pmd_i40e.
Signed-off-by: Jijiang Liu
Acked-by: Helin Zhang
Acked-by: Jingjing
Add commands to test VxLAN packet identification, which include
- use commands to add/delete VxLAN UDP port.
- use rxonly mode to receive VxLAN packet.
Signed-off-by: Jijiang Liu
Acked-by: Helin Zhang
Acked-by: Jingjing Wu
Acked-by: Jing Chen
---
app/test-pmd/cmdline.c| 78
Introduce a new filter framewok in librte_ether. As to the implemetation
discussion, please refer to
http://dpdk.org/ml/archives/dev/2014-September/005179.html, and VxLAN tunnel
filter implementation is based on
it.
Signed-off-by: Jijiang Liu
Acked-by: Helin Zhang
Acked-by: Jingjing Wu
Add tunnel_filter command in testpmd to test VxLAN packet filter API.
Signed-off-by: Jijiang Liu
Acked-by: Helin Zhang
Acked-by: Jingjing Wu
Acked-by: Jing Chen
---
app/test-pmd/cmdline.c | 153 +++-
1 files changed, 152 insertions(+), 1
Support VxLAN Tx checksum offload, which include
- outer L3(IP) checksum offload
- inner L3(IP) checksum offload
- inner L4(UDP, TCP and SCTP) checksum offload
Signed-off-by: Jijiang Liu
Acked-by: Helin Zhang
Acked-by: Jingjing Wu
Acked-by: Jing Chen
---
lib/librte_mbuf/rte_mbuf.h
The implementation of VxLAN tunnel filter in librte_pmd_i40e, which include
- add the i40e_dev_filter_ctrl() function.
- add the i40e_dev_tunnel_filter_set() function.
Signed-off-by: Jijiang Liu
Acked-by: Helin Zhang
Acked-by: Jingjing Wu
Acked-by: Jing Chen
---
lib/librte_pmd_i40e
Add test cases in testpmd to test VxLAN Tx Checksum offload, which include
- IPv4 tunnel and IPv6 tunnel
- outer L3, inner L3 and L4 checksum offload for Tx side.
Signed-off-by: Jijiang Liu
Acked-by: Helin Zhang
Acked-by: Jingjing Wu
Acked-by: Jing Chen
---
app/test-pmd/config.c |6
Introduce a new filter framewok in librte_ether. As to the implemetation
discussion, please refer to
http://dpdk.org/ml/archives/dev/2014-September/005179.html, and VF MACVLAN
filter implementation is based on it.
Signed-off-by: Jijiang Liu
Acked-by: Helin Zhang
Acked-by: Jingjing Wu
Acked
This patch mainly optimizes i40e_add_macvlan_filters() and
i40e_remove_macvlan_filters() functions in order that
we can provide a flexible configuration interface. And another relevant MACVLAN
filter codes are changed based on new data structures
Signed-off-by: Jijiang Liu
Acked-by: Helin
Add a test command in testpmd to test VF MACVLAN filter feature.
Signed-off-by: Jijiang Liu
Acked-by: Helin Zhang
Acked-by: Jingjing Wu
Acked-by: Changchun Ouyang
---
app/test-pmd/cmdline.c | 115 ++-
1 files changed, 112 insertions(+), 3
Add i40e_vf_mac_filter_set() function to support perfect match and hash match
filter of MAC address and VLAN ID for a VF.
Signed-off-by: Jijiang Liu
Acked-by: Helin Zhang
Acked-by: Jingjing Wu
Acked-by: Changchun Ouyang
---
lib/librte_pmd_i40e/i40e_ethdev.c | 117
The patch set enhances MACVLAN filter configurability and supports perfect and
hash match filter of unicast
and multicast MAC address for VF on Fortville.
It mainly includes:
- Use new filter mechanism discussed at
http://dpdk.org/ml/archives/dev/2014-September/005179.html.
- Enhance MACVLAN
Add new data definations for MACVLAN filter enhancement in rte_eth_ctrl.h file.
Signed-off-by: Jijiang Liu
Acked-by: Helin Zhang
Acked-by: Jingjing Wu
Acked-by: Changchun Ouyang
---
lib/librte_ether/rte_eth_ctrl.h | 25 +
1 files changed, 25 insertions(+), 0
Support tunneling UDP port configuration on i40e in librte_pmd_i40e.
Currently, only VxLAN is implemented, which include
- VxLAN UDP port initialization
- Implement the APIs to configure VxLAN UDP port in librte_pmd_i40e.
Signed-off-by: Jijiang Liu
Acked-by: Helin Zhang
Acked-by: Jingjing
Introduce a new filter framewok in librte_ether. As to the implemetation
discussion, please refer to
http://dpdk.org/ml/archives/dev/2014-September/005179.html, and VxLAN tunnel
filter implementation is based on
it.
Signed-off-by: Jijiang Liu
Acked-by: Helin Zhang
Acked-by: Jingjing Wu
Add data structures and APIs in librte_ether for supporting tunneling UDP port
configuration on i40e,
Currently, only VxLAN is implemented, which include
- VxLAN UDP port initialization
- Add APIs to configure VxLAN UDP port
Signed-off-by: Jijiang Liu
Acked-by: Helin Zhang
Acked-by
Support VxLAN Tx checksum offload, which include
- outer L3(IP) checksum offload
- inner L3(IP) checksum offload
- inner L4(UDP, TCP and SCTP) checksum offload
Signed-off-by: Jijiang Liu
Acked-by: Helin Zhang
Acked-by: Jingjing Wu
Acked-by: Jing Chen
---
lib/librte_mbuf/rte_mbuf.h
Add tunnel_filter command in testpmd to test VxLAN packet filter API.
Signed-off-by: Jijiang Liu
Acked-by: Helin Zhang
Acked-by: Jingjing Wu
Acked-by: Jing Chen
---
app/test-pmd/cmdline.c | 152
1 files changed, 152 insertions(+), 0
The implementation of VxLAN tunnel filter in librte_pmd_i40e, which include
- add the i40e_dev_filter_ctrl() function.
- add the i40e_dev_tunnel_filter_set() function.
Signed-off-by: Jijiang Liu
Acked-by: Helin Zhang
Acked-by: Jingjing Wu
Acked-by: Jing Chen
---
lib/librte_pmd_i40e
Add test cases in testpmd to test VxLAN Tx Checksum offload, which include
- IPv4 tunnel and IPv6 tunnel
- outer L3, inner L3 and L4 checksum offload for Tx side.
Signed-off-by: Jijiang Liu
Acked-by: Helin Zhang
Acked-by: Jingjing Wu
Acked-by: Jing Chen
---
app/test-pmd/config.c |6
The patch set supports VxLAN on Fortville based on current mbuf structure. When
Bruce's Mbuf Structure Rework(part 3) is applied, there will be minor changes
later.
It includes:
- Support VxLAN packet identification by configuring tunneling UDP port.
- Support VxLAN packet filters. It uses MAC
Add commands to test VxLAN packet identification, which include
- use commands to add/delete VxLAN UDP port.
- use rxonly mode to receive VxLAN packet.
Signed-off-by: Jijiang Liu
Acked-by: Helin Zhang
Acked-by: Jingjing Wu
Acked-by: Jing Chen
---
app/test-pmd/cmdline.c| 78
ly, only the i40e NIC is supported in the sample, but other types of
NICs also can be supported later if those NICs are able to support tunneling
packet filter.
Jijiang Liu (10):
create VXLAN sample framework using virtio device management function
add basic VXLAN structures
add
This example uses the basic virtio devices management function from the vHost
example, which includes virtio device creation, destroying and maintenance.
Signed-off-by: Jijiang Liu
---
examples/Makefile |1 +
examples/tep_termination/Makefile | 58 +++
examples
Some basic VXLAN definations and APIs are added in this file, which include
VXLAN device structure and the APIs for encapsulation and decapsulation.
Signed-off-by: Jijiang Liu
Signed-off-by: Thomas Long
---
examples/tep_termination/main.c |1 +
examples/tep_termination/vxlan.h | 81
; tunnel parameter processing
Signed-off-by: Jijiang Liu
Signed-off-by: Thomas Long
---
examples/tep_termination/vxlan_setup.h | 76
1 files changed, 76 insertions(+), 0 deletions(-)
create mode 100644 examples/tep_termination/vxlan_setup.h
dif
Fill the APIs of encapsulation and decapsulation for VXLAN packet; for the
encapsulation operation, IPv6 is not supported now.
Signed-off-by: Jijiang Liu
Signed-off-by: Thomas Long
---
examples/tep_termination/Makefile |4 +-
examples/tep_termination/vxlan.c | 160
Implement the following functions:
1> VXLAN port configuration
2> VXLAN tunnel setup
3> VXLAN tunnel destroying
4> VXLAN packet processing for Rx side
5> VXLAN packet processing for Tx side
Signed-off-by: Jijiang Liu
Signed-off-by: Thomas Long
---
examples/tep_termi
The port number of UDP tunneling packet is configurable, which has 16 entries
in total for i40e.
Signed-off-by: Jijiang Liu
---
examples/tep_termination/main.c| 14 ++
examples/tep_termination/vxlan.c |3 ++-
examples/tep_termination/vxlan_setup.c | 17
The follwoing filter types are supported for VXLAN,
1> Inner MAC&VLAN and tenent ID
2> Inner MAC and tenent ID, and Outer MAC
3> Inner MAC and tenent ID
Signed-off-by: Jijiang Liu
---
examples/tep_termination/main.c| 21 +
examples/tep_termination/vxlan_s
For VXLAN packet, the inner Tx checksum offload means inner IPv4 and inner
L4(TCP/UDP/SCTP).
Signed-off-by: Jijiang Liu
---
examples/tep_termination/main.c | 15 +++
examples/tep_termination/vxlan.c | 77 ++
2 files changed, 92 insertions(+), 0
If the 'tso-segsz' is not 0, which means TSO offload is enabled.
Signed-off-by: Jijiang Liu
---
examples/tep_termination/main.c | 19 +--
examples/tep_termination/vxlan.c |4
2 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/examples/tep_t
The two flags by default are enabled, but sometimes we want to know the
performance influence due to encapsulation and decapsulation operations, and
I think we should add the two options.
Signed-off-by: Jijiang Liu
---
examples/tep_termination/main.c| 36
The i40e_xmit_pkts() is called, which often means HW offload is used here, so
we had better remove 'unlikely' check for checksum offload.
Signed-off-by: Jijiang Liu
---
drivers/net/i40e/i40e_rxtx.c |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/driver
The patch set add the negotiation between us-vhost and virtio-net for vhost TSO
feature, and enqueue/dequeue vhost TSO offload, and change vhost sample and
csum application to test these.
Jijiang Liu (8):
add host TSO support in virtio_ethdev.h file
add virtual addr for virtio net header
The virtual addr for virtio net header need to be recorded.
Signed-off-by: Jijiang Liu
---
drivers/net/virtio/virtqueue.h |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/virtio/virtqueue.h b/drivers/net/virtio/virtqueue.h
index 7789411..530f840 100644
--- a
Record virtual address of virtio net header.
Signed-off-by: Jijiang Liu
---
drivers/net/virtio/virtio_ethdev.c |3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/net/virtio/virtio_ethdev.c
b/drivers/net/virtio/virtio_ethdev.c
index 465d3cd..cb5dfee 100644
--- a
Extend the VIRTIO_PMD_GUEST_FEATURES for supporting vhost TSO.
Signed-off-by: Jijiang Liu
---
drivers/net/virtio/virtio_ethdev.h |4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/drivers/net/virtio/virtio_ethdev.h
b/drivers/net/virtio/virtio_ethdev.h
index 9026d42
Change the vhost sample in order to support and test TSO offload.
Signed-off-by: Jijiang Liu
---
examples/vhost/main.c | 20 ++--
1 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/examples/vhost/main.c b/examples/vhost/main.c
index 1b137b9..482f7af 100644
--- a
Enqueue TSO4/6 offload.
Signed-off-by: Jijiang Liu
---
drivers/net/virtio/virtio_rxtx.c | 23 +++
1 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/drivers/net/virtio/virtio_rxtx.c b/drivers/net/virtio/virtio_rxtx.c
index c5b53bb..4c2d838 100644
--- a/drivers
Dequeue vhost TSO offload
Signed-off-by: Jijiang Liu
---
lib/librte_vhost/vhost_rxtx.c | 29 -
1 files changed, 28 insertions(+), 1 deletions(-)
diff --git a/lib/librte_vhost/vhost_rxtx.c b/lib/librte_vhost/vhost_rxtx.c
index 0d07338..9adfdb1 100644
--- a/lib
Add TSO into supported vhost features
Signed-off-by: Jijiang Liu
---
lib/librte_vhost/virtio-net.c |5 -
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/lib/librte_vhost/virtio-net.c b/lib/librte_vhost/virtio-net.c
index b520ec5..2f9ac25 100644
--- a/lib/librte_vhost
1 - 100 of 345 matches
Mail list logo