[dpdk-dev] [PATCH 0/3] *** Upgrade NIC share codes ***

2014-05-15 Thread Jijiang Liu
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

[dpdk-dev] [PATCH 2/3] Upgrade share codes:fix an issue of hash calculation of flow director introduced by upgrading NIC share codes

2014-05-15 Thread Jijiang Liu
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

[dpdk-dev] [PATCH 1/3] Upgrade share codes:upgrade NIC shared code in ixgbe & e1000 directories

2014-05-15 Thread Jijiang Liu
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

[dpdk-dev] [PATCH 3/3] Upgrade share codes:change Copyright date of e1000_osdep.c and e1000_osdep.h files

2014-05-15 Thread Jijiang Liu
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

[dpdk-dev] [PATCH][Dom0 driver]Change the way of reserving memory in Dom0 driver

2014-05-20 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v2]xen:reserve memory at installing dom0_mm kernel module

2014-05-23 Thread Jijiang Liu
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

[dpdk-dev] [PATCH]Upgrade NIC share codes: fix a compilation error when RTE_NIC_BYPASS=y

2014-05-29 Thread Jijiang Liu
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:

[dpdk-dev] [PATCH 0/6]Support VxLAN on fortville

2014-08-12 Thread Jijiang Liu
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

[dpdk-dev] [PATCH 1/6]i40e:vxlan packet identification

2014-08-12 Thread Jijiang Liu
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

[dpdk-dev] [PATCH 2/6]app/test-pmd:test vxlan packet identification

2014-08-12 Thread Jijiang Liu
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 +++

[dpdk-dev] [PATCH 4/6]app/testpmd:test VxLAN cloud filter API

2014-08-12 Thread Jijiang Liu
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

[dpdk-dev] [PATCH 5/6]i40e:VxLAN Tx checksum offload

2014-08-12 Thread Jijiang Liu
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

[dpdk-dev] [PATCH 6/6]app/testpmd:test VxLAN Tx checksum offload

2014-08-12 Thread Jijiang Liu
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

[dpdk-dev] [PATCH 3/6]i40e:Add VxLAN Cloud filter API

2014-08-12 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v2 3/7]rte_ether:add API of VxLAN packet filter in librte_ether

2014-08-26 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v2 1/7]i40e:support VxLAN packet identification

2014-08-26 Thread Jijiang Liu
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/

[dpdk-dev] [PATCH v2 4/7]i40e:implement API of VxLAN packet filter in librte_pmd_i40e

2014-08-26 Thread Jijiang Liu
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 -

[dpdk-dev] [PATCH v2 6/7]i40e:support VxLAN Tx checksum offload

2014-08-26 Thread Jijiang Liu
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 ++

[dpdk-dev] [PATCH v2 0/7]]Support VxLAN on Fortville

2014-08-26 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v2 2/7]]app/test-pmd:test VxLAN packet identification

2014-08-26 Thread Jijiang Liu
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 +++

[dpdk-dev] [PATCH v2 5/7]]app/testpmd:test VxLAN packet filter API

2014-08-26 Thread Jijiang Liu
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(-)

[dpdk-dev] [PATCH v2 7/7]app/testpmd:test VxLAN Tx checksum offload

2014-08-26 Thread Jijiang Liu
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 +

[dpdk-dev] [PATCH v4 0/3] i40e VXLAN TX checksum rework

2014-12-02 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v4 1/3] mbuf:redefine three TX ol_flags

2014-12-02 Thread Jijiang Liu
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 +++

[dpdk-dev] [PATCH v4 2/3] mbuf:add three TX ol_flags and repalce PKT_TX_VXLAN_CKSUM

2014-12-02 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v4 3/3] mbuf:replace the inner_l2_len and the inner_l3_len fields

2014-12-02 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v5 1/3] mbuf:redefine three TX ol_flags

2014-12-02 Thread Jijiang Liu
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 +++

[dpdk-dev] [PATCH v5 3/3] mbuf:replace the inner_l2_len and the inner_l3_len fields

2014-12-02 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v5 0/3] i40e VXLAN TX checksum rework

2014-12-02 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v5 2/3] mbuf:add three TX ol_flags and repalce PKT_TX_VXLAN_CKSUM

2014-12-02 Thread Jijiang Liu
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

[dpdk-dev] [PATCH 0/3] enhance TX checksum command and csum forwarding engine

2014-12-07 Thread Jijiang Liu
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

[dpdk-dev] [PATCH 1/3] librte_ether:add outer IP offload capability flag

2014-12-07 Thread Jijiang Liu
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

[dpdk-dev] [PATCH 2/3] i40e:support outer IPv4 checksum capability

2014-12-07 Thread Jijiang Liu
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

[dpdk-dev] [PATCH 3/3] test-pmd:change tx_checksum command and csum forwarding engine

2014-12-07 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v2 0/3] enhance TX checksum command and csum forwarding engine

2014-12-09 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v2 1/3] librte_ether:add outer IP offload capability flag

2014-12-09 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v2 3/3] app/testpmd:change tx_checksum command and csum forwarding engine

2014-12-09 Thread Jijiang Liu
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(-

[dpdk-dev] [PATCH v2 2/3] i40e:support outer IPv4 checksum capability

2014-12-09 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v3 0/3] enhance TX checksum command and csum forwarding engine

2014-12-10 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v3 1/3] librte_ether:add outer IP offload capability flag

2014-12-10 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v3 2/3] i40e:support outer IPv4 checksum capability

2014-12-10 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v3 3/3] app/testpmd:change tx_checksum command and csum forwarding engine

2014-12-10 Thread Jijiang Liu
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(-

[dpdk-dev] [PATCH]xen:support Dom0 driver for Linux kernel 3.13.0 and later

2014-06-03 Thread Jijiang Liu
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

[dpdk-dev] [PATCH]xen:fix an issue about memory size caculation in Dom0 driver

2014-06-03 Thread Jijiang Liu
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

[dpdk-dev] [PATCH 00/10] Add a VXLAN sample

2015-05-15 Thread Jijiang Liu
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

[dpdk-dev] [PATCH 01/10] examples/tep_termination:initialize the VXLAN sample

2015-05-15 Thread Jijiang Liu
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

[dpdk-dev] [PATCH 02/10] examples/tep_termination:define the basic VXLAN port information

2015-05-15 Thread Jijiang Liu
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

[dpdk-dev] [PATCH 03/10] examples/tep_termination:add the pluggable structures for VXLAN packet processing

2015-05-15 Thread Jijiang Liu
; 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

[dpdk-dev] [PATCH 04/10] examples/tep_termination:implement VXLAN packet processing

2015-05-15 Thread Jijiang Liu
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

[dpdk-dev] [PATCH 05/10] examples/tep_termination:add UDP port configuration for UDP tunneling packet

2015-05-15 Thread Jijiang Liu
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

[dpdk-dev] [PATCH 06/10] examples/tep_termination:add tunnel filter type configuration

2015-05-15 Thread Jijiang Liu
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

[dpdk-dev] [PATCH 07/10] examples/tep_termination:add Tx checksum offload configuration for inner header

2015-05-15 Thread Jijiang Liu
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

[dpdk-dev] [PATCH 08/10] examples/tep_termination:add TSO offload configuration

2015-05-15 Thread Jijiang Liu
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

[dpdk-dev] [PATCH 10/10] examples/tep_termination:add the configuration for encapsulation and the decapsulation

2015-05-15 Thread Jijiang Liu
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

[dpdk-dev] [PATCH 09/10] examples/tep_termination:add bad Rx checksum statistics of inner IP and L4

2015-05-15 Thread Jijiang Liu
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

[dpdk-dev] [PATCH] i40e:fix an issue in i40e_dev_info_get

2015-05-19 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v3 0/8]Support VxLAN on Fortville

2014-09-12 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v3 1/8]i40e:support VxLAN packet identification in librte_ether

2014-09-12 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v3 2/8]i40e:support VxLAN packet identification in librte_pmd_i40e

2014-09-12 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v3 3/8]app/test-pmd:test VxLAN packet identification

2014-09-12 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v3 4/8]librte_ether:add a common filter API

2014-09-12 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v3 6/8]app/testpmd:test VxLAN packet filter API

2014-09-12 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v3 7/8]i40e:support VxLAN Tx checksum offload

2014-09-12 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v3 5/8]i40e:implement API of VxLAN packet filter in librte_pmd_i40e

2014-09-12 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v3 8/8]app/testpmd:test VxLAN Tx checksum offload

2014-09-12 Thread Jijiang Liu
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

[dpdk-dev] [PATCH 1/5]librte_ether:use new filter framework

2014-09-23 Thread Jijiang Liu
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

[dpdk-dev] [PATCH 3/5]i40e:optimize MACVLAN filter implementation

2014-09-23 Thread Jijiang Liu
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

[dpdk-dev] [PATCH 5/5]testpmd:test VF MACVLAN filter for i40e

2014-09-23 Thread Jijiang Liu
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

[dpdk-dev] [PATCH 4/5]i40e:add VF MACVLAN filter implementation in librte_pmd_i40e

2014-09-23 Thread Jijiang Liu
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

[dpdk-dev] [PATCH 0/5]support filter of unicast and multicast MAC address for VF on Fortville

2014-09-23 Thread Jijiang Liu
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

[dpdk-dev] [PATCH 2/5]librte_ether:extend data structures of MACVLAN filter

2014-09-23 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v4 2/8]i40e:support VxLAN packet identification in librte_pmd_i40e

2014-09-26 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v4 4/8]librte_ether:add a common filter API

2014-09-26 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v4 1/8]i40e:support VxLAN packet identification in librte_ether

2014-09-26 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v4 7/8]i40e:support VxLAN Tx checksum offload

2014-09-26 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v4 6/8]app/testpmd:test VxLAN packet filter API

2014-09-26 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v4 5/8]i40e:implement API of VxLAN packet filter in librte_pmd_i40e

2014-09-26 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v4 8/8]app/testpmd:test VxLAN Tx checksum offload

2014-09-26 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v4 0/8]Support VxLAN on Fortville

2014-09-26 Thread Jijiang Liu
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

[dpdk-dev] [PATCH v4 3/8]app/test-pmd:test VxLAN packet identification

2014-09-26 Thread Jijiang Liu
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

[dpdk-dev] [PATCH RFC 00/10] Add a VXLAN sample

2015-04-16 Thread Jijiang Liu
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

[dpdk-dev] [PATCH RFC 01/10] examples/tep_termination:initialize the VXLAN example

2015-04-16 Thread Jijiang Liu
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

[dpdk-dev] [PATCH RFC 02/10] examples/tep_termination:define VXLAN device information and APIs

2015-04-16 Thread Jijiang Liu
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

[dpdk-dev] [PATCH RFC 03/10] examples/tep_termination:add the pluggable structures for VXLAN packet processing

2015-04-16 Thread Jijiang Liu
; 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

[dpdk-dev] [PATCH RFC 05/10] examples/tep_termination:implement the APIs of encapsulation and decapsulation for VXLAN

2015-04-16 Thread Jijiang Liu
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

[dpdk-dev] [PATCH RFC 04/10] examples/tep_termination:implement VXLAN packet processing

2015-04-16 Thread Jijiang Liu
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

[dpdk-dev] [PATCH RFC 06/10] examples/tep_termination:add UDP port configuration for UDP tunneling packet

2015-04-16 Thread Jijiang Liu
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

[dpdk-dev] [PATCH RFC 07/10] examples/tep_termination:add tunnel filter type configuration

2015-04-16 Thread Jijiang Liu
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

[dpdk-dev] [PATCH RFC 08/10] examples/tep_termination:add Tx checksum offload configuration for inner header

2015-04-16 Thread Jijiang Liu
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

[dpdk-dev] [PATCH RFC 09/10] examples/tep_termination:add TSO offload configuration

2015-04-16 Thread Jijiang Liu
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

[dpdk-dev] [PATCH RFC 10/10] examples/tep_termination:add the configuration for encapsulation and the decapsulation

2015-04-16 Thread Jijiang Liu
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

[dpdk-dev] [PATCH] i40e:remove unlikely check in i40e_xmit_pkts for checksum offload

2015-08-04 Thread Jijiang Liu
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

[dpdk-dev] [RFC PATCH 0/8] Add vhost TSO capability

2015-08-31 Thread Jijiang Liu
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

[dpdk-dev] [RFC PATCH 2/8] driver/virtio: add virtual addr for virtio net header

2015-08-31 Thread Jijiang Liu
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

[dpdk-dev] [RFC PATCH 3/8] driver/virtio: record virtual address of virtio net header

2015-08-31 Thread Jijiang Liu
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

[dpdk-dev] [RFC PATCH 1/8] driver/virtio:add vhost TSO support capability

2015-08-31 Thread Jijiang Liu
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

[dpdk-dev] [RFC PATCH 7/8] examples/vhost:support tso in vhost sample

2015-08-31 Thread Jijiang Liu
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

[dpdk-dev] [RFC PATCH 4/8] driver/virtio:enqueue TSO offload

2015-08-31 Thread Jijiang Liu
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

[dpdk-dev] [RFC PATCH 5/8] lib/librte_vhost:dequeue vhost TSO offload

2015-08-31 Thread Jijiang Liu
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

[dpdk-dev] [RFC PATCH 6/8] lib/librte_vhost:extend supported vhost features

2015-08-31 Thread Jijiang Liu
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   2   3   4   >