some debug traces to help debugging.
Wei Dai (7):
net/ixgbe/base: support Broadwell-DE XFI backplane
net/ixgbe/base: remove a compiler warning
net/ixgbe/base: configure speeds for KR/KX backplane
net/ixgbe/base: support Marvell 1000BASE-T PHYs
net/ixgbe/base: use clause 22 MDIO functions for
This patch adds initial support for a Braodwell-DE XFI backplane
interface. The XFI backplane requires a custom tuned link.
Hardware/Firmware owns the link config for XF backplane and software
must not interfere with it.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_api.c | 1
This patch sets the MDIO(Management Data Input/Output Interface)
read/write function ponters for Broadwell+Marvell PHYs to use
the clause 22 functions. Marvell PHYs do not support clause 45.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_x550.c | 4
1 file changed, 4 insertions
This patch adds some traces in the reset_hw logic
and semaphore acquisition logic to help debugging.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_common.c | 7 -
drivers/net/ixgbe/base/ixgbe_phy.c| 16 +---
drivers/net/ixgbe/base/ixgbe_x540.c | 11 ++--
drivers
This patch fixes a compiler warning.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ixgbe/base/ixgbe_common.c
b/drivers/net/ixgbe/base/ixgbe_common.c
index 18bb18c..0dd33b8 100644
--- a/drivers
2.5G configurations.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_x550.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c
b/drivers/net/ixgbe/base/ixgbe_x550.c
index 2f7f446..b23d479 100644
--- a/drivers/net/ixgbe/base
update version of shared code to 2017-01-05 in README.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/README | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ixgbe/base/README b/drivers/net/ixgbe/base/README
index 1936191..0a6054f 100644
--- a/drivers/net/ixgbe
This patch adds initial support for Marvell 1000BASE-T PHYs
on Broadwell-DE.
Firmware owns the link config for Marvell PHYs on Broadwell-DE,
software should not touch it.
Also Broadwell-DE is not capable of speeds lower than 1Gb.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_phy.c
also
add some debug traces to help debugging.
Wei Dai (7):
net/ixgbe/base: support XFI backplane for X550
net/ixgbe/base: remove a compiler warning
net/ixgbe/base: configure speeds for KR/KX backplane
net/ixgbe/base: support Marvell 1000BASE-T PHYs
net/ixgbe/base: use clause 22 MDIO
This patch adds initial support for a XFI backplane interface on some
future new platforms. The XFI backplane requires a custom tuned link.
Hardware/Firmware owns the link config for XF backplane and software
must not interfere with it.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base
This patch fixes a compiler warning.
In ixgbe_init_led_link_act_generic() of
drivers/net/ixgbe/base/ixgbe_common.c, u16 i will
make some C compiler generate a warning for the line
mac->led_link_act = i where led_link_act is u8 .
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_commo
2.5G configurations.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_x550.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c
b/drivers/net/ixgbe/base/ixgbe_x550.c
index 2f7f446..b23d479 100644
--- a/drivers/net/ixgbe/base
This patch sets the MDIO(Management Data Input/Output Interface)
read/write function ponters for Marvell PHYs on some X550 platforms
to use the clause 22 functions. Marvell PHYs do not support clause 45.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_x550.c | 4
1 file changed, 4
update version of shared code to 2017-01-05 in README.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/README | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ixgbe/base/README b/drivers/net/ixgbe/base/README
index 1936191..0a6054f 100644
--- a/drivers/net/ixgbe
This patch adds initial support for Marvell 1000BASE-T PHYs
on some X550 platforms.
Firmware owns the link config for Marvell PHYs on these platforms,
software should not touch it.
Also these platforms are not capable of speeds lower than 1Gb.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base
This patch adds some traces in the reset_hw logic
and semaphore acquisition logic to help debugging.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_common.c | 7 -
drivers/net/ixgbe/base/ixgbe_phy.c| 16 +---
drivers/net/ixgbe/base/ixgbe_x540.c | 11 ++--
drivers
Ignore the error=IXGBE_ERR_SFP_NOT_PRESENT when SFP is not present.
If it is not ignored, testpmd will in the NIC initialization process.
Ixgbe kernel driver ignores this error and works well. So DPDK
does same thing.
Signed-off-by: Wei Dai
Signed-off-by: Helin Zhang
Tested-by: Yuan Peng
Add more details when the filter mode can't be successfully configured.
These details tell user what filter configuration is right.
Reported-by: Yulong Pei
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/ixgbe_fdir.c | 13 +++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff
Add more details when the filter mode can't be successfully configured.
These details tell user what filter configuration is right.
Reported-by: Yulong Pei
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/ixgbe_fdir.c | 13 +++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff
The previously generic PHY reset check is not sufficient
for the PHY type = ixgbe_phy_x550em_ext_t.
This patch fixes it.
Fixes: af75078fece3 ("first public release")
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_phy.c | 29 -
1 file changed, 24
Devices that cannot go 10G can safely select a faster MDIO speed than
those devices that can possibly connect at 10G. So select the higher
speed for those devices.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_x550.c | 9 +++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff
Specifically the RAR entry for the SAN MAC address is being
cleared when the VMDq pool bits are cleared. In order to prevent
this we need to add an extra check to protect the SAN MAC from
being cleared.
Fixes: af75078fece3 ("first public release")
Signed-off-by: Wei Dai
---
drivers
previous method to identify the CS4223/CS4227 is incorrect and
unreliable. This patch provide a new register to differentiate
between these PHY SKUs.
Fixes: fc0559bdb5e3 ("net/ixgbe/base: add link MAC setup for X550a SFP+")
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_
This patch adds support to get the LED link active via the LEDCTL
register. If the LEDCTL register does not have LED link active
(LED mode field = 0x0100) set then default LED link active returned.
LED link active is used for adapter identify/blink support.
Signed-off-by: Wei Dai
---
drivers
This patch cleans up the code and clarifies the comment around
the X557 PHY link status check in ixgbe_check_link_t_x550em( ).
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_x550.c | 25 +++--
1 file changed, 11 insertions(+), 14 deletions(-)
diff --git a/drivers
This patch sends the driver version string to firmware through
the host interface command on x550 devices.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_api.c| 7 ++--
drivers/net/ixgbe/base/ixgbe_api.h| 2 +-
drivers/net/ixgbe/base/ixgbe_common.c | 4 ++-
drivers/net/ixgbe
This patch fixes ixgbe_get_supported_physical_layer_X550em to
correctly return physical layer as IXGBE_PHYSICAL_LAYER_1000BASE_T
for some devices.
Fixes: 76d5b807ff74 ("ixgbe/base: new X557 phy")
Fixes: d2e72774e58c ("ixgbe/base: support X550")
Signed-off-by: Wei Dai
---
dr
.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_x540.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/net/ixgbe/base/ixgbe_x540.c
b/drivers/net/ixgbe/base/ixgbe_x540.c
index 6e778bc..49bf154 100644
--- a/drivers/net/ixgbe/base/ixgbe_x540.c
+++ b
r this bit, for X553 devices.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_x550.c | 31 ++-
1 file changed, 22 insertions(+), 9 deletions(-)
diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c
b/drivers/net/ixgbe/base/ixgbe_x550.c
index 28c7ce3..fecc8e6 10
The MAC register NW_MNG_IF_SEL fields have been redefined for X553.
These changes impact the iXFI driver code flow. Since iXFI is only
supported in X552, this patch adds X552 MAC check for iXFI flows.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_type.h | 4 ++--
drivers/net/ixgbe
Remove some specific code for enabling/disabling
EEE. Those were added previously and now are
in "removed" status.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_x550.c | 61 ++---
1 file changed, 10 insertions(+), 51 deletions(-)
diff --git
This patch fixes ixgbe_setup_sgmii_m88 to set lane speed to autoneg
instead of 1G to prevent problems with link between PHYs
Fixes: d4b4c6845487 ("net/ixgbe/base: add X550em_a FW ALEF support")
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_x550.c | 2 +-
1 file changed, 1
This patch updates ixgbe_setup_phy_link_generic to set/unset
auto-negotiation for all speeds. This ensures that unsupported
speeds are unset. This is necessary since the PHY NVM may
advertise unsupported speeds.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_phy.c | 130
Implement support for new firmware commands to be used to access
and control some PHYs.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_common.h | 4 +-
drivers/net/ixgbe/base/ixgbe_osdep.h | 3 +-
drivers/net/ixgbe/base/ixgbe_type.h | 70 ++-
drivers/net/ixgbe/base
This patch is needed for base driver support because the NW_MNG_IF_SEL
register fields are used to determine SGMII link for busy SGMII register
reads.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_x550.c | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers
This patch moves some of the extended speeds that come with X552
(5G, 2.5G, 10M) into the link check functions.
It also now returns speed_unknown for speeds that are not known
how to interpret.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/Makefile | 1 +
drivers/net/ixgbe/base
Use the new firmware interface to access and control some PHYs.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_phy.c | 4 -
drivers/net/ixgbe/base/ixgbe_phy.h | 67 --
drivers/net/ixgbe/base/ixgbe_type.h | 2 +-
drivers/net/ixgbe/base/ixgbe_x550.c | 412
ixgbe_read_i2c_combined_generic_int() is only used by devices >= X550.
Set the initial value accordingly and remove the MAC check.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_phy.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/net/ixgbe/b
The first PHY ID for X550 was only used on original HW and
never released. So remove these unused PHY ID.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_phy.c | 1 -
drivers/net/ixgbe/base/ixgbe_type.h | 1 -
2 files changed, 2 deletions(-)
diff --git a/drivers/net/ixgbe/base
The "FW" PHY type now supports speeds 10M, 100M, and 1G. Previously,
only the 1G speed was reported in the
ixgbe_get_supported_physical_layer_X550em() function for this PHY type.
This patch is to add the 10M and 100M options.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_
Since only X550 devices have support for 5G, so it should be checked
for that speed on such devices.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_common.c | 2 +-
drivers/net/ixgbe/base/ixgbe_hv_vf.c | 2 +-
drivers/net/ixgbe/base/ixgbe_vf.c | 2 +-
3 files changed, 3 insertions
advertising TX.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_x550.c | 16 +---
1 file changed, 1 insertion(+), 15 deletions(-)
diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c
b/drivers/net/ixgbe/base/ixgbe_x550.c
index f1f1fbe..49b59e7 100644
--- a/drivers/net/ixgbe/base
This register was incorrect when compared to the data sheet.
Even though the Linux kernel and DPDK polling mode driver doesn't
currently use this register, it is better to fix it upstream.
Fixes: af75078fece3 ("first public release")
Signed-off-by: Wei Dai
---
drivers
This patch updates Inphi configuration to flush the register write with
a reg read. Inphi is configured in ixgbe_setup_mac_link_sfp_x550a.
The Inphy setup flow has been updated to read configuration reg, write
only linear/non-linear, and then read (write flush).
Signed-off-by: Wei Dai
EEE status correctly.
This also deletes some now-unused definitions from an earlier
Marvell PHY implementation and combines a device ID check into a
switch statement.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_type.h | 8
drivers/net/ixgbe/base/ixgbe_x550.c | 15
For the PHY type SGMII, we need to report the physical layer
so the OS can display the correct link connection.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_x550.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c
b/drivers/net/ixgbe/base
remove unused old EEE code.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_x550.c | 113 +---
drivers/net/ixgbe/base/ixgbe_x550.h | 2 -
2 files changed, 1 insertion(+), 114 deletions(-)
diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c
b/drivers/net
update the version of shared codes to cid-ixgbe.2016.11.21.tar.gz,
all files in net/ixgbe/base are developped by another team and
DPDK PMD uses them accordingly.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/README | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a
/ixgbe/base: add EEE support for some PHYs
the 25th of v2 is net/ixgbe/base: remove unused enum type
correct RAEDME
Wei Dai (30):
net/ixgbe/base: fix PHY reset check for x550em-ext
net/ixgbe/base: fix clearing SAN MAC address
net/ixgbe/base: use fast MDIO for non-10G devices
net
Receive Address Register (RAR) entries, including SAN MAC address,
are cleared when VMDq pool bits are cleared.
Prevent SAN MAC address to be cleared.
Fixes: af75078fece3 ("first public release")
CC: sta...@dpdk.org
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_common.c
PHY type ixgbe_phy_x550em_ext_t requires different check
to verify reset status.
Fixes: af75078fece3 ("first public release")
CC: sta...@dpdk.org
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_phy.c | 29 -
1 file changed, 24 insertions(+), 5
Send the driver version string to firmware through
the host interface command on x550 devices.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_api.c| 7 ++--
drivers/net/ixgbe/base/ixgbe_api.h| 2 +-
drivers/net/ixgbe/base/ixgbe_common.c | 4 ++-
drivers/net/ixgbe/base
This patch cleans up the code and clarifies the comment around
the X557 PHY link status check in ixgbe_check_link_t_x550em().
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_x550.c | 25 +++--
1 file changed, 11 insertions(+), 14 deletions(-)
diff --git a/drivers
Method to identify the CS4223/CS4227 is incorrect and unreliable.
Provide a new register to differentiate between these PHY SKUs.
Fixes: fc0559bdb5e3 ("net/ixgbe/base: add link MAC setup for X550a SFP+")
CC: sta...@dpdk.org
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_
Devices that cannot go 10G speeds can safely select a faster
Management Data Input/Output (MDIO) speed.
Select fast MDIO clock speed for for those devices.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_x550.c | 9 +++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a
The variable checksum_last_word is used only for bounds check.
So remove this variable and use IXGBE_EEPROM_CHECKSUM directly.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_x540.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/net/ixgbe/base
having KR support, which
performs auto-negotiations and which is used as the internal
link to the external PHY.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_x550.c | 31 ++-
1 file changed, 22 insertions(+), 9 deletions(-)
diff --git a/drivers/net/ixgbe
Add support to get the link active LED index via the LEDCTL register.
If the LEDCTL register does not have link active LED set then
use MAC default LED index.
Link active LED is used for adapter identify/blink support.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_common.c | 45
The MAC register NW_MNG_IF_SEL fields have been redefined for X553.
These changes impact the iXFI driver code flow. Since iXFI is only
supported in X552, this patch adds X552 MAC check for iXFI flows.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_type.h | 4 ++--
drivers/net/ixgbe
Return correct physical layer for some x550 devices.
Fixes: 76d5b807ff74 ("ixgbe/base: new X557 phy")
Fixes: d2e72774e58c ("ixgbe/base: support X550")
CC: sta...@dpdk.org
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_x550.c | 2 ++
1 file changed, 2 inserti
Fix ixgbe_setup_sgmii_m88 to set lane speed to autoneg instead of 1G
to prevent problems with link between PHYs
Fixes: d4b4c6845487 ("net/ixgbe/base: add X550em_a FW ALEF support")
CC: sta...@dpdk.org
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_x550.c | 2 +-
1 file
Update ixgbe_setup_phy_link_generic that set/unset auto-negotiation.
Ensure that unsupported auto-negotiation speeds are unset.
This is necessary since the PHY NVM may advertise unsupported speeds.
Fixes: af75078fece3 ("first public release")
CC: sta...@dpdk.org
Signed-off-b
Remove some specific code for enabling/disabling Energy Efficient
Ethernet (EEE).
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_x550.c | 61 ++---
1 file changed, 10 insertions(+), 51 deletions(-)
diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c
b
Use the new firmware interface to access and control some PHYs.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_phy.c | 4 -
drivers/net/ixgbe/base/ixgbe_phy.h | 67 --
drivers/net/ixgbe/base/ixgbe_type.h | 2 +-
drivers/net/ixgbe/base/ixgbe_x550.c | 412
This patch moves some of the extended speeds that come with X552
(5G, 2.5G, 10M) into the link check functions.
It also now returns speed_unknown for speeds that are not known
how to interpret.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/Makefile | 1 +
drivers/net/ixgbe/base
Read and store NW_MNG_IF_SEL register because register fields are
used to determine SGMII link for busy SGMII register reads.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_x550.c | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ixgbe/base/ixgbe_x550
Only X550 devices support 5Gb. MAC type checks for 5Gb should
be done only for X550 devices.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_common.c | 2 +-
drivers/net/ixgbe/base/ixgbe_hv_vf.c | 2 +-
drivers/net/ixgbe/base/ixgbe_vf.c | 2 +-
3 files changed, 3 insertions(+), 3
Implement support for new firmware commands to be used to access
and control some PHYs.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_common.h | 4 +-
drivers/net/ixgbe/base/ixgbe_osdep.h | 3 +-
drivers/net/ixgbe/base/ixgbe_type.h | 70 ++-
drivers/net/ixgbe/base
The "FW" PHY type now supports speeds 10M, 100M, and 1G.
Previously, only the 1G speed was reported for this PHY type.
Add reporting 10M and 100M speed options.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_type.h | 1 +
drivers/net/ixgbe/base/ixgbe_x550.c | 8 +++
ixgbe_read_i2c_combined_generic_int() is only used by devices >= X550.
Set the initial value accordingly and remove the MAC type check.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_phy.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/net/ixgbe/b
.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_x550.c | 16 +---
1 file changed, 1 insertion(+), 15 deletions(-)
diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c
b/drivers/net/ixgbe/base/ixgbe_x550.c
index f1f1fbe..49b59e7 100644
--- a/drivers/net/ixgbe/base/ixgbe_x550.c
The first PHY ID for X550 was only used on original HW and
never released. So remove these unused PHY ID.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_phy.c | 1 -
drivers/net/ixgbe/base/ixgbe_type.h | 1 -
2 files changed, 2 deletions(-)
diff --git a/drivers/net/ixgbe/base
remove unused enum type for master/slave control
in ixbge_type.h
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_type.h | 8
1 file changed, 8 deletions(-)
diff --git a/drivers/net/ixgbe/base/ixgbe_type.h
b/drivers/net/ixgbe/base/ixgbe_type.h
index 9ec17a9..f1761a3 100644
Remove unused old Energy Efficient Ethernet (EEE) code.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_x550.c | 113 +---
drivers/net/ixgbe/base/ixgbe_x550.h | 2 -
2 files changed, 1 insertion(+), 114 deletions(-)
diff --git a/drivers/net/ixgbe/base
This register was incorrect when compared to the data sheet.
Even though the driver doesn't currently use this register,
it is better to fix it upstream.
Fixes: af75078fece3 ("first public release")
CC: sta...@dpdk.org
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_t
area because the driver will not report the
EEE status correctly.
This also deletes some now-unused definitions from an earlier
Marvell PHY implementation and combines a device ID check into a
switch statement.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_x550.c | 15
flush).
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_x550.c | 14 ++
1 file changed, 14 insertions(+)
diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c
b/drivers/net/ixgbe/base/ixgbe_x550.c
index 4a98530..a57ba74 100644
--- a/drivers/net/ixgbe/base/ixgbe_x550.c
+++ b
For the PHY type SGMII, report the pyhsical layer.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/ixgbe_x550.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c
b/drivers/net/ixgbe/base/ixgbe_x550.c
index a57ba74..782ca91 100644
--- a/drivers/net
update the version of shared codes to cid-ixgbe.2016.11.21.tar.gz,
all files in net/ixgbe/base are developped by another team and
DPDK PMD uses them accordingly.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/base/README | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a
dev_init() can be packed into a
single interface API rte_eth_dev_reset().
Signed-off-by: Wei Dai
---
lib/librte_ether/rte_ethdev.c | 16
lib/librte_ether/rte_ethdev.h | 12
lib/librte_ether/rte_ether_version.map | 2 +-
3 files changed, 29
figure its forwarding
mode and parmaters as previous ones.
To avoid crash, current forwarding should be stopped
before running "port reset port_id".
Signed-off-by: Wei Dai
Tested-by: Yuan Peng
Acked-by: Jingjing Wu
---
app/test-pmd/cmdline.c | 10
Reset a NIC by calling dev_uninit and then dev_init.
Go through same way in NIC PCI remove without release of
ethdev resource and then NIC PCI probe function without
ethdev resource allocation.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/ixgbe_ethdev.c | 42
in other way
disable PF reset when its VF is ative to avoid unexpected VF behavior
v4:
add PCI address to confirm its port number keep same
correct test method in cover letter
v3:
update testpmd command
v2:
only reset PMD layer resource and keep same port id, but
not restore settings
S
Reset a NIC by calling dev_uninit() and then dev_init().
Go through the same way in NIC PCI remove without release
of ethdev resource and then NIC PCI probe function without
ethdev resource allocation.
Signed-off-by: Wei Dai
---
drivers/net/i40e/i40e_ethdev.c| 20
function is needed, what this function does and what an application
should do after calling this function.
Signed-off-by: Wei Dai
---
lib/librte_ether/rte_ethdev.c | 16
lib/librte_ether/rte_ethdev.h | 45 ++
lib/librte_ether
Reset a NIC by calling dev_uninit and then dev_init.
Go through same way in NIC PCI remove without release of
ethdev resource and then NIC PCI probe function without
ethdev resource allocation.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/ixgbe_ethdev.c | 47
e testpmd command
v2:
only reset PMD layer resource and keep same port id, but
not restore settings
Signed-off-by: Wei Dai
Tested-by: Yuan Peng
Acked-by: Jingjing Wu
Wei Dai (4):
ethdev: add support of NIC reset
net/ixgbe: add support of reset
net/i40e: add support of reset
app/test
Reset a NIC by calling dev_uninit() and then dev_init().
Go through the same way in NIC PCI remove without release
of ethdev resource and then NIC PCI probe function without
ethdev resource allocation.
Signed-off-by: Wei Dai
---
drivers/net/i40e/i40e_ethdev.c| 28
figure its forwarding
mode and parmaters as previous ones.
To avoid crash, current forwarding should be stopped
before running "port reset port_id".
Signed-off-by: Wei Dai
Tested-by: Yuan Peng
Acked-by: Jingjing Wu
---
app/test-pmd/cmdline.c | 10
er keep same
correct test method in cover letter
v3:
update testpmd command
v2:
only reset PMD layer resource and keep same port id, but
not restore settings
Signed-off-by: Wei Dai
Tested-by: Yuan Peng
Acked-by: Jingjing Wu
Wei Dai (5):
ethdev: add support of NIC reset
net/ixgbe: add su
function is needed, what it does, when it should be called
and what an application should do after calling this function.
Signed-off-by: Wei Dai
---
lib/librte_ether/rte_ethdev.c | 17
lib/librte_ether/rte_ethdev.h | 73 ++
lib
Reset a NIC by calling dev_uninit() and then dev_init().
Go through the same way in NIC PCI remove without release
of ethdev resource and then NIC PCI probe function without
ethdev resource allocation.
Signed-off-by: Wei Dai
---
drivers/net/i40e/i40e_ethdev.c| 28
Signed-off-by: Wei Dai
---
doc/guides/prog_guide/poll_mode_drv.rst | 40 +
1 file changed, 40 insertions(+)
diff --git a/doc/guides/prog_guide/poll_mode_drv.rst
b/doc/guides/prog_guide/poll_mode_drv.rst
index 4987f70..60518fc 100644
--- a/doc/guides/prog_guide
Reset a NIC by calling dev_uninit and then dev_init.
Go through same way in NIC PCI remove without release of
ethdev resource and then NIC PCI probe function without
ethdev resource allocation.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/ixgbe_ethdev.c | 47
figure its forwarding
mode and parmaters as previous ones.
To avoid crash, current forwarding should be stopped
before running "port reset port_id".
Signed-off-by: Wei Dai
Tested-by: Yuan Peng
Acked-by: Jingjing Wu
---
app/test-pmd/cmdline.c | 12 +
way
disable PF reset when its VF is ative to avoid unexpected VF behavior
v4:
add PCI address to confirm its port number keep same
correct test method in cover letter
v3:
update testpmd command
v2:
only reset PMD layer resource and keep same port id, but
not restore settings
Signed-off-by:
function is needed, what it does, when it should be called
and what an application should do after calling this function.
Signed-off-by: Wei Dai
---
lib/librte_ether/rte_ethdev.c | 17 +
lib/librte_ether/rte_ethdev.h | 33 +
lib
figure its forwarding
mode and parmaters as previous ones.
To avoid crash, current forwarding should be stopped
before running "port reset port_id".
Signed-off-by: Wei Dai
Tested-by: Yuan Peng
Acked-by: Jingjing Wu
---
app/test-pmd/cmdline.c | 12 +
Reset a NIC by calling dev_uninit and then dev_init.
Go through same way in NIC PCI remove without release of
ethdev resource and then NIC PCI probe function without
ethdev resource allocation.
Signed-off-by: Wei Dai
---
drivers/net/ixgbe/ixgbe_ethdev.c | 47
Signed-off-by: Wei Dai
---
doc/guides/prog_guide/poll_mode_drv.rst | 40 +
1 file changed, 40 insertions(+)
diff --git a/doc/guides/prog_guide/poll_mode_drv.rst
b/doc/guides/prog_guide/poll_mode_drv.rst
index 4987f70..60518fc 100644
--- a/doc/guides/prog_guide
1 - 100 of 363 matches
Mail list logo