specific hardwares.
Signed-off-by: Helin Zhang
---
app/test-pipeline/init.c| 2 +-
app/test-pmd/config.c | 55 +---
examples/distributor/main.c | 9 +-
examples/ip_pipeline/init.c | 2 +-
examples/l3fwd-acl/main.c
RSS offloads supported 'ip' and 'udp' only, which did not
demonstrate all of the hardware capabilities. The modifications
adds support of new RSS offloads of 'tcp', 'sctp' and 'all'.
Signed-off-by: Helin Zhang
---
app/test-pmd/cmdline.c | 16 +++
enables new RSS
offloads of 'tcp' and 'all' in testpmd.
Helin Zhang (7):
app/test-pmd: code style fix
ethdev: code style fix
i40e: code style fix
ethdev: fix of calculating the size of flow type mask array
ethdev: unification of flow types
ethdev: unification of RSS
Added code style fixes.
Signed-off-by: Helin Zhang
---
lib/librte_pmd_i40e/i40e_fdir.c | 7 ++-
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/lib/librte_pmd_i40e/i40e_fdir.c b/lib/librte_pmd_i40e/i40e_fdir.c
index 68511c8..c9e535b 100644
--- a/lib/librte_pmd_i40e/i40e_fdir.c
. So the workaround in software
driver is needed. It needs to modify the initial values of 2 internal
only registers which is the same 2 of 3 registers of it did for X710.
Note that the workaround can be removed when it is fixed in firmware
in the future.
Signed-off-by: Helin Zhang
---
lib
future.
Signed-off-by: Helin Zhang
---
lib/librte_pmd_i40e/i40e_ethdev.c | 44 ++-
1 file changed, 30 insertions(+), 14 deletions(-)
v2 changes:
* Supported modifying the address of 0x269FBC of XL710 during
initialization, to fix the minor performance gap to
recently which requries additional
steps. Without the steps, DPDK might be not able to transmit
packets after standard Linux i40e driver loaded.
Helin Zhang (2):
i40e: use i40e_clear_hw() to clear hardware before PF reset
i40e: add required steps in TX queue enable, disable
lib
i40e_clear_hw() was provided recently in shared code to clear
hardware, which can cover disabling all queues. The code
changes are to remove i40e_pf_disable_all_queues() and use
i40e_clear_hw() instead.
Signed-off-by: Helin Zhang
Acked-by: Jijiang Liu
Acked-by: Jing Chen
---
lib
Hardware specification changed recently which requires to set
or clear TX queue disable flags before actually enabling or
disabling a specific TX queue. 'QTX_HEAD' register needs to
be cleared before setting the QENA_REQ flag.
Signed-off-by: Helin Zhang
Acked-by: Jijiang Liu
Acked-by:
was here
/usr/include/sys/types.h:81: error: conflicting types for uid_t
/usr/include/linux/types.h:51: note: previous declaration of uid_t was here
***
Signed-off-by: Helin Zhang
Acked-by: Cunming Liang
---
lib/librte_pmd_bond/rte_eth_bond_api.c | 14 ++
lib/librte_pmd_bond
As i40e introduced recently in DPDK, the warnings should include
i40e when no supported NIC port found during initialization at
least in below example applications.
* app/testpmd
* exception_path
* kni
Signed-off-by: Helin Zhang
---
app/test-pmd/testpmd.c | 3 ++-
examples
As RSS in i40e VF is supported by hardware, these patches enable
it in i40e PMD, and also enable its testing in testpmd.
Helin Zhang (3):
i40evf: add RSS support in VF
app/testpmd: enable RSS support for i40e
ethdev: improvements for some macro definition in head file
app/test-pmd
Add VF RSS support in Poll Mode Driver, as it is supported by hardware.
Signed-off-by: Helin Zhang
Acked-by: Cunming Liang
Acked-by: Jijiang Liu
---
lib/librte_pmd_i40e/i40e_ethdev.c| 4 +-
lib/librte_pmd_i40e/i40e_ethdev.h| 40 ++-
lib/librte_pmd_i40e/i40e_ethdev_vf.c | 208
i40e can support RSS no matter if SR-IOV is enabled or not, while
ixgbe/igb can not support RSS if it is SR-IOV. Code changes are
needed to support i40e RSS if SR-IOV is enabled.
Signed-off-by: Helin Zhang
Acked-by: Jijiang Liu
Acked-by: Cunming Liang
---
app/test-pmd/testpmd.c | 13
improvements for some macro definition about RSS packet
classification types in rte_ethdev.h.
Signed-off-by: Helin Zhang
Acked-by: Cunming Liang
Acked-by: Jijiang Liu
---
lib/librte_ether/rte_ethdev.h | 47 ++-
1 file changed, 24 insertions(+), 23
For better understanding, 'PCTYPE' was added to the name of i40e
RSS shift macros.
Signed-off-by: Helin Zhang
---
lib/librte_ether/rte_ethdev.h | 74 +--
1 file changed, 37 insertions(+), 37 deletions(-)
diff --git a/lib/librte_ether/rte_ethd
f specific capability (command) is supported on a port.
Helin Zhang (5):
ethdev: Rename macros of packet classification type
ethdev: add new ops of 'check_command_supported' and
'rx_classification_filter_ctl'
i40e: support selecting hash functions
i40e: supp
Toeplitz and simple XOR hash functions are supported by
hardware, code changes are to tell the hardware which hash
function is selected according to the configuration.
Signed-off-by: Helin Zhang
---
config/common_bsdapp | 1 +
config/common_linuxapp| 1 +
lib
called in applications.
Also 'check_command_supported' is also implemented to check if
a specific capability(command) is supported or not.
Signed-off-by: Helin Zhang
---
lib/librte_ether/Makefile | 1 +
lib/librte_ether/rte_eth_features.h | 65 ++
lib/librte_pmd_i40e/Makefile
fication_filter_ctl' is for receive classifcation filter
configuring. e.g. hash function configuration, flow director
configuration. It is a common API where a lot of commands can
be implemented for different sub features.
Signed-off-by: Helin Zhang
---
lib/librte_ether/rte_ethdev.c | 31
Six commands are added in testpmd to support configuring
hash functions. They are,
* i40e_get_sym_hash_ena_per_port
* i40e_set_sym_hash_ena_per_port
* i40e_get_sym_hash_ena_per_pctype
* i40e_set_sym_hash_ena_per_pctype
* i40e_get_filter_swap
* i40e_set_filter_swap
Signed-off-by: Helin Zhang
For better understanding, 'PCTYPE' which represents
'Packet Classification Type' is used to replace 'RSS'
in the name of shift macros.
Signed-off-by: Helin Zhang
---
lib/librte_ether/rte_ethdev.h | 76 +--
1 file changed,
PER_PCTYPE
- RTE_CMD_SET_SYM_HASH_ENABLE_PER_PCTYPE
- RTE_CMD_GET_SYM_HASH_ENABLE_PER_PORT
- RTE_CMD_SET_SYM_HASH_ENABLE_PER_PORT
- RTE_CMD_GET_FILTER_SWAP
- RTE_CMD_SET_FILTER_SWAP
- RTE_CMD_GET_HASH_FUNCTION
- RTE_CMD_SET_HASH_FUNCTION
Signed-off-by: Helin Zhang
---
lib/librte_pmd_i40e/i40e_eth
initialization to make sure all those registers are in an
expected state.
Signed-off-by: Helin Zhang
---
lib/librte_pmd_i40e/i40e_ethdev.c | 71 +++
1 file changed, 71 insertions(+)
diff --git a/lib/librte_pmd_i40e/i40e_ethdev.c
b/lib/librte_pmd_i40e/i40e_ethdev.c
index
quite a
lot of ops for device specific features.
* 'rte_eth_features.h': It includes all the feature
commands which can be checked and processed in above
two ops. Also it may include other commands for future
implementations.
Signed-off-by: Helin Zhang
---
lib/librte_ether/Makefil
function of 'Toeplitz' or 'Simple XOR'.
Note that 'PCTYPE' means 'Packet Classification Type'.
Signed-off-by: Helin Zhang
---
lib/librte_pmd_i40e/Makefile | 6 +
lib/librte_pmd_i40e/i40e_ethdev.c | 385 ++
lib/lib
.
- i40e_set_hash_function
Set hash function to 'Toeplitz' or 'Simple XOR'
Signed-off-by: Helin Zhang
---
app/test-pmd/cmdline.c | 579 +
1 file changed, 579 insertions(+)
diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmd
ds are implemented in testpmd to support
testing above.
Note that 'PCTYPE' means 'Packet Classification Type'.
Helin Zhang (6):
ethdev: rename macros of packet classification type
ethdev: add new ops of 'is_command_supported' and
'rx_classification_filte
The pci device IDs of i40e have been added. The new macros have been
added in rte_pci_dev_ids.h to support i40e.
Signed-off-by: Helin Zhang
Signed-off-by: Jing Chen
Acked-by: Cunming Liang
Acked-by: Jijiang Liu
Acked-by: Jingjing Wu
Tested-by: Waterman Cao
---
lib/librte_eal/common/include
el 3.11.10-301
* GCC 4.8.2
* Intel Xeon CPU E5-2680 v2 @ 2.80GHz
We verified this patch with two NICs (i40e 4x10 SFP+, i40e 2x40G),
and performed basic function test on PF and VF.
All cases are passed.
Total cases Passed Failed
138 138 0
Signed-off-by: Helin Zhang
Sign
New packet flags of both RX and TX have been added to support i40e.
Signed-off-by: Helin Zhang
Signed-off-by: Jing Chen
Acked-by: Cunming Liang
Acked-by: Jijiang Liu
Acked-by: Jingjing Wu
Tested-by: Waterman Cao
---
lib/librte_mbuf/rte_mbuf.h | 8
1 file changed, 8 insertions
nt8_t rss_key_len' has been added in
'struct rte_eth_rss_conf' to support different length of RSS keys.
Signed-off-by: Helin Zhang
Signed-off-by: Jing Chen
Acked-by: Cunming Liang
Acked-by: Jijiang Liu
Acked-by: Jingjing Wu
Tested-by: Waterman Cao
---
lib/librte_ether/rte_ethd
The definitions have been added to support i40e devices.
Signed-off-by: Helin Zhang
Signed-off-by: Jing Chen
Acked-by: Cunming Liang
Acked-by: Jijiang Liu
Acked-by: Jingjing Wu
Tested-by: Waterman Cao
---
lib/librte_eal/linuxapp/igb_uio/igb_uio.c | 2 ++
1 file changed, 2 insertions
In ethdev, it ignores setting maximum packet length to less than
1518. The changes is to remove this limitation and let less than
1518 can be set for 'maximum packet length'.
Signed-off-by: Helin Zhang
Signed-off-by: Jing Chen
Acked-by: Cunming Liang
Acked-by: Jijiang Liu
Acked-by
Add PMD source files to support Intel(R) 40G Ethernet Controllers.
The new files are,
i40e_osdep.h
i40e_ethdev.c
i40e_ethdev.h
i40e_ethdev_vf.c
i40e_logs.h
i40e_pf.c
i40e_pf.h
i40e_rxtx.c
i40e_rxtx.h
Makefile
Signed-off-by: Helin Zhang
Signed-off-by: Jing Chen
Acked-by: Cunming Liang
Acked-by
As the hash flags of RSS has been enlarged from 16 bits to 64 bits
in 'struct rte_eth_rss_conf' in rte_ethdev.h, the size of it in
vmxnet3 has to be enlarged as well. In addition, the flags for
vmxnet3 only are masked, as there are flags for others in that
64 bits.
Signed-off-by: H
i40e support has been added in lib/Makefile and mk/rte.app.mk.
Signed-off-by: Helin Zhang
Signed-off-by: Jing Chen
Acked-by: Cunming Liang
Acked-by: Jijiang Liu
Acked-by: Jingjing Wu
Tested-by: Waterman Cao
---
lib/Makefile | 1 +
mk/rte.app.mk | 4
2 files changed, 5 insertions
i40e supports both 16 and 32 bytes RX descriptors, while ixgbe and
igb support 16 bytes size only. Code changes have been made in
test-pmd to support both 16 and 32 bytes RX descriptors according
to the configuration in config files.
Signed-off-by: Helin Zhang
Signed-off-by: Jing Chen
Acked-by
As the hash flags of RSS has been enlarged from 16 bits to 64 bits
in 'struct rte_eth_rss_conf' in rte_ethdev.h, the size of it in
igb has to be enlarged as well. In addition, the flags for igb
only are masked, as there are flags for others in those 64 bits.
Signed-off-by: Helin Zhang
As the hash flags of RSS has been enlarged from 16 bits to 64 bits
in 'struct rte_eth_rss_conf' in rte_ethdev.h, the size of it in
ixgbe has to be enlarged as well. In addition, the flags for ixgbe
only are masked, as there are flags for others in those 64 bits.
Signed-off-by: Helin Zha
configurations for i40e have been added in both common_bsdapp
and common_linuxapp.
Signed-off-by: Helin Zhang
Signed-off-by: Jing Chen
Acked-by: Cunming Liang
Acked-by: Jijiang Liu
Acked-by: Jingjing Wu
Tested-by: Waterman Cao
---
config/common_bsdapp | 20
config
As hash flags of RSS have been enlarged from 16 bits to 64 bits to
support more possible types in all PMDs, and new macro of
ETH_RSS_IP has been defined to cover all IP hash flags of RSS.
That macro should be used in ip_reassembly example application to
support all PMDs.
Signed-off-by: Helin
As hash flags of RSS have been enlarged from 16 bits to 64 bits to
support more possible types in all PMDs, and new macro of
ETH_RSS_IP has been defined to cover all IP hash flags of RSS.
That macro should be used in l3fwd-power example application to
support all PMDs.
Signed-off-by: Helin Zhang
As hash flags of RSS have been enlarged from 16 bits to 64 bits to
support more possible types in all PMDs, and new macro of
ETH_RSS_IP has been defined to cover all IP hash flags of RSS.
That macro should be used in l3fwd-vf example application to
support all PMDs.
Signed-off-by: Helin Zhang
As hash flags of RSS have been enlarged from 16 bits to 64 bits to
support more possible types in all PMDs, and new macro of
ETH_RSS_IP has been defined to cover all IP hash flags of RSS.
That macro should be used in l3fwd example application to support
all PMDs.
Signed-off-by: Helin Zhang
As hash flags of RSS have been enlarged from 16 bits to 64 bits to
support more possible types in all PMDs, and new macro of
ETH_RSS_IP has been defined to cover all IP hash flags of RSS.
That macro should be used in load_balancer example application to
support all PMDs.
Signed-off-by: Helin
As the hash flags of RSS has been enlarged from 16 bits to 64 bits in
'struct rte_eth_rss_conf' in rte_ethdev.h, the size of it in testpmd
should be enlarged as well. In addition, macro of ETH_RSS_IP is used
to replace all IP hash flags of RSS.
Signed-off-by: Helin Zhang
Signed-off-by:
New command of 'tx_vlan set pvid port_id vlan_id (on|off)' has been
added in test-pmd to configure port based vlan insertion.
Signed-off-by: Helin Zhang
Signed-off-by: Jing Chen
Acked-by: Cunming Liang
Acked-by: Jijiang Liu
Acked-by: Jingjing Wu
Tested-by: Waterman Cao
---
ap
added to
support changing them by 'echo' in user space.
Signed-off-by: Helin Zhang
Signed-off-by: Jing Chen
Acked-by: Cunming Liang
Acked-by: Jijiang Liu
Acked-by: Jingjing Wu
Tested-by: Waterman Cao
---
lib/librte_eal/linuxapp/igb_uio/igb_uio.c | 105 +
As i40e PMD need to know the L3 packet type for TX checksum offloading,
the packet type has been added in rte_mbuf offload flags.
Signed-off-by: Helin Zhang
Signed-off-by: Jing Chen
Acked-by: Cunming Liang
Acked-by: Jijiang Liu
Acked-by: Jingjing Wu
Tested-by: Waterman Cao
---
app/test-pmd
As hash flags of RSS have been enlarged from 16 bits to 64 bits to
support more possible types in all PMDs, and new macro of
ETH_RSS_IP has been defined to cover all IP hash flags of RSS.
That macro should be used in multi_process example application to
support all PMDs.
Signed-off-by: Helin
As hash flags of RSS have been enlarged from 16 bits to 64 bits to
support more possible types in all PMDs, and new macro of
ETH_RSS_IP has been defined to cover all IP hash flags of RSS.
That macro should be used in dpdk_qat example application to
support all PMDs.
Signed-off-by: Helin Zhang
As hash flags of RSS have been enlarged from 16 bits to 64 bits to
support more possible types in all PMDs, and new macro of
ETH_RSS_IP has been defined to cover all IP hash flags of RSS.
That macro should be used in qos_meter example application to
support all PMDs.
Signed-off-by: Helin Zhang
Sys files of 'extended_tag' and 'max_read_request_size' are
supported by igb_uio. Reading or writing them to enable/disable
'Extended Tag' or reset 'Max Read Request Size' automatically
according to the configurations are added.
Signed-off-by: Helin Z
RTE_PCI_EXTENDED_TAG
- CONFIG_RTE_PCI_MAX_READ_REQUEST_SIZE
Signed-off-by: Helin Zhang
Signed-off-by: Jing Chen
Acked-by: Cunming Liang
Acked-by: Jijiang Liu
Acked-by: Jingjing Wu
Tested-by: Waterman Cao
---
config/common_linuxapp | 10 ++
1 file changed, 10 insertions(+)
diff --git a/conf
- i40e_lan_hmc.c
- i40e_lan_hmc.h
- i40e_nvm.c
- i40e_prototype.h
- i40e_register.h
- i40e_register_x710_int.h
- i40e_status.h
- i40e_type.h
- i40e_virtchnl.h
Signed-off-by: Helin Zhang
Signed-off-by: Jing Chen
Acked-by: Cunming Liang
Acked-by: Jijiang Liu
Acked-by: Jingjing Wu
Tested-by: Waterman
From: HELIN ZHANG
The compile errors are as follows. The fixes came from standard
Linux drivers of ixgbe-3.21.2 and igb-5.1.2.
* Oracle Linux6.4
lib/librte_eal/linuxapp/kni/ethtool/ixgbe/kcompat.h:3111:
error: redefinition of 'ether_addr_equal'
include/linux/etherdevice.h:180: note
From: HELIN ZHANG
The compile errors are copied as follows. The fixes came from
Linux drivers of ixgbe-3.21.2 and igb-5.1.2 with modifications.
The idea is to use self-defined functions no matter they have
already been defined somewhere or not.
* Oracle Linux6.4
lib/librte_eal/linuxapp/kni
tus;
^
Signed-off-by: Helin Zhang
---
lib/librte_pmd_i40e/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/librte_pmd_i40e/Makefile b/lib/librte_pmd_i40e/Makefile
index 22f0716..911e4f5 100644
--- a/lib/librte_pmd_i40e/Makefile
+++ b/lib/librte_pmd_i40e/Makef
const char *i40e_nvm_update_state_str[] = {
^
Signed-off-by: Helin Zhang
---
lib/librte_pmd_i40e/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/librte_pmd_i40e/Makefile b/lib/librte_pmd_i40e/Makefile
index 911e4f5..4a5635b 100644
--- a/lib/librte_pmd_i40e/Makefile
Compile warnings on ICC and clang can be found, and treated as errors.
Disabling those warnings forcedly can fix them.
v2 changes:
Added the fix for the compile error on clang.
Helin Zhang (2):
i40e: compile fix on ICC 13.0.0
i40e: compile fix on clang 3.3
lib/librte_pmd_i40e/Makefile | 3
tus;
^
Signed-off-by: Helin Zhang
---
lib/librte_pmd_i40e/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/librte_pmd_i40e/Makefile b/lib/librte_pmd_i40e/Makefile
index 22f0716..911e4f5 100644
--- a/lib/librte_pmd_i40e/Makefile
+++ b/lib/librte_pmd_i40e/Makef
tus;
^
Signed-off-by: Helin Zhang
---
lib/librte_pmd_i40e/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
v3 changes:
Reworded the commit title.
diff --git a/lib/librte_pmd_i40e/Makefile b/lib/librte_pmd_i40e/Makefile
index 22f0716..911e4f5 100644
--- a/lib/librte_pmd_i40e/Makef
Compile warnings on ICC and clang can be found, and treated as errors.
Disabling those warnings forcedly can fix them.
v2 changes:
Added the fix for the compile error on clang.
v3 changes:
Reworded the commit titles.
Helin Zhang (2):
i40e: compile fix on ICC 13.0.0
i40e: compile fix on
const char *i40e_nvm_update_state_str[] = {
^
Signed-off-by: Helin Zhang
---
lib/librte_pmd_i40e/Makefile | 1 +
1 file changed, 1 insertion(+)
v3 changes:
Reworded the commit title.
diff --git a/lib/librte_pmd_i40e/Makefile b/lib/librte_pmd_i40e/Makefile
index 911e4f5..4a5635b 100644
Here is the update of i40e base driver. Also it involves a few
relevant necessary code changes in i40e PMD.
Helin Zhang (15):
i40e: make the indentation more consistent in share code
i40e: support nvmupdate by default
i40e: remove useless code which was written for Solaris
i40e: remove
In share code, 'tab' is used to align values rather than 'space'.
The changes in i40e_adminq_cmd.h is to make the indentation more
consistent in share code.
Signed-off-by: Helin Zhang
Reviewed-by: Chen Jing
---
lib/librte_pmd_i40e/i40e/i40e_adminq_cmd.h | 2132 +++
'nvmupdate' is intended to support the userland NVMUpdate tool for
Fortville eeprom. These code changes is to remove the conditional
compile macro, and support those by default. In addition, renaming
all 'errno' to avoid any compile warning or error.
Signed-off-by: Helin Zhan
The code wrapped in '#ifdef DMA_SYNC_SUPPORT' was written specially
for Solaris, it is not needed anymore for others including DPDK.
Signed-off-by: Helin Zhang
Reviewed-by: Chen Jing
---
lib/librte_pmd_i40e/i40e/i40e_adminq.c | 19 ---
1 file changed, 19 deletion
The code wrapped in '#ifdef ETHTOOL_TEST' in i40e_diag.c is for
ethtool testing only, it is not needed anymore and can be removed.
Signed-off-by: Helin Zhang
Reviewed-by: Chen Jing
---
lib/librte_pmd_i40e/i40e/i40e_diag.c | 10 --
1 file changed, 10 deletions(-)
diff -
There are variables that represent values in little endian.
Adding prefix of '__Le' can remove warnings during sparse
checks. In addition, remove some unreachable 'break' statements,
and add 'UL' on a couple of constants.
Signed-off-by: Helin Zhang
Re
The code wrapped in '#ifdef I40E_DCB_SW' is currently for software
validation only, it should be removed at all.
Signed-off-by: Helin Zhang
Reviewed-by: Chen Jing
---
lib/librte_pmd_i40e/i40e/i40e_common.c| 27 --
lib/librte_pmd_i40e/i40e/i40e_dcb.c
The firware api request of writes to hardware registers should be
exposed to driver. The new API of 'i40e_aq_debug_write_register'
is introduced for that.
Signed-off-by: Helin Zhang
Reviewed-by: Chen Jing
---
lib/librte_pmd_i40e/i40e/i40e_common.c| 29
The workaround helps fix the API if the FW is 4.2 or later.
In addition, an unreachable 'break' statement has been removed.
Signed-off-by: Helin Zhang
Reviewed-by: Chen Jing
---
lib/librte_pmd_i40e/i40e/i40e_adminq.c | 5 ++---
lib/librte_pmd_i40e/i40e/i40e_common.c | 12 ++-
As struct of 'i40e_arq_event_info' in share code has
been redefined, relevant changes in PMD are needed to
support that.
Signed-off-by: Helin Zhang
Reviewed-by: Chen Jing
---
lib/librte_pmd_i40e/i40e_ethdev.c| 8 +++-
lib/librte_pmd_i40e/i40e_ethdev_vf.c | 10 +
The fix is to use get_link_status but not get_phy_capabilities
for reporting FC settings.
Signed-off-by: Helin Zhang
Reviewed-by: Chen Jing
---
lib/librte_pmd_i40e/i40e/i40e_common.c | 38 --
lib/librte_pmd_i40e/i40e/i40e_type.h | 8 ---
2 files changed
Force a shifted '1' to be 'unsiged' to avoid shifting a signed int.
Signed-off-by: Helin Zhang
Reviewed-by: Chen Jing
---
lib/librte_pmd_i40e/i40e/i40e_hmc.h | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/lib/librte_pmd_i40e/i40e/i40e_hmc.h
b/lib/
not needed anymore and can
be removed.
Signed-off-by: Helin Zhang
Reviewed-by: Chen Jing
---
lib/librte_pmd_i40e/i40e/i40e_common.c | 3 -
lib/librte_pmd_i40e/i40e/i40e_lan_hmc.c | 203
lib/librte_pmd_i40e/i40e/i40e_lan_hmc.h | 13 --
3 files changed, 219
The code wrapped in '#ifdef I40E_TPH_SUPPORT' was added
to check if 'TPH' is supported, and enable it. It is not
used currently and can be removed.
Signed-off-by: Helin Zhang
Reviewed-by: Chen Jing
---
lib/librte_pmd_i40e/i40e/i40e_common.c | 55 --
10G base T type support is added.
Signed-off-by: Helin Zhang
Reviewed-by: Chen Jing
---
lib/librte_pmd_i40e/i40e/i40e_common.c | 3 +++
lib/librte_pmd_i40e/i40e/i40e_type.h | 1 +
2 files changed, 4 insertions(+)
diff --git a/lib/librte_pmd_i40e/i40e/i40e_common.c
b/lib/librte_pmd_i40e
_len' for the buffer size, and renames the
field of 'msg_size' to 'msg_len' for the real message size.
Signed-off-by: Helin Zhang
Reviewed-by: Chen Jing
---
lib/librte_pmd_i40e/i40e/i40e_adminq.c| 33 ---
lib/librte_pmd_i40e/i40e/i
patch.
* Put setting the crc stripping into a single patch.
* Put the configuring crc stripping in VF into a single patch.
* Added several more code style fixes reported by checkpatch.pl.
Helin Zhang (5):
config: remove useless i40e items in config files
i40e: renaming and code style fix
i40e
need any line wrapping actually.
v2 changes:
* Put all the renaming and code style fixes into a patch.
* Add several more code style fixes for i40e_pf.c.
Signed-off-by: Helin Zhang
Reviewed-by: Jingjing Wu
Reviewed-by: Jing Chen
---
lib/librte_pmd_i40e/i40e_ethdev_vf.c | 75
g VSI queues with
or without crc stripping configuration.
v2 changes:
* Put processing crc stripping configuration in PF host into a
single patch.
Signed-off-by: Helin Zhang
Reviewed-by: Jingjing Wu
Reviewed-by: Jing Chen
---
lib/librte_pmd_i40e/i40e_pf.c | 38 +++
Configurable crc stripping is supported in DPDK PF host,
while not in Linux PF host. Two functions have been
defined to talk with the those PF hosts respectively.
v2 changes:
* Put configuring crc stripping in VF into a single patch.
Signed-off-by: Helin Zhang
Reviewed-by: Jingjing Wu
Reviewed
Remove 'CONFIG_RTE_LIBRTE_I40E_PF_DISABLE_STRIP_CRC' from
config files of 'common_bsdapp' and 'common_linuxapp', as
nowhere uses it.
Signed-off-by: Helin Zhang
Reviewed-by: Jingjing Wu
Reviewed-by: Jing Chen
---
config/common_bsdapp | 1 -
config/common_linu
It enables/disables the crc stripping in the rx queue contexts,
according to the extra configuration carried from VF.
v2 changes:
* Put setting the crc stripping into a single patch.
Signed-off-by: Helin Zhang
Reviewed-by: Jingjing Wu
Reviewed-by: Jing Chen
---
lib/librte_pmd_i40e/i40e_pf.c
The patches include the fix for link status change interrupt
in i40e PF, and code style fixes.
Helin Zhang (3):
i40e: renaming some local variables
i40e: rework of PF interrupt cause enable flags processing
i40e: fix of interrupt based link status change
lib/librte_pmd_i40e/i40e_ethdev.c
To get the code cleaner and more straightforward, a macro
is defined for all interrupt cause enable flags. Two more
causes are enabled, and all the interrupt causes for
reporting any errors are compiled conditionally, as they
are for debug only.
Signed-off-by: Helin Zhang
Reviewed-by: Jing Chen
To be more straightforward, two local variables in interrupt
handler are renamed.
Signed-off-by: Helin Zhang
Reviewed-by: Jing Chen
Reviewed-by: Jijiang Liu
---
lib/librte_pmd_i40e/i40e_ethdev.c | 26 +-
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a
k
function registered by application.
Signed-off-by: Helin Zhang
Reviewed-by: Jing Chen
Reviewed-by: Jijiang Liu
---
lib/librte_pmd_i40e/i40e_ethdev.c | 88 +++
1 file changed, 80 insertions(+), 8 deletions(-)
diff --git a/lib/librte_pmd_i40e/i40e_ethde
testpmd, as it is not needed at all for
supporting RSS in VF.
Helin Zhang (3):
ethdev: improvement for constant usage
i40e: extern two functions and relevant macros
i40evf: support of RSS in VF
lib/librte_ether/rte_ethdev.h| 47 ++--
lib/librte_pmd_i40e/i40e_ethdev.c| 4
Forced type conversion is not needed to define a macro with
constant. The alternate is to let compiler use the default width,
or specify the width with suffix of 'U', 'UL', 'ULL', etc.
Signed-off-by: Helin Zhang
Reviewed-by: Cunming Liang
Reviewed-by: Jiji
To reuse code, 'i40e_config_hena()' and 'i40e_parse_hena()' and
their relevant macros need to be extern, and then can be used for
both PF and VF parts.
Signed-off-by: Helin Zhang
Reviewed-by: Cunming Liang
Reviewed-by: Jijiang Liu
---
lib/librte_pmd_i40e/i40e_eth
i40e hardware supports RSS in VF, the code changes are to add
this support.
v2 changes:
Updating/querying redirection table has been removed, as it
will be in another patches of supporting different redirection
table sizes soon later.
Signed-off-by: Helin Zhang
Reviewed-by: Cunming Liang
Fix several code style issues.
v2 changes:
* Put all code style fixes for testpmd in a single patch.
Signed-off-by: Helin Zhang
Reviewed-by: Jijiang Liu
Reviewed-by: Cunming Liang
Reviewed-by: Jingjing Wu
---
app/test-pmd/cmdline.c | 28 +++-
app/test-pmd/config.c
Fix several code style issues.
v2 changes:
* Put code style fixes of i40e into a single patch.
Signed-off-by: Helin Zhang
Reviewed-by: Jijiang Liu
Reviewed-by: Cunming Liang
Reviewed-by: Jingjing Wu
---
lib/librte_pmd_i40e/i40e_ethdev_vf.c | 13 +
1 file changed, 9 insertions
style fixes.
* Add support of reta updating/querying in i40e VF.
Helin Zhang (13):
app/testpmd: code style fix
i40evf: code style fix
ethdev: add more annotation
ethdev: support of multiple sizes of redirection table
igb: add new function for VF ops of 'dev_infos_get'
igb:
Add more annotation, to clearly tell the 'rte_eth_dev_info_get()'
users that the buffer should be cleared first.
v2 changes:
Add more annotation for 'rte_eth_dev_info_get()'.
Signed-off-by: Helin Zhang
Reviewed-by: Jijiang Liu
Reviewed-by: Cunming Liang
Reviewed-by: J
New function of 'eth_igbvf_infos_get' has been added for
VF ops of 'dev_infos_get', as more and more information
are different between PF and VF.
v2 changes:
* Added new function for ops of 'dev_infos_get' specifically
for igb VF.
Signed-off-by: Helin Zhang
Reviewe
101 - 200 of 950 matches
Mail list logo