On Mon, Jan 18, 2021 at 3:07 PM Nalla Pradeep <pna...@marvell.com> wrote:
>
> Add basic init and uninit function which includes
> initializing fields of ethdev private structure.
>
> Signed-off-by: Nalla Pradeep <pna...@marvell.com>
> ---
>  drivers/net/octeontx_ep/otx_ep_common.h | 19 +++++-
>  drivers/net/octeontx_ep/otx_ep_ethdev.c | 88 +++++++++++++++++++++++--
>  2 files changed, 101 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/net/octeontx_ep/otx_ep_common.h 
> b/drivers/net/octeontx_ep/otx_ep_common.h
> index 3fa2de9ab3..1c31ea8de2 100644
> --- a/drivers/net/octeontx_ep/otx_ep_common.h
> +++ b/drivers/net/octeontx_ep/otx_ep_common.h
> @@ -4,11 +4,28 @@
>  #ifndef _OTX_EP_COMMON_H_
>  #define _OTX_EP_COMMON_H_
>
> +#define otx_ep_printf(level, fmt, args...)             \
> +       rte_log(RTE_LOG_ ## level, RTE_LOGTYPE_PMD,             \

Use dynamic log scheme.

Reply via email to