From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C1561A0A05; Tue, 19 Jan 2021 13:07:11 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7F81D140DC2; Tue, 19 Jan 2021 13:07:11 +0100 (CET) Received: from mail-io1-f49.google.com (mail-io1-f49.google.com [209.85.166.49]) by mails.dpdk.org (Postfix) with ESMTP id BA66C140DC0 for ; Tue, 19 Jan 2021 13:07:10 +0100 (CET) Received: by mail-io1-f49.google.com with SMTP id d81so23835980iof.3 for ; Tue, 19 Jan 2021 04:07:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=USmwE/2wkBhKhNSLokM5q6ykPCMWHl5+hxS5s9yBi1s=; b=GoVQh6LZ0q/XliP4V+asAKd2O+rCrSf3Lr677E27Pum4159NT2GtJy3oPf0u/kvAyH D+32ZuLbkurJTHzYyupScjCMhtLPqKxyePwky9aNDSrCIfvZfMkq/pDb0vmT+HLgNHK4 LoA9xtpFL4FOTd2uLIaIBZSBA+J5jRhF3+jKrZutXIC6jkLGgTzgiOkGPH2wzNK8+uw/ /KDpkRMSa3cTkLvtfMNDQ+mzcN0BoZxJK+lRqJv/mfYzBbbjFYkVILn2KLGhivpLAqx2 83QjmWOUNEtrvrUU6WQwdKGlBWc9VxK3KM5x/t1NICbE/RPM4+JD81rgCdYSdhEcqSLm UMTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=USmwE/2wkBhKhNSLokM5q6ykPCMWHl5+hxS5s9yBi1s=; b=uNdLod78kyAIM6bWh/4nAPU7NnR0hmzXITsdkuHZgIrM/w0N8LShFYZIvEniScW+gk 981tTPrBhJAaSRgpMEag6eHDjwzKx4spBODv3yEpeQFxs36W6KRsZMSr2J0pCNfky422 QoKkrudIKXwd56xQyLN+hTuOoIUDN5AKWt7a8L/yx8BcKwSCwejUGACn+cmYHyyxD2DU KYbY+0TIOxnOl7u4EtWtkZFuTteo2mBBCE5anNtvf/tLCcNurjroQLRUn0XVgnL6mzoo IUBSdudShToR04cGU/iyRIRfFkcyo949H471MFgdEnPpK0Coh/srbMJxb0ubs5otolOv 9Ftw== X-Gm-Message-State: AOAM533Byhjh3cNNU+qDTzhx1XcKEe7cmAwNeBBXpN/erHJPWI68GIXT kXnYvLJOKKp844BA0lIm2PSytNT4yU/rq6ut+Mw= X-Google-Smtp-Source: ABdhPJxYTLABiz8exh0Bu6fkYL0bM59DMt4vxFK0egtBpw9FIeWFLP95bJXYaABcoJtsIj8lOcCbgZWBL7h+5uFf1QY= X-Received: by 2002:a5d:8ac8:: with SMTP id e8mr2654003iot.163.1611058030138; Tue, 19 Jan 2021 04:07:10 -0800 (PST) MIME-Version: 1.0 References: <20210118093602.5449-1-pnalla@marvell.com> <20210118093602.5449-3-pnalla@marvell.com> In-Reply-To: <20210118093602.5449-3-pnalla@marvell.com> From: Jerin Jacob Date: Tue, 19 Jan 2021 17:36:53 +0530 Message-ID: To: Nalla Pradeep Cc: Radha Mohan Chintakuntla , Veerasenareddy Burru , Anatoly Burakov , Jerin Jacob , dpdk-dev , Satananda Burla Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v2 03/11] net/octeontx_ep: add device init and uninit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" On Mon, Jan 18, 2021 at 3:07 PM Nalla Pradeep wrote: > > Add basic init and uninit function which includes > initializing fields of ethdev private structure. > > Signed-off-by: Nalla Pradeep > --- > 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.