From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f68.google.com (mail-lf0-f68.google.com [209.85.215.68]) by dpdk.org (Postfix) with ESMTP id 573D67CBD for ; Mon, 4 Jun 2018 14:10:21 +0200 (CEST) Received: by mail-lf0-f68.google.com with SMTP id i83-v6so12655432lfh.5 for ; Mon, 04 Jun 2018 05:10:21 -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=jYRO1wXbcxWKRROazckd/6PJOPnI3zId8IyAsMtE29M=; b=Nr/mPCsTps7gwE9WJ11Rw6RpGXlua/9oKt0t3F8XiQeISOQv5aFIsQRi+40c+2H7RJ pg7Sc3KIHM4F6noncIR0FV0ncMjfp2JW88rMNw2gZFlPI0SLEeORvJA7OXUEEo0yLBsh MGQTlTUjF/O298oE/1ZwNwSfqMPlH1RPSe6YuS9ufBlt9xnKFWBjW2P+HF0wl1C0Wo8g U3Oy/tjYDZ2r3A731+gMJoOYrUtvDdA3ud6tM1wQ8dCcwn70HTetfzGY40k0IQ7tf3D1 ehOb2a67YLB0E40wTL2wgrXnOzOf8PG1/bOS3nnJNbRlprCyBGeNkhEGPRjwP6V0c3Jc VC4A== 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=jYRO1wXbcxWKRROazckd/6PJOPnI3zId8IyAsMtE29M=; b=iWiEK3pfXuZHDEo33XZa4TIpBnLzV6kbsQQfEYG9Q3F4ttH+3GNkE4DTqZ2INtuCqU e9nBqROMXTcRyLp2hiTSFJshkPJHxN7xrdLny6s1/HRVk05os9Kp/2R/jxAWtuwGt4kY BMbOT2YQHOyvH0lxIUiXvoeDqCqzcByXUYdvKY7NtPBfWSfW1pAhTJkuP1U+xzcIg9jj MFvRxlbXztZSOSP9Ren6YvIj+2aKf/tdBjYFqlhEy0mvHrNvZXBUx4b3Qukxr3va6p4Y TE1nrzeCPwoCA5jR6HNPu2oPCp2Oy1r/aF6UKOqxt94qUs/hDNgntVCLpDYHau9goj1L 2E9w== X-Gm-Message-State: ALKqPweMBdSXKu7OdOHtVnoGosFpCWSnEU2K9ymN2h1LMPlHbDjwOisA 5G0SEP9UR+lSWcQyfFT8d1x7mw== X-Google-Smtp-Source: ADUXVKKJv8Z0zIMr/dwoWS7scruVpINASWzRC39dkC0kT184f8tcZorfKlJ38QaiW8jhIl9gUZaWug== X-Received: by 2002:a2e:7403:: with SMTP id p3-v6mr8161309ljc.59.1528114221054; Mon, 04 Jun 2018 05:10:21 -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 g23-v6sm3817415lfi.49.2018.06.04.05.10.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Jun 2018 05:10:20 -0700 (PDT) From: Michal Krawczyk To: Marcin Wojtas , Michal Krawczyk , Guy Tzalik , Evgeny Schemeilin Cc: dev@dpdk.org, matua@amazon.com, Rafal Kozik Date: Mon, 4 Jun 2018 14:09:54 +0200 Message-Id: <20180604120955.17319-17-mk@semihalf.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180604120955.17319-1-mk@semihalf.com> References: <20180604120955.17319-1-mk@semihalf.com> Subject: [dpdk-dev] [PATCH v2 26/26] 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: Mon, 04 Jun 2018 12:10:21 -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 d2000f303..53b61592b 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