blob: 14942307d305e3813fd5fec74186c50d9d9b99d3 [file] [log] [blame]
Damjan Marioneacde3f2018-09-25 10:19:25 +02001From b47596e5d3db40b967b4d67207bb2d87db214f2e Mon Sep 17 00:00:00 2001
2From: Damjan Marion <damarion@cisco.com>
3Date: Tue, 25 Sep 2018 10:02:58 +0200
4Subject: [PATCH] net/i40e: fix 25G AOC and ACC cable detection on XXV710
5
6Fixes: 75d133dd3296 ("net/i40e: enable 25G device")
7Cc: stable@dpdk.org
8
9Signed-off-by: Damjan Marion <damarion@cisco.com>
10---
11 drivers/net/i40e/i40e_ethdev.h | 4 +++-
12 1 file changed, 3 insertions(+), 1 deletion(-)
13
14diff --git a/drivers/net/i40e/i40e_ethdev.h b/drivers/net/i40e/i40e_ethdev.h
15index 3fffe5a55..b876933e5 100644
16--- a/drivers/net/i40e/i40e_ethdev.h
17+++ b/drivers/net/i40e/i40e_ethdev.h
18@@ -1393,6 +1393,8 @@ i40e_calc_itr_interval(bool is_pf, bool is_multi_drv)
19 (((phy_type) & I40E_CAP_PHY_TYPE_25GBASE_KR) || \
20 ((phy_type) & I40E_CAP_PHY_TYPE_25GBASE_CR) || \
21 ((phy_type) & I40E_CAP_PHY_TYPE_25GBASE_SR) || \
22- ((phy_type) & I40E_CAP_PHY_TYPE_25GBASE_LR))
23+ ((phy_type) & I40E_CAP_PHY_TYPE_25GBASE_LR) || \
24+ ((phy_type) & I40E_CAP_PHY_TYPE_25GBASE_AOC) || \
25+ ((phy_type) & I40E_CAP_PHY_TYPE_25GBASE_ACC))
26
27 #endif /* _I40E_ETHDEV_H_ */
28--
292.17.1
30