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 D5E6BA0531; Tue, 4 Feb 2020 09:47:56 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2AC701C000; Tue, 4 Feb 2020 09:47:56 +0100 (CET) Received: from mail-io1-f68.google.com (mail-io1-f68.google.com [209.85.166.68]) by dpdk.org (Postfix) with ESMTP id 6FD181BFAE for ; Tue, 4 Feb 2020 09:47:54 +0100 (CET) Received: by mail-io1-f68.google.com with SMTP id k24so20019184ioc.4 for ; Tue, 04 Feb 2020 00:47:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=NxdsdpNg7U3FMzTGsdI42rJ1KuDLdkUWFsRzryOeCc0=; b=VVvUq7Db5ci3235lnsQoM84ZLBcqkTegQr4a0+bBtThqM0spGd9pEj+X2HMNqXXtPC gSRHtL8HrEZ/Ek+ymFSJpvh9sP2ycXncLwBk0gvI54wDpgACxLPiQmGQp1x7dXwTXJMa PZyu5ps/rpNnCxgXGxXR8/lOFRjOJg3Eq8irRb4HVGVCObRchwyEy2uTSjPtUko4alDb OmgJF3A4zfb3T8YqIDihvdtYgdwibaTQTVhedmNdxz0X6w0hum3sPMTMT3DH6dSVL0qS DAYm8ZzwBGhgXlxvYiP2dzzIWv65AomVF17ITJu2/tSpebZrlUZXJQF4/439aOc8AR+I DrvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=NxdsdpNg7U3FMzTGsdI42rJ1KuDLdkUWFsRzryOeCc0=; b=ij4j51A2QUgWYlczU8mPe/W15ndeHqUTDmepyhneIY7w02ST5sOmoJPlEPEZv4KQPT xQyqJAgGWGGApxAnL/5XjL2KB/CBeaV3J5dvqIBviaK5Pt9/NdYK7ftj5MqvXIA7u2eF bKzuNfFQK+8l0HRupXjDKYzYj/7BFrtS3fDMmAbrhPhY+BiebJqLvM7+MgXJM9ihyUqd 0XKsnt+6wRGbtkJBQkrzrZRRo71tWDq83GlTh1RwGHcV41uXG4JerfijT+RD7ZuEuDsT fmbib7dh9NWfmsLGQx3WBxKdsZuaibhQfhdMmDKn4UKu73KOz/h+BaG5z+wqrlAT19ao 2g/w== X-Gm-Message-State: APjAAAXYG2CDhPORZOPjdoA950i+RU1lOS1l98LtcoXlT9uyV8sUNokf WirgKpVx9lULN8FVt5xzFimIEE0x/Vgu27DN6A3I6+pL X-Google-Smtp-Source: APXvYqxVgTRjHIXHRo/SBYe5ornEWR+00ywR9tUUAeOuPPy2UjzRIOzk5+xSYvS4uZh4OmEouPwsP4PTXlLeAi8iFxM= X-Received: by 2002:a5d:8c89:: with SMTP id g9mr22412542ion.178.1580806073492; Tue, 04 Feb 2020 00:47:53 -0800 (PST) MIME-Version: 1.0 From: =?UTF-8?Q?J=C3=BAlius_Milan?= Date: Tue, 4 Feb 2020 11:47:42 +0100 Message-ID: To: dev@dpdk.org, jgrajcia@cisco.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=C3=BAlius 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[] =3D { NULL }; +static const struct rte_eth_link pmd_link =3D { + .link_speed =3D ETH_SPEED_NUM_10G, + .link_duplex =3D ETH_LINK_FULL_DUPLEX, + .link_status =3D ETH_LINK_DOWN, + .link_autoneg =3D 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 =3D eth_dev->data; data->dev_private =3D pmd; data->numa_node =3D numa_node; + data->dev_link =3D pmd_link; data->mac_addrs =3D ether_addr; eth_dev->dev_ops =3D &ops; --=20 2.17.1