From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 732F8A0531; Tue, 4 Feb 2020 10:30:28 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CC7B01C00D; Tue, 4 Feb 2020 10:30:27 +0100 (CET) Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by dpdk.org (Postfix) with ESMTP id 952EA1BFAB for ; Tue, 4 Feb 2020 10:30:26 +0100 (CET) Received: by mail-wr1-f68.google.com with SMTP id z3so22067930wru.3 for ; Tue, 04 Feb 2020 01:30:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :content-transfer-encoding:user-agent; bh=xQ6DM+121PF0N2XESofAbCVWvLq06owHmuKR1+OPJzo=; b=PWCPvOBgNYl2gBax5O2cw5W9pbnQ9dVI2tyejLc9PfB3FopJIrGdgKqcKZf0UYfGSc 0FZvEV9tNj8hNFJ6h7O2ORnlTztUHqddoZjaFxGjli9qT9x3rDfRyvVSsqHnVi4fRPfP bW/dUmS59z8mHgudYU5tK8O06SUTX6j391Zzkcy9TtzNZu8FhoFkzgmE07pB1kw39q8P 180NtCzyUw4xfPiDtg8/oAp/94vMZj5mSWqVQhfV6691XUeFU+avznivqZoWuwyBShrt jBquQ0nOnitLtHWXXo6hBtZp+TStMaHvT4GQyAlAzgPnaa67SqDEoZOKa6rGfXWi6Euu YM3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=xQ6DM+121PF0N2XESofAbCVWvLq06owHmuKR1+OPJzo=; b=F+/D3LDO7soMXV2KBKxi77JWINgYEUs2vuGjeHd3wz3vRV3N/avAQbH9+GnTFei08z VOekwQCF4GF3EV4zpj7sCJDisn8SEzPeCNkW7b5dmK5DnMoiIObXi8fH/iiTTEkqXaKa cLO02/XOfGCZVqzbz/0DwKXPrV5aZHWTvrbOmyTvFb/86u/V/WUy0+aF7xVj2u8LHWbQ +jNprSPgkLFzLu1hBO2ghkI+C3nj8/EKlD/u7MYpkGq8bd7MEgAhU5xJ5I3/XZcL+Eue i4zVLtMjyFQQzJn3l/f0vvINOMu0W5alZvNRUYFn2N+JQ9bb7rfCiyRF5gDZ0GYRo4XZ OmIQ== X-Gm-Message-State: APjAAAXiOf42BHWGMwaSIP83HIvS4z6FIdwFN+z2Q5fiEewLfFuelg7/ iJilKVIyhWh4/fcX20TUzBmBOUy2 X-Google-Smtp-Source: APXvYqx/IOi54fvmwxb02C16CMi6AZfX4gDhogUoosmna4Mo1YPSRYUPuUncFmaqwPHa/fumD7na1A== X-Received: by 2002:adf:ed09:: with SMTP id a9mr4668925wro.350.1580808626011; Tue, 04 Feb 2020 01:30:26 -0800 (PST) Received: from vbox (81.89.53.154.host.vnet.sk. [81.89.53.154]) by smtp.gmail.com with ESMTPSA id p7sm2889841wmp.31.2020.02.04.01.30.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Feb 2020 01:30:25 -0800 (PST) Date: Tue, 4 Feb 2020 12:30:24 +0100 From: =?iso-8859-1?Q?J=FAlius?= Milan To: dev@dpdk.org, jgrajcia@cisco.com Message-ID: <20200204113024.GA16593@vbox> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.9.4 (2018-02-28) Subject: [dpdk-dev] [PATCH] net/memif: add dev_link info 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This information is useful or needed for user applications as t-rex. Signed-off-by: Július Milan --- drivers/net/memif/rte_eth_memif.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/memif/rte_eth_memif.c b/drivers/net/memif/rte_eth_memif.c index 8dd1d0d63..27c0f0924 100644 --- a/drivers/net/memif/rte_eth_memif.c +++ b/drivers/net/memif/rte_eth_memif.c @@ -52,6 +52,13 @@ static const char * const valid_arguments[] = { NULL }; +static const struct rte_eth_link pmd_link = { + .link_speed = ETH_SPEED_NUM_10G, + .link_duplex = ETH_LINK_FULL_DUPLEX, + .link_status = ETH_LINK_DOWN, + .link_autoneg = ETH_LINK_AUTONEG +}; + #define MEMIF_MP_SEND_REGION "memif_mp_send_region" @@ -1488,6 +1495,7 @@ memif_create(struct rte_vdev_device *vdev, enum memif_role_t role, data = eth_dev->data; data->dev_private = pmd; data->numa_node = numa_node; + data->dev_link = pmd_link; data->mac_addrs = ether_addr; eth_dev->dev_ops = &ops; -- 2.17.1