DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/memif: add dev_link info
@ 2020-02-04 10:47 Július Milan
  0 siblings, 0 replies; 3+ messages in thread
From: Július Milan @ 2020-02-04 10:47 UTC (permalink / raw)
  To: dev, jgrajcia

This information is useful or needed for user applications as t-rex.

Signed-off-by: Július Milan <jmilan.dev@gmail.com>
---
 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] net/memif: add dev_link info
  2020-02-04 11:30 Július Milan
@ 2020-02-04 12:09 ` Ferruh Yigit
  0 siblings, 0 replies; 3+ messages in thread
From: Ferruh Yigit @ 2020-02-04 12:09 UTC (permalink / raw)
  To: Július Milan, dev, jgrajcia

On 2/4/2020 11:30 AM, Július Milan wrote:
> This information is useful or needed for user applications as t-rex.
> 
> Signed-off-by: Július Milan <jmilan.dev@gmail.com>
> ---
>  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;
> 

Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>

Applied to dpdk-next-net/master, thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [dpdk-dev] [PATCH] net/memif: add dev_link info
@ 2020-02-04 11:30 Július Milan
  2020-02-04 12:09 ` Ferruh Yigit
  0 siblings, 1 reply; 3+ messages in thread
From: Július Milan @ 2020-02-04 11:30 UTC (permalink / raw)
  To: dev, jgrajcia

This information is useful or needed for user applications as t-rex.

Signed-off-by: Július Milan <jmilan.dev@gmail.com>
---
 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-02-04 12:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-04 10:47 [dpdk-dev] [PATCH] net/memif: add dev_link info Július Milan
2020-02-04 11:30 Július Milan
2020-02-04 12:09 ` Ferruh Yigit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).