net/txgbe: fix link process in KR mode

Set the 'present' parameter to 0 by default. It is configured by hardware,
users can set it to 1 for manual configuration.

Fixes: f611dada1a ("net/txgbe: update link setup process of backplane NICs")
Cc: stable@dpdk.org

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
This commit is contained in:
Jiawen Wu 2021-11-05 10:01:17 +08:00 committed by Ferruh Yigit
parent 8cc79a1636
commit b4ce1520c9
3 changed files with 3 additions and 3 deletions

View File

@ -110,7 +110,7 @@ Please note that following ``devargs`` are only set for backplane NICs.
Toggle behavior to enable/disable polling mode to receive AN interrupt.
- ``present`` (default **1**)
- ``present`` (default **0**)
Toggle behavior to use present mode or init mode.

View File

@ -1456,7 +1456,7 @@ txgbe_set_link_to_kr(struct txgbe_hw *hw, bool autoneg)
wr32_epcs(hw, SR_AN_CTRL, 0);
wr32_epcs(hw, VR_AN_KR_MODE_CL, 0);
}
if (hw->devarg.present == 1) {
if (hw->devarg.present == 1) {
value = rd32_epcs(hw, TXGBE_PHY_TX_EQ_CTL1);
value |= TXGBE_PHY_TX_EQ_CTL1_DEF;
wr32_epcs(hw, TXGBE_PHY_TX_EQ_CTL1, value);

View File

@ -495,7 +495,7 @@ txgbe_parse_devargs(struct txgbe_hw *hw, struct rte_devargs *devargs)
struct rte_kvargs *kvlist;
u16 auto_neg = 1;
u16 poll = 0;
u16 present = 1;
u16 present = 0;
u16 sgmii = 0;
u16 ffe_set = 0;
u16 ffe_main = 27;