From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f65.google.com (mail-lf0-f65.google.com [209.85.215.65]) by dpdk.org (Postfix) with ESMTP id 4769B1B62E for ; Thu, 7 Jun 2018 11:44:29 +0200 (CEST) Received: by mail-lf0-f65.google.com with SMTP id v135-v6so13652115lfa.9 for ; Thu, 07 Jun 2018 02:44:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DjYLMuGpZUJfmfzt7jxk5dM2RJqZlgT4mwS024HyhTI=; b=YQ11l3LmR4iLUZ2pKjftQGxeeCF44KE/qpwJ6e7aRGIDVaPbqzbV+F9zZikP//wrCe tMSYgi1XFnNu8JM66lk9PifxDmJh5/xD27ybQmadcXUS1eiA7SnaBchAj/4kC//rNSJK ar7Um7Jdz28jy7JfrZz2O+2bYN4/yvksaI7BEz9TxhPPr6MFciOnUs2SSVW9vZLxKy/T ZkYxzI6edCIji8ug/OYSvli3ylvGyzu1OERHCpLgAOtviok/JglPpM5n9k0VX2ypfQZU wARNrYQL1fvpSXtbpVAQW50i/zCiKjS3NNM4HrdqQZGWeRKvGQ6P35O1YYbV4r6anMi2 Ouqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DjYLMuGpZUJfmfzt7jxk5dM2RJqZlgT4mwS024HyhTI=; b=gdc9C+hsbAD3mJUauazbEihy/WGAP9WkdI9ISftjRhrlYYe4RtDWjekza6Dc5cGrTB a6Y0nTc72ecKZC32bdpXzyJ1hP6OsGZacgBVbiM/gREa99cIs7hq9OSmHz2tujyYtZBB gEAing9aQZDCpTEJs96x7I3/+gx4vYtycFs8GdI0r1lfo+11KVwvvfNfgwj1zZBVMz+z WxDPEkUa7WQi+mHtTtHXkHlOyk3HzdBowQrg1FdlRSkDkqd9Dpq590bn53rsX2WxQJEI aJDY3NCNaS19AYKM8ZmHGt5Fs4Xs8ynjR9mXdGHQ6p3PbJ6tGdKBYKUe/itLTAJpScie oORA== X-Gm-Message-State: APt69E3/aNusQbn3mgeaeQY07+TVo4AXztPzmpzx6ibPO7muHtQYG73D LrGgmOEa0O6yGBAosNpWPXNyRw== X-Google-Smtp-Source: ADUXVKL8U89SLv0Awp2061dybD1wr8iUOZdQVZle+56VHJQORQFbN9w2m/KZmIYBhpw1BjLaZsmZfQ== X-Received: by 2002:a19:a413:: with SMTP id q19-v6mr805053lfc.143.1528364668954; Thu, 07 Jun 2018 02:44:28 -0700 (PDT) Received: from mkPC.semihalf.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id p28-v6sm3612368lfh.24.2018.06.07.02.44.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Jun 2018 02:44:27 -0700 (PDT) From: Michal Krawczyk To: Marcin Wojtas , Michal Krawczyk , Guy Tzalik , Evgeny Schemeilin Cc: dev@dpdk.org, matua@amazon.com, Rafal Kozik Date: Thu, 7 Jun 2018 11:43:22 +0200 Message-Id: <20180607094322.14312-27-mk@semihalf.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180607094322.14312-1-mk@semihalf.com> References: <20180607094322.14312-1-mk@semihalf.com> Subject: [dpdk-dev] [PATCH v3 27/27] net/ena: set link speed as none X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2018 09:44:29 -0000 From: Rafal Kozik Link speed should is not limited to 10Gb/s and it shouldn't be hardcoded. They link speed is set to none instead and the applications shouldn't rely on this value when using ENA PMD. Fixes: 1173fca ("ena: add polling-mode driver") Signed-off-by: Rafal Kozik Acked-by: Michal Krawczyk --- drivers/net/ena/ena_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c index 5c3b6494f..9ae73e331 100644 --- a/drivers/net/ena/ena_ethdev.c +++ b/drivers/net/ena/ena_ethdev.c @@ -848,7 +848,7 @@ static int ena_link_update(struct rte_eth_dev *dev, adapter = (struct ena_adapter *)(dev->data->dev_private); link->link_status = adapter->link_status ? ETH_LINK_UP : ETH_LINK_DOWN; - link->link_speed = ETH_SPEED_NUM_10G; + link->link_speed = ETH_SPEED_NUM_NONE; link->link_duplex = ETH_LINK_FULL_DUPLEX; return 0; -- 2.14.1