DPDK patches and discussions
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Jie Liu <liujie5@linkdatatechnology.com>
Cc: dev@dpdk.org
Subject: Re: [PATCH 02/13] net/sxe: add ethdev probe and remove
Date: Sat, 26 Apr 2025 09:15:53 -0700	[thread overview]
Message-ID: <20250426091553.22b51835@hermes.local> (raw)
In-Reply-To: <20250425023652.37368-2-liujie5@linkdatatechnology.com>

On Thu, 24 Apr 2025 19:36:41 -0700
Jie Liu <liujie5@linkdatatechnology.com> wrote:

> diff --git a/drivers/net/sxe/base/sxe_logs.h b/drivers/net/sxe/base/sxe_logs.h
> new file mode 100644
> index 0000000000..e90b563eac
> --- /dev/null
> +++ b/drivers/net/sxe/base/sxe_logs.h
> @@ -0,0 +1,273 @@
> +/* SPDX-License-Identifier: BSD-3-Clause
> + * Copyright (C), 2022, Linkdata Technology Co., Ltd.
> + */
> +
> +#ifndef _SXE_LOGS_H_
> +#define _SXE_LOGS_H_
> +
> +#include <stdio.h>
> +#include <sys/time.h>
> +#include <pthread.h>
> +
> +#include "sxe_types.h"
> +
> +#define LOG_FILE_NAME_LEN	 256
> +#define LOG_FILE_PATH		 "/var/log/"
> +#define LOG_FILE_PREFIX	   "sxepmd.log"
> +
> +extern s32 sxe_log_init;
> +extern s32 sxe_log_rx;
> +extern s32 sxe_log_tx;
> +extern s32 sxe_log_drv;
> +extern s32 sxe_log_hw;
> +
> +#define RTE_LOGTYPE_sxe_log_init sxe_log_init
> +#define RTE_LOGTYPE_sxe_log_rx sxe_log_rx
> +#define RTE_LOGTYPE_sxe_log_tx sxe_log_tx
> +#define RTE_LOGTYPE_sxe_log_drv sxe_log_drv
> +#define RTE_LOGTYPE_sxe_log_hw sxe_log_hw
> +
> +#define INIT sxe_log_init
> +#define RX   sxe_log_rx
> +#define TX   sxe_log_tx
> +#define HW   sxe_log_hw
> +#define DRV  sxe_log_drv
> +
> +#define UNUSED(x)	((void)(x))
> +
> +#define  TIME(log_time) \
> +	do { \
> +		struct timeval	tv; \
> +		struct tm *td; \
> +		gettimeofday(&tv, NULL); \
> +		td = localtime(&tv.tv_sec); \
> +		strftime(log_time, sizeof(log_time), "%Y-%m-%d-%H:%M:%S", td); \
> +	} while (0)
> +
> +#define filename_printf(x) (strrchr((x), '/') ? strrchr((x), '/') + 1 : (x))
> +
> +#ifdef SXE_DPDK_DEBUG
> +#define PMD_LOG_DEBUG(logtype, ...) \

NAK
Not carrying custom backport code in the upstream tree.

This driver is abusing the idea behind base/ code.
In DPDK base directory is intended for code shared between multiple platforms.
I.e some vendors support DPDK, BSD, VmWare, and even Linux with common code.

The base directory is not intended as a backport hook.

  parent reply	other threads:[~2025-04-26 16:15 UTC|newest]

Thread overview: 120+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-25  2:36 [PATCH 01/13] net/sxe: add base driver directory and doc Jie Liu
2025-04-25  2:36 ` [PATCH 02/13] net/sxe: add ethdev probe and remove Jie Liu
2025-04-26 16:11   ` Stephen Hemminger
2025-04-26 16:11   ` Stephen Hemminger
2025-04-26 16:15   ` Stephen Hemminger [this message]
2025-04-26 16:17   ` Stephen Hemminger
2025-04-25  2:36 ` [PATCH 03/13] net/sxe: add tx rx setup and data path Jie Liu
2025-04-26 16:02   ` Stephen Hemminger
2025-04-26 16:20   ` Stephen Hemminger
2025-04-25  2:36 ` [PATCH 04/13] net/sxe: add link, flow ctrl, mac ops, mtu ops function Jie Liu
2025-04-25  2:36 ` [PATCH 05/13] net/sxe: support vlan filter Jie Liu
2025-04-25  2:36 ` [PATCH 06/13] net/sxe: add mac layer filter function Jie Liu
2025-04-25  2:36 ` [PATCH 07/13] net/sxe: support rss offload Jie Liu
2025-04-25  2:36 ` [PATCH 08/13] net/sxe: add dcb function Jie Liu
2025-04-25  2:36 ` [PATCH 09/13] net/sxe: support ptp Jie Liu
2025-04-25  2:36 ` [PATCH 10/13] net/sxe: add xstats function Jie Liu
2025-04-25  2:36 ` [PATCH 11/13] net/sxe: add custom cmd led ctrl Jie Liu
2025-04-25  2:36 ` [PATCH 12/13] net/sxe: add simd function Jie Liu
2025-04-25  2:36 ` [PATCH 13/13] net/sxe: add virtual function Jie Liu
2025-04-26 15:57 ` [PATCH 01/13] net/sxe: add base driver directory and doc Stephen Hemminger
2025-04-26 15:59 ` Stephen Hemminger
2025-04-26 16:23 ` Stephen Hemminger
2025-04-26 17:07 ` Stephen Hemminger
2025-04-26 17:08 ` Stephen Hemminger
2025-07-04  2:53 ` [PATCH v2 01/14] net/sxe: add base driver directory and doc Adding a minimum maintainable directory structure for the network driver and request maintenance of the sxe driver Jie Liu
2025-07-07 11:58   ` [PATCH v3 01/14] net/sxe: add base driver directory and doc Jie Liu
2025-07-07 11:58     ` [PATCH v3 02/14] net/sxe: add ethdev probe and remove Jie Liu
2025-07-07 14:57       ` Stephen Hemminger
2025-07-07 11:58     ` [PATCH v3 03/14] net/sxe: add tx rx setup and data path Jie Liu
2025-07-07 11:58     ` [PATCH v3 04/14] net/sxe: add link, flow ctrl, mac ops, mtu ops function Jie Liu
2025-07-07 11:58     ` [PATCH v3 05/14] net/sxe: support vlan filter Jie Liu
2025-07-07 11:58     ` [PATCH v3 06/14] net/sxe: add filter function Jie Liu
2025-07-07 11:58     ` [PATCH v3 07/14] net/sxe: support rss offload Jie Liu
2025-07-07 11:58     ` [PATCH v3 08/14] net/sxe: add dcb function Jie Liu
2025-07-07 11:58     ` [PATCH v3 09/14] net/sxe: support ptp Jie Liu
2025-07-07 11:58     ` [PATCH v3 10/14] net/sxe: add xstats function Jie Liu
2025-07-07 11:58     ` [PATCH v3 11/14] net/sxe: add custom cmd led ctrl Jie Liu
2025-07-07 11:58     ` [PATCH v3 12/14] net/sxe: add simd function Jie Liu
2025-07-07 11:58     ` [PATCH v3 13/14] net/sxe: add virtual function Jie Liu
2025-07-07 11:58     ` [PATCH v3 14/14] net/sxe: add Solve compilation problems Jie Liu
2025-07-07 15:03       ` Stephen Hemminger
2025-07-07 15:56       ` Stephen Hemminger
2025-07-09  8:43       ` [PATCH v4 1/2] net/sxe: add base driver directory and doc Jie Liu
2025-07-09  8:43         ` [PATCH v4 2/2] net/sxe: add ethdev probe and remove Jie Liu
2025-07-09 16:13           ` Stephen Hemminger
2025-07-09  8:43         ` [PATCH v4 03/14] net/sxe: add tx rx setup and data path Jie Liu
2025-07-09 16:07           ` Stephen Hemminger
2025-07-09  8:43         ` [PATCH v4 04/14] net/sxe: add link, flow ctrl, mac ops, mtu ops function Jie Liu
2025-07-09 16:09           ` Stephen Hemminger
2025-07-12  1:50             ` 刘洁
2025-07-09 16:11           ` Stephen Hemminger
2025-07-09  8:43         ` [PATCH v4 05/14] net/sxe: support vlan filter Jie Liu
2025-07-09  8:43         ` [PATCH v4 06/14] net/sxe: add filter function Jie Liu
2025-07-09  8:43         ` [PATCH v4 07/14] net/sxe: support rss offload Jie Liu
2025-07-09  8:43         ` [PATCH v4 08/14] net/sxe: add dcb function Jie Liu
2025-07-09  8:43         ` [PATCH v4 09/14] net/sxe: support ptp Jie Liu
2025-07-09  8:43         ` [PATCH v4 10/14] net/sxe: add xstats function Jie Liu
2025-07-09  8:43         ` [PATCH v4 11/14] net/sxe: add custom cmd led ctrl Jie Liu
2025-07-09  8:43         ` [PATCH v4 12/14] net/sxe: add simd function Jie Liu
2025-07-09  8:43         ` [PATCH v4 13/14] net/sxe: add virtual function Jie Liu
2025-07-09  8:43         ` [PATCH v4 14/14] net/sxe: add Solve compilation problems Jie Liu
2025-07-09 16:14           ` Stephen Hemminger
2025-07-10  1:20       ` [PATCH v5 01/14] net/sxe: add base driver directory and doc Jie Liu
2025-07-10  1:20         ` [PATCH v5 02/14] net/sxe: add ethdev probe and remove Jie Liu
2025-07-10  1:20         ` [PATCH v5 03/14] net/sxe: add tx rx setup and data path Jie Liu
2025-07-10  1:20         ` [PATCH v5 04/14] net/sxe: add link, flow ctrl, mac ops, mtu ops function Jie Liu
2025-07-10  1:20         ` [PATCH v5 05/14] net/sxe: support vlan filter Jie Liu
2025-07-10  1:20         ` [PATCH v5 06/14] net/sxe: add filter function Jie Liu
2025-07-10  1:20         ` [PATCH v5 07/14] net/sxe: support rss offload Jie Liu
2025-07-10  1:20         ` [PATCH v5 08/14] net/sxe: add dcb function Jie Liu
2025-07-10  1:20         ` [PATCH v5 09/14] net/sxe: support ptp Jie Liu
2025-07-10  1:20         ` [PATCH v5 10/14] net/sxe: add xstats function Jie Liu
2025-07-10  1:20         ` [PATCH v5 11/14] net/sxe: add custom cmd led ctrl Jie Liu
2025-07-10  1:20         ` [PATCH v5 12/14] net/sxe: add simd function Jie Liu
2025-07-10  1:20         ` [PATCH v5 13/14] net/sxe: add virtual function Jie Liu
2025-07-10  1:20         ` [PATCH v5 14/14] net/sxe: add Solve compilation problems Jie Liu
2025-07-12  6:18           ` [PATCH v6 01/14] net/sxe: add base driver directory and doc Jie Liu
2025-07-12  6:18             ` [PATCH v6 02/14] net/sxe: add ethdev probe and remove Jie Liu
2025-07-12  6:18             ` [PATCH v6 03/14] net/sxe: add tx rx setup and data path Jie Liu
2025-07-12  6:18             ` [PATCH v6 04/14] net/sxe: add link, flow ctrl, mac ops, mtu ops function Jie Liu
2025-07-12  6:18             ` [PATCH v6 05/14] net/sxe: support vlan filter Jie Liu
2025-07-12  6:18             ` [PATCH v6 06/14] net/sxe: add filter function Jie Liu
2025-07-12  6:18             ` [PATCH v6 07/14] net/sxe: support rss offload Jie Liu
2025-07-12  6:18             ` [PATCH v6 08/14] net/sxe: add dcb function Jie Liu
2025-07-12  6:18             ` [PATCH v6 09/14] net/sxe: support ptp Jie Liu
2025-07-12  6:18             ` [PATCH v6 10/14] net/sxe: add xstats function Jie Liu
2025-07-12  6:18             ` [PATCH v6 11/14] net/sxe: add custom cmd led ctrl Jie Liu
2025-07-12  6:18             ` [PATCH v6 12/14] net/sxe: add simd function Jie Liu
2025-07-12  6:18             ` [PATCH v6 13/14] net/sxe: add virtual function Jie Liu
2025-07-12  6:18             ` [PATCH v6 14/14] net/sxe: add Solve compilation problems Jie Liu
2025-07-14  3:54               ` [PATCH v7 01/14] net/sxe: add base driver directory and doc Jie Liu
2025-07-14  3:54                 ` [PATCH v7 02/14] net/sxe: add ethdev probe and remove Jie Liu
2025-07-14  3:54                 ` [PATCH v7 03/14] net/sxe: add tx rx setup and data path Jie Liu
2025-07-14  3:54                 ` [PATCH v7 04/14] net/sxe: add link, flow ctrl, mac ops, mtu ops function Jie Liu
2025-07-14  3:54                 ` [PATCH v7 05/14] net/sxe: support vlan filter Jie Liu
2025-07-14  3:54                 ` [PATCH v7 06/14] net/sxe: add filter function Jie Liu
2025-07-14  3:54                 ` [PATCH v7 07/14] net/sxe: support rss offload Jie Liu
2025-07-14  3:54                 ` [PATCH v7 08/14] net/sxe: add dcb function Jie Liu
2025-07-14  3:54                 ` [PATCH v7 09/14] net/sxe: support ptp Jie Liu
2025-07-14  3:54                 ` [PATCH v7 10/14] net/sxe: add xstats function Jie Liu
2025-07-14  3:54                 ` [PATCH v7 11/14] net/sxe: add custom cmd led ctrl Jie Liu
2025-07-14  3:54                 ` [PATCH v7 12/14] net/sxe: add simd function Jie Liu
2025-07-14  3:54                 ` [PATCH v7 13/14] net/sxe: add virtual function Jie Liu
2025-07-14  3:54                 ` [PATCH v7 14/14] net/sxe: add Solve compilation problems Jie Liu
2025-07-15  3:41                   ` [PATCH v8 01/14] net/sxe: add base driver directory and doc Jie Liu
2025-07-15  3:41                     ` [PATCH v8 02/14] net/sxe: add ethdev probe and remove Jie Liu
2025-07-15  3:41                     ` [PATCH v8 03/14] net/sxe: add tx rx setup and data path Jie Liu
2025-07-15  3:41                     ` [PATCH v8 04/14] net/sxe: add link, flow ctrl, mac ops, mtu ops function Jie Liu
2025-07-15  3:41                     ` [PATCH v8 05/14] net/sxe: support vlan filter Jie Liu
2025-07-15  3:41                     ` [PATCH v8 06/14] net/sxe: add filter function Jie Liu
2025-07-15  3:41                     ` [PATCH v8 07/14] net/sxe: support rss offload Jie Liu
2025-07-15  3:41                     ` [PATCH v8 08/14] net/sxe: add dcb function Jie Liu
2025-07-15  3:41                     ` [PATCH v8 09/14] net/sxe: support ptp Jie Liu
2025-07-15  3:41                     ` [PATCH v8 10/14] net/sxe: add xstats function Jie Liu
2025-07-15  3:41                     ` [PATCH v8 11/14] net/sxe: add custom cmd led ctrl Jie Liu
2025-07-15  3:41                     ` [PATCH v8 12/14] net/sxe: add simd function Jie Liu
2025-07-15  3:41                     ` [PATCH v8 13/14] net/sxe: add virtual function Jie Liu
2025-07-15  3:41                     ` [PATCH v8 14/14] net/sxe: add Solve compilation problems Jie Liu
2025-07-07 14:58     ` [PATCH v3 01/14] net/sxe: add base driver directory and doc Stephen Hemminger
2025-07-07 15:00     ` Stephen Hemminger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250426091553.22b51835@hermes.local \
    --to=stephen@networkplumber.org \
    --cc=dev@dpdk.org \
    --cc=liujie5@linkdatatechnology.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).