-Original Message-
From: Stephen Hemminger
Sent: Monday, May 20, 2024 11:56 PM
To: Wani, Shaiq
Cc: dev@dpdk.org
Subject: Re: [PATCH v1] net/cpfl: get running host ID for CPFL PMD
On Mon, 20 May 2024 04:44:15 +
Shaiq Wani wrote:
> +static uint8_t
> +get_running_host_i
On Mon, 20 May 2024 04:44:15 +
Shaiq Wani wrote:
> +static uint8_t
> +get_running_host_id(void)
> +{
> + char buf[BUFSIZ];
> + FILE *fd;
> + uint8_t host_id = CPFL_INVALID_HOST_ID;
> +
> + fd = fopen("/etc/issue.net", "r");
> + if (fd == NULL) {
> + PMD_INIT_LO
Check whether CPFL PMD is running on Host or ACC
Signed-off-by: Shaiq Wani
---
drivers/net/cpfl/cpfl_ethdev.c | 25 +
drivers/net/cpfl/cpfl_ethdev.h | 5 -
2 files changed, 29 insertions(+), 1 deletion(-)
diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpf
3 matches
Mail list logo