It fixes the issue reported by Coverity of 'Missing break in
switch', by deleting 'case I40E_VIRTCHNL_OP_FCOE', as it is
not necessary at all.
Coverity ID 13265: Missing break in switch.
Fixes: 4861cde46116 ("i40e: new poll mode driver")
Signed-off-by: Heli
778a1fa2e4e ("i40e: set up and initialize flow director")
Fixes: 4861cde46116 ("i40e: new poll mode driver")
Signed-off-by: Helin Zhang
---
drivers/net/i40e/i40e_pf.c | 5 +++--
drivers/net/i40e/i40e_rxtx.c | 12
2 files changed, 11 insertions(+), 6 deletions(-)
dif
It fixes several problematic dereference issues and missing
break issue reported by Coverity.
Helin Zhang (2):
i40e: fix problematic dereference
i40e: fix missing break in switch
drivers/net/i40e/i40e_pf.c | 11 +--
drivers/net/i40e/i40e_rxtx.c | 12
2 files changed
It adds a flag, which can be used to tell the firmware to
disable the link on all ports.
Signed-off-by: Helin Zhang
---
doc/guides/rel_notes/release_16_07.rst | 4
drivers/net/i40e/Makefile | 2 +-
drivers/net/i40e/base/i40e_adminq_cmd.h | 3 +++
3 files changed, 8
It add opcodes and structures to support RSS configuration
by PF driver on behalf of the VF drivers.
Signed-off-by: Helin Zhang
---
drivers/net/i40e/base/i40e_virtchnl.h | 45 ---
1 file changed, 42 insertions(+), 3 deletions(-)
diff --git a/drivers/net/i40e
It adds input set mask definitions for RSS, flow director
and flex bytes.
Signed-off-by: Helin Zhang
---
drivers/net/i40e/base/i40e_type.h | 33 +
1 file changed, 33 insertions(+)
diff --git a/drivers/net/i40e/base/i40e_type.h
b/drivers/net/i40e/base
It increases the supported AQ API version to 1.5
for X722.
Signed-off-by: Helin Zhang
---
drivers/net/i40e/base/i40e_type.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/i40e/base/i40e_type.h
b/drivers/net/i40e/base/i40e_type.h
index 7ed3048..bc68b47 100644
It adds more device capabilities for NVM management.
- if update is available
- if security check is needed
Signed-off-by: Helin Zhang
---
drivers/net/i40e/base/i40e_adminq_cmd.h | 1 +
drivers/net/i40e/base/i40e_common.c | 6 ++
drivers/net/i40e/base/i40e_type.h | 5 +
3
It fixes the debug output messages.
Fixes: f388b435bc33 ("i40e/base: clean adminq debug")
Signed-off-by: Helin Zhang
---
drivers/net/i40e/base/i40e_common.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/net/i40e/base/i40e_common.c
b/drivers/net
It corrects the number of MSIX vector in a debug info.
Fixes: 889bc9f0cd3a ("i40e/base: unify the capability function")
Signed-off-by: Helin Zhang
---
drivers/net/i40e/base/i40e_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/i40e/base/i40e_c
It adds new device IDs and PHY types.
Signed-off-by: Helin Zhang
---
drivers/net/i40e/base/i40e_adminq_cmd.h | 4
drivers/net/i40e/base/i40e_common.c | 4
drivers/net/i40e/base/i40e_devids.h | 4
lib/librte_eal/common/include/rte_pci_dev_ids.h | 8
It removes the problematic mirror rule ID check. It
returns an error if the mirror rule ID is 0, which is
a valid value.
Fixes: 0bf2dbbe077c ("i40e/base: support mirroring rules")
Signed-off-by: Helin Zhang
---
drivers/net/i40e/base/i40e_common.c | 5 +
1 file changed, 1 inser
It exposes the configuration of mirroring or not egress
traffic to VSIs in promiscuous mode, as latest firmware
supports that from API version 1.5.
Signed-off-by: Helin Zhang
---
drivers/net/i40e/base/i40e_common.c| 9 ++---
drivers/net/i40e/base/i40e_prototype.h | 4 ++--
drivers/net
The hardware doesn't layout the Geneve VNI (Virtual Network
Identifier) quite the same as the VxLAN VNI, so it needs to
adjust it before sending through the AQ commands as the
workaround.
Signed-off-by: Helin Zhang
---
drivers/net/i40e/base/i40e_common.c
It trim the source code, with limiting pieces of code for
PF or VF driver only, code style fixes, and annotation
rewording.
Signed-off-by: Helin Zhang
---
drivers/net/i40e/base/i40e_adminq.c | 52 +++--
drivers/net/i40e/base/i40e_adminq.h | 4 +--
drivers
It refactors the NVM update command processing, with adding
a new element of nvm_wait_opcode in struct i40e_hw to indicate
the opcode it waits on, and putting the wait event check into
a function. In addition, that element needs to be initialized
or updated properly.
Signed-off-by: Helin Zhang
It centralizes all NVM update status info into a single
structure, by moving nvm_release_on_done from struct
i40e_adminq_info to struct i40e_hw, for better management.
Signed-off-by: Helin Zhang
---
drivers/net/i40e/base/i40e_adminq.c | 6 +++---
drivers/net/i40e/base/i40e_adminq.h | 1
HMC AQ APIs were removed from the latest datasheet, and
hence remove its implementations and relevant.
Signed-off-by: Helin Zhang
---
drivers/net/i40e/base/i40e_adminq.c | 4 ---
drivers/net/i40e/base/i40e_adminq_cmd.h | 25 --
drivers/net/i40e/base/i40e_common.c | 61
This is the i40e base driver update, which includes bug fixes,
enhancements, refactoring, and new device enabling. Below are
the details.
v2:
- reworded commit titles and logs.
Helin Zhang (15):
i40e/base: remove HMC AQ APIs
i40e/base: move field of NVM update status info
i40e/base
It adds a flag, which can be used to tell the firmware to
disable the link on all ports.
Signed-off-by: Helin Zhang
---
doc/guides/rel_notes/release_16_07.rst | 7 +++
drivers/net/i40e/Makefile | 2 +-
drivers/net/i40e/base/i40e_adminq_cmd.h | 3 +++
3 files changed, 11
It add opcodes and structures to support RSS configuration
by PF driver on behalf of the VF drivers.
Signed-off-by: Helin Zhang
---
drivers/net/i40e/base/i40e_virtchnl.h | 45 ---
1 file changed, 42 insertions(+), 3 deletions(-)
diff --git a/drivers/net/i40e
It adds input set mask definitions for RSS, flow director
and flex bytes.
Signed-off-by: Helin Zhang
---
drivers/net/i40e/base/i40e_type.h | 33 +
1 file changed, 33 insertions(+)
diff --git a/drivers/net/i40e/base/i40e_type.h
b/drivers/net/i40e/base
It increases the supported AQ API version to 1.5
for X722.
Signed-off-by: Helin Zhang
---
drivers/net/i40e/base/i40e_type.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/i40e/base/i40e_type.h
b/drivers/net/i40e/base/i40e_type.h
index 7ed3048..bc68b47 100644
It adds more device capabilities for NVM management.
- if update is available
- if security check is needed
Signed-off-by: Helin Zhang
---
drivers/net/i40e/base/i40e_adminq_cmd.h | 1 +
drivers/net/i40e/base/i40e_common.c | 6 ++
drivers/net/i40e/base/i40e_type.h | 5 +
3
It fixes the debug output messages.
Fixes: f388b435bc33 ("i40e/base: clean adminq debug")
Signed-off-by: Helin Zhang
---
drivers/net/i40e/base/i40e_common.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/net/i40e/base/i40e_common.c
b/drivers/net
It corrects the number of MSIX vector in a debug info.
Fixes: 889bc9f0cd3a ("i40e/base: unify the capability function")
Signed-off-by: Helin Zhang
---
drivers/net/i40e/base/i40e_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/i40e/base/i40e_c
It adds new device IDs of both X722 and XXV710, and
new PHY types.
Signed-off-by: Helin Zhang
---
drivers/net/i40e/base/i40e_adminq_cmd.h | 4
drivers/net/i40e/base/i40e_common.c | 4
drivers/net/i40e/base/i40e_devids.h | 4
lib/librte_eal/common
It removes the problematic mirror rule ID check. It
returns an error if the mirror rule ID is 0, which is
a valid value.
Fixes: 0bf2dbbe077c ("i40e/base: support mirroring rules")
Signed-off-by: Helin Zhang
---
drivers/net/i40e/base/i40e_common.c | 5 +
1 file changed, 1 inser
It exposes the configuration of mirroring or not egress
traffic to VSIs in promiscuous mode, as latest firmware
supports that from API version 1.5.
Signed-off-by: Helin Zhang
---
drivers/net/i40e/base/i40e_common.c| 9 ++---
drivers/net/i40e/base/i40e_prototype.h | 4 ++--
drivers/net
The hardware doesn't layout the Geneve VNI quite the same
as the VxLAN VNI, so it needs to adjust it before sending
through the AQ commands as the workaround.
Signed-off-by: Helin Zhang
---
drivers/net/i40e/base/i40e_common.c | 35 ++-
drivers/net/i40e
It adds code style fixes.
Signed-off-by: Helin Zhang
---
drivers/net/i40e/base/i40e_adminq.c | 52 +++--
drivers/net/i40e/base/i40e_adminq.h | 4 +--
drivers/net/i40e/base/i40e_adminq_cmd.h | 21 +++--
drivers/net/i40e/base/i40e_common.c | 5
It refactors the NVM update event handling, with specifying
the AQ event opcode to wait on.
Signed-off-by: Helin Zhang
---
drivers/net/i40e/base/i40e_adminq.c| 33 +--
drivers/net/i40e/base/i40e_nvm.c | 77 +++---
drivers/net/i40e/base
It centralizes all NVM update status info in the same
structure, for better management.
Signed-off-by: Helin Zhang
---
drivers/net/i40e/base/i40e_adminq.c | 6 +++---
drivers/net/i40e/base/i40e_adminq.h | 1 -
drivers/net/i40e/base/i40e_nvm.c| 12 ++--
drivers/net/i40e/base
HMC AQ APIs were removed from the latest datasheet, and
hence remove its implementations and relevant.
Signed-off-by: Helin Zhang
---
drivers/net/i40e/base/i40e_adminq.c | 4 ---
drivers/net/i40e/base/i40e_adminq_cmd.h | 25 --
drivers/net/i40e/base/i40e_common.c | 61
This is the i40e base driver update, which includes
bug fixes, enhancements, refactoring, and new device
enabling. Below are the details.
Helin Zhang (15):
i40e/base: remove HMC AQ APIs
i40e/base: refactor NVM update status info
i40e/base: refactor NVM update event handling
i40e/base
It fixes the issue reported by Coverity of 'Missing break in
switch', by deleting 'case I40E_VIRTCHNL_OP_FCOE', as it is
not necessary at all.
Coverity ID 13265: Missing break in switch.
Fixes: 4861cde46116 ("i40e: new poll mode driver")
Signed-off-by: Heli
778a1fa2e4e ("i40e: set up and initialize flow director")
Fixes: 4861cde46116 ("i40e: new poll mode driver")
Signed-off-by: Helin Zhang
---
drivers/net/i40e/i40e_pf.c | 5 +++--
drivers/net/i40e/i40e_rxtx.c | 10 +++---
2 files changed, 10 insertions(+), 5 deletions(-)
v3
necessary at all, or move null checks before where uses it.
v3:
- Split the code changes into different patches, according
to the issue type.
- Reworded the commit logs.
v2:
- Combined all the patches into a single one, as suggested.
- Remove checking rxq, as it shouldn't be NULL at any
13265: Missing break in switch.
Fixes: 8e109464c022 ("i40e: allow vector Rx and Tx usage")
Fixes: a778a1fa2e4e ("i40e: set up and initialize flow director")
Fixes: a778a1fa2e4e ("i40e: set up and initialize flow director")
Fixes: 4861cde46116 ("i40e: new poll mode d
Fix issue reported by Coverity.
Coverity ID 13265: Missing break in switch.
Fixes: 4861cde46116 ("i40e: new poll mode driver")
Signed-off-by: Helin Zhang
---
drivers/net/i40e/i40e_pf.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/net/i40e/i40e_pf.c b/drivers/net/i40e
Fix issue reported by Coverity.
Coverity ID 13298: Dereference before null check.
Fixes: 4861cde46116 ("i40e: new poll mode driver")
Signed-off-by: Helin Zhang
---
drivers/net/i40e/i40e_pf.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/i40e/i
Fix issue reported by Coverity.
Coverity ID 13299: Dereference before null check.
Fixes: 4861cde46116 ("i40e: new poll mode driver")
Signed-off-by: Helin Zhang
---
drivers/net/i40e/i40e_pf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/i40e/i
Fix issue reported by Coverity.
Coverity ID 13294: Dereference before null check.
Fixes: a778a1fa2e4e ("i40e: set up and initialize flow director")
Signed-off-by: Helin Zhang
---
drivers/net/i40e/i40e_rxtx.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/d
Fix issue reported by Coverity.
Coverity ID 13301: Dereference before null check.
Fixes: a778a1fa2e4e ("i40e: set up and initialize flow director")
Signed-off-by: Helin Zhang
---
drivers/net/i40e/i40e_rxtx.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/d
Fix issue reported by Coverity.
Coverity ID 119267: Dereference before null check.
Fixes: 8e109464c022 ("i40e: allow vector Rx and Tx usage")
Signed-off-by: Helin Zhang
---
drivers/net/i40e/i40e_rxtx.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/d
It fixes several problematic dereferences in i40e driver,
reported by Coverity.
Helin Zhang (6):
i40e: fix problematic dereference
i40e: fix problematic dereference
i40e: fix problematic dereference
i40e: fix problematic dereference
i40e: fix problematic dereference
i40e: fix
The array 'ptype_table' was defined in depth of 'UINT8_MAX' which
is 255, while the querying index could be from 0 to 255. The issue
can be fixed with expanding the array to one more element.
Fixes: 9571ea028489 ("i40e: replace some offload flags with unified packet
typ
In order to set ether type of VLAN for single VLAN, inner
and outer VLAN, the VLAN type as an input parameter is added
to 'rte_eth_dev_set_vlan_ether_type()'.
In addition, corresponding changes in e1000, ixgbe and i40e
are also added.
Signed-off-by: Helin Zhang
Acked-by: Wenzhuo Lu
to avoid ABI issue.
- Re-organized the patch set.
v2:
- Used RTE_NEXT_ABI to avoid ABI change issue.
- Reworked the announcement of ABI change for release 16.07.
- Fixed a i40e overflow issue.
Helin Zhang (2):
ethdev: add vlan type for setting ether type
i40e: fix the overflow issue
app
The array 'ptype_table' was defined in depth of 'UINT8_MAX' which
is 255, while the querying index could be from 0 to 255. The issue
can be fixed with expanding the array to one more element.
Fixes: 9571ea028489 ("i40e: replace some offload flags with unified packet
typ
In order to set ether type of VLAN for single VLAN, inner
and outer VLAN, the VLAN type as an input parameter is added
to 'rte_eth_dev_set_vlan_ether_type()'.
In addition, corresponding changes in e1000, ixgbe and i40e
are also added.
Signed-off-by: Helin Zhang
Acked-by: Wenzhuo Lu
ABI change issue.
- Reworked the announcement of ABI change for release 16.07.
- Fixed a i40e overflow issue.
Helin Zhang (2):
ethdev: add vlan type for setting ether type
i40e: fix the overflow issue
app/test-pmd/cmdline.c | 30 +-
app/test-pmd/config.c
The array 'ptype_table' was defined in depth of 'UINT8_MAX' which
is 255, while the querying index could be from 0 to 255. The issue
can be fixed with expanding the array to one more element.
Fixes: 9571ea028489 ("i40e: replace some offload flags with unified packet
typ
In order to set ether type of VLAN for single VLAN, inner
and outer VLAN, the VLAN type as an input parameter is added
to 'rte_eth_dev_set_vlan_ether_type()'.
In addition, corresponding changes in e1000, ixgbe and i40e
are also added.
Signed-off-by: Helin Zhang
---
app/test-pmd
ABI change for release 16.07.
- Fixed a i40e overflow issue.
Helin Zhang (2):
ethdev: add vlan type for setting ether type
i40e: fix the overflow issue
app/test-pmd/cmdline.c | 30 +++-
app/test-pmd/config.c | 9 ++---
app/test-pmd/testpmd.h
It removes the i40evf_set_mac_type() defined in PMD, and reuses
i40e_set_mac_type() defined in base driver.
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/i40e_ethdev_vf.c | 22 +-
1 file changed, 1 insertion(+), 21 deletions(-)
diff --git a/drivers
It adds base driver release information such as release date,
for better tracking in the future.
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/i40e/Makefile b/drivers/net/i40e/Makefile
index
Several structures and macros are added or updated, such
as 'struct i40e_aqc_get_link_status',
'struct i40e_aqc_run_phy_activity' and
'struct i40e_aqc_lldp_set_local_mib_resp'.
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
doc/guides/rel_notes/release_16
It adds the new AQ command and struct for managing a
thermal sensor.
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/base/i40e_adminq_cmd.h | 17 +
1 file changed, 17 insertions(+)
diff --git a/drivers/net/i40e/base/i40e_adminq_cmd.h
b/drivers/net/i40e
X722 supports Expanded version of TCP, UDP PCTYPES for RSS.
Add a Virtchnl offload to support this.
Without this patch VF drivers will not be able to support
the correct PCTYPES for X722 and UDP flows will not fan out.
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/base
This patch adds 7 new register definitions for programming the
parser, flow director and RSS blocks in the HW.
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/base/i40e_register.h | 48 +++
drivers/net/i40e/i40e_ethdev.c| 11
RX control register read/write functions are added, as directly
read/write may fail when under stress small traffic. After the
adminq is ready, all rx control registers should be read/written
by dedicated functions.
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
doc/guides/rel_notes
It adds coding style fixes.
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/base/i40e_common.c | 19 ---
1 file changed, 12 insertions(+), 7 deletions(-)
v4:
- Reworded the commit logs.
diff --git a/drivers/net/i40e/base/i40e_common.c
b/drivers/net
When updating a VSI, save off the number of allocated and
unallocated VSIs as we do when adding a VSI.
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/base/i40e_common.c | 6 ++
1 file changed, 6 insertions(+)
v4:
- Reworded the commit logs.
diff --git a/drivers
It fixes the driver load failure with linking with particular
PHY types, as the amount of time it takes for the
GLGEN_RSTAT_DEVSTATE to be set increases greatly on those PHY
types, which can lead to a timeout.
Fixes: 9aeefed05538 ("i40e/base: support ESS")
Signed-off-by: Helin Zhang
is similar to default port
VSI.
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/base/i40e_adminq_cmd.h | 1 +
drivers/net/i40e/base/i40e_common.c | 9 -
2 files changed, 9 insertions(+), 1 deletion(-)
v4:
- Reworded the commit logs.
diff --git a/drivers/net
This patch adds functions to blink led on devices using a new
PHY since MAC registers used in other designs do not work in
this device configuration.
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/base/i40e_common.c| 329 +
drivers/net
Add the support code for calling the AdminQ API call
aq_set_switch_config.
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/base/i40e_adminq_cmd.h | 12
drivers/net/i40e/base/i40e_common.c | 28
drivers/net/i40e/base
functionality exists.
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/base/i40e_adminq_cmd.h | 3 ++-
drivers/net/i40e/base/i40e_common.c | 11 ++-
drivers/net/i40e/base/i40e_prototype.h | 4 ++--
drivers/net/i40e/i40e_ethdev.c | 2 +-
4 files changed, 11
This patch implements necessary functions related to port
mirroring features such as add/delete mirror rule, function
to set promiscuous VLAN mode for VSI if mirror rule_type is
"VLAN Mirroring".
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/base/i40e_common.
It adds the use of the new shared MAC filter bit for multicast
and broadcast filters in order to make better use of the
filters available from the device.
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/base/i40e_adminq_cmd.h | 1 +
drivers/net/i40e/base/i40e_common.c
calling
get phy capability function because that bit is not set when
device is in PHY interaction mode.
Fixes: 842ea1996335 ("i40e/base: save link module type")
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/base/i40e_common.c | 16 +---
1 file
The device capabilities were defined in two places, and neither had
all the definitions. It really belongs with the AQ API definition,
so this patch removes the other set of definitions and fills out the
missing item.
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/base
pport proxy config for X722")
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/base/i40e_adminq_cmd.h | 46 +
drivers/net/i40e/base/i40e_common.c | 14 +-
2 files changed, 12 insertions(+), 48 deletions(-)
v4:
- Reworded the c
;i40e/base: support WOL config for X722")
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/base/i40e_adminq_cmd.h | 92 -
1 file changed, 44 insertions(+), 48 deletions(-)
v4:
- Reworded the commit logs.
- Splitted WOL fixes into a
Add new Device ID's for backplane and QSFP+ adapters, and delete
deprecated one for backplane.
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/base/i40e_common.c | 12 ++--
drivers/net/i40e/base/i40e_devids.h | 10 +-
driver
"i40e: base driver")
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/base/i40e_adminq.c | 17 ++---
1 file changed, 10 insertions(+), 7 deletions(-)
v4:
- Reworded the commit logs.
diff --git a/drivers/net/i40e/base/i40e_adminq.c
b/drivers/net/i40e/bas
The standard way to check if the AQ is enabled is to look at
the count field. So it should only set this field after it has
successfully allocated memory.
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/base/i40e_adminq.c | 4 ++--
1 file changed, 2 insertions(+), 2
Fixes: 8db9e2a1b232 ("i40e: base driver")
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/base/i40e_adminq.c | 8
1 file changed, 8 insertions(+)
v4:
- Reworded the commit logs.
diff --git a/drivers/net/i40e/base/i40e_adminq.c
b/drivers/net/i40e/base/i40e
XL710/X710 devices requires FW version checks to properly handle
DCB configurations from the FW while other devices (e.g. X722)
do not, so limit these checks to XL710/X710 only.
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/base/i40e_dcb.c | 34
t can be called from the paths that need the bulk access.
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/base/i40e_nvm.c | 109 ++---
drivers/net/i40e/base/i40e_prototype.h | 8 ++-
2 files changed, 92 insertions(+), 25 deletions(-
Instead of doing the MAC check, use a flag that gets set per
MAC. This way there are less chances of user error and it
can enable multiple MACs with the capability in a single place
rather than cluttering the code with MAC checks.
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers
It needs to acquire the NVM ownership before issuing an AQ read
to the X722 NVM otherwise it will get EBUSY from the firmware.
Also it should be released when done.
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/base/i40e_nvm.c | 35 +--
1
It fixes compilation warnings.
Fixes: bd6651c2d2d7 ("i40e/base: use bit shift macros")
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/base/i40e_lan_hmc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
v4:
- Reworded the commit logs.
diff --git
s, in order to support newly added X722 VF
device IDs.
- Used small letter in all commit log titles.
Helin Zhang (29):
i40e/base: fix compilation warnings
i40e/base: acquire NVM ownership before reading it
i40e/base: add hw flag for X722 register access
i40e/base: add X722 support o
It uses ether API of 'is_valid_assigned_ether_addr' to validate
MAC address. In the meanwhile, more annotations are added.
Signed-off-by: Helin Zhang
---
drivers/net/i40e/i40e_ethdev_vf.c | 14 +++---
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/driver
It generates a MAC address for each VFs during PF host
initialization.
Signed-off-by: Helin Zhang
---
doc/guides/rel_notes/release_16_04.rst | 5 +
drivers/net/i40e/i40e_ethdev.h | 1 +
drivers/net/i40e/i40e_pf.c | 3 +++
3 files changed, 9 insertions(+)
v2:
- It just
build
v2:
- It just adds generating a MAC address for each VFs
during PF host initialization, and removes configuring
from users.
- Reworded the release notes.
- Removed the app changes.
Helin Zhang (2):
i40e: generate MAC address for VF
i40evf: use ether API to validate MAC address
doc
The array 'ptype_table' was defined in depth of 'UINT8_MAX' which
is 255, while the querying index could be from 0 to 255. The issue
can be fixed with expanding the array to one more element.
Fixes: 9571ea028489 ("i40e: replace some offload flags with unified packet
typ
It adds the setting VLAN ether type of single VLAN, inner and
outer VLAN. Single VLAN is treated as inner VLAN as usual.
Signed-off-by: Helin Zhang
---
drivers/net/i40e/i40e_ethdev.c | 68 +++---
1 file changed, 64 insertions(+), 4 deletions(-)
v2:
- Used
In order to set ether type of VLAN for single VLAN, inner
and outer VLAN, the VLAN type as an input parameter is added
to 'rte_eth_dev_set_vlan_ether_type()'.
In addition, corresponding changes in e1000, ixgbe and i40e are
also added.
Signed-off-by: Helin Zhang
---
app/test-pmd
4ac366ba647909c3b71818f9be9db86ba5e871da
nfp: fix non-x86 build
v2:
- Used RTE_NEXT_ABI to avoid ABI change issue.
- Reworked the announcement of ABI change for release 16.07.
- Fixed a i40e overflow issue.
Helin Zhang (3):
ethdev: add vlan type for setting ether type
i40e: add VLAN ether type
It removes the i40evf_set_mac_type() defined in PMD, and reuses
i40e_set_mac_type() defined in base driver.
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/i40e_ethdev_vf.c | 22 +-
1 file changed, 1 insertion(+), 21 deletions(-)
diff --git a/drivers
It adds base driver release information such as release date,
for better tracking in the future.
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/i40e/Makefile b/drivers/net/i40e/Makefile
index
Several structures and macros are added or updated, such
as 'struct i40e_aqc_get_link_status',
'struct i40e_aqc_run_phy_activity' and
'struct i40e_aqc_lldp_set_local_mib_resp'.
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
doc/guides/rel_notes/release_16
It adds the new AQ command and struct for managing a
thermal sensor.
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/base/i40e_adminq_cmd.h | 17 +
1 file changed, 17 insertions(+)
diff --git a/drivers/net/i40e/base/i40e_adminq_cmd.h
b/drivers/net/i40e
X722 supports Expanded version of TCP, UDP PCTYPES for RSS.
Add a Virtchnl offload to support this.
Without this patch VF drivers will not be able to support
the correct PCTYPES for X722 and UDP flows will not fan out.
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/base
This patch adds 7 new register definitions for programming the
parser, flow director and RSS blocks in the HW.
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/base/i40e_register.h | 48 +++
drivers/net/i40e/i40e_ethdev.c| 11
RX control register read/write functions are added, as directly
read/write may fail when under stress small traffic. After the
adminq is ready, all rx control registers should be read/written
by dedicated functions.
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
doc/guides/rel_notes
It adds coding style fixes.
Signed-off-by: Helin Zhang
Acked-by: Jingjing Wu
---
drivers/net/i40e/base/i40e_common.c | 19 ---
1 file changed, 12 insertions(+), 7 deletions(-)
v4:
- Reworded the commit logs.
diff --git a/drivers/net/i40e/base/i40e_common.c
b/drivers/net
1 - 100 of 950 matches
Mail list logo