diff mbox series

net/i40e: Add support for 25G AOC/ACC cables

Message ID 1618327790-5299-1-git-send-email-yury.kylulin@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Qi Zhang
Headers show
Series net/i40e: Add support for 25G AOC/ACC cables | expand

Checks

Context Check Description
ci/iol-testing success Testing PASS
ci/intel-Testing success Testing PASS
ci/iol-abi-testing success Testing PASS
ci/Intel-compilation success Compilation OK
ci/github-robot success github build: passed
ci/travis-robot success travis build: passed
ci/checkpatch success coding style OK

Commit Message

Yury Kylulin April 13, 2021, 3:29 p.m. UTC
Enable additional PHY types (25G-AOC and 25G-ACC) for set PHY config
command.

Signed-off-by: Yury Kylulin <yury.kylulin@intel.com>
Tested-by: Ashish Paul <apaul@juniper.net>
---
 drivers/net/i40e/i40e_ethdev.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Zhang, Qi Z April 15, 2021, 12:26 p.m. UTC | #1
> -----Original Message-----
> From: dev <dev-bounces@dpdk.org> On Behalf Of Yury Kylulin
> Sent: Tuesday, April 13, 2021 11:30 PM
> To: Xing, Beilei <beilei.xing@intel.com>
> Cc: dev@dpdk.org; apaul@juniper.net; Kylulin, Yury <yury.kylulin@intel.com>
> Subject: [dpdk-dev] [PATCH] net/i40e: Add support for 25G AOC/ACC cables
> 
> Enable additional PHY types (25G-AOC and 25G-ACC) for set PHY config
> command.
> 
> Signed-off-by: Yury Kylulin <yury.kylulin@intel.com>
> Tested-by: Ashish Paul <apaul@juniper.net>

Applied to dpdk-next-net-intel.

Thanks
Qi
diff mbox series

Patch

diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c
index c03e4a0..4271740 100644
--- a/drivers/net/i40e/i40e_ethdev.c
+++ b/drivers/net/i40e/i40e_ethdev.c
@@ -2306,7 +2306,8 @@  void i40e_flex_payload_reg_set_default(struct i40e_hw *hw)
 	phy_conf.phy_type = is_up ? cpu_to_le32(phy_type_mask) : 0;
 	phy_conf.phy_type_ext = is_up ? (I40E_AQ_PHY_TYPE_EXT_25G_KR |
 		I40E_AQ_PHY_TYPE_EXT_25G_CR | I40E_AQ_PHY_TYPE_EXT_25G_SR |
-		I40E_AQ_PHY_TYPE_EXT_25G_LR) : 0;
+		I40E_AQ_PHY_TYPE_EXT_25G_LR | I40E_AQ_PHY_TYPE_EXT_25G_AOC |
+		I40E_AQ_PHY_TYPE_EXT_25G_ACC) : 0;
 	phy_conf.fec_config = phy_ab.fec_cfg_curr_mod_ext_info;
 	phy_conf.eee_capability = phy_ab.eee_capability;
 	phy_conf.eeer = phy_ab.eeer_val;