diff mbox

[dpdk-dev,3/4] szedata2: redesign link speed config

Message ID 1458047529-6522-4-git-send-email-vido@cesnet.cz (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Matej Vido March 15, 2016, 1:12 p.m. UTC
This patch sets value of flag link_autoneg in struct rte_eth_link
to ETH_LINK_SPEED_FIXED.

Signed-off-by: Matej Vido <vido@cesnet.cz>
---
 drivers/net/szedata2/rte_eth_szedata2.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/drivers/net/szedata2/rte_eth_szedata2.c b/drivers/net/szedata2/rte_eth_szedata2.c
index 854cb5c..0708e4a 100644
--- a/drivers/net/szedata2/rte_eth_szedata2.c
+++ b/drivers/net/szedata2/rte_eth_szedata2.c
@@ -1174,6 +1174,8 @@  eth_link_update(struct rte_eth_dev *dev,
 	link.link_status = (cgmii_ibuf_is_enabled(ibuf) &&
 			cgmii_ibuf_is_link_up(ibuf)) ? ETH_LINK_UP : ETH_LINK_DOWN;
 
+	link.link_autoneg = ETH_LINK_SPEED_FIXED;
+
 	rte_atomic64_cmpset((uint64_t *)dev_link, *(uint64_t *)dev_link,
 			*(uint64_t *)link_ptr);