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 6A61FA054F; Tue, 16 Mar 2021 12:30:53 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4DD1D4069F; Tue, 16 Mar 2021 12:30:53 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 8F2A84003D for ; Tue, 16 Mar 2021 12:30:51 +0100 (CET) IronPort-SDR: WOuzMj7Ud6fP0QOgTB8IY2SSgBNfArJyeeh6fdb3zoQjDYymW7qR0vFI1afAUzjCe7r9fp77hT SnlamiOWfngg== X-IronPort-AV: E=McAfee;i="6000,8403,9924"; a="209175223" X-IronPort-AV: E=Sophos;i="5.81,251,1610438400"; d="scan'208";a="209175223" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2021 04:30:50 -0700 IronPort-SDR: EYm6lg2YLq6EqG0/Qyb44M/q8VYDZotELCefZQlrMEP3Bgotk9bd/gP/s5R5+ipk9u05sPTaoi CzafRaSI5fWA== X-IronPort-AV: E=Sophos;i="5.81,251,1610438400"; d="scan'208";a="405516722" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.252.11.157]) ([10.252.11.157]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2021 04:30:49 -0700 To: Andrew Rybchenko Cc: dev@dpdk.org, Vijay Srivastava References: <20210311110325.3291203-1-andrew.rybchenko@oktetlabs.ru> <20210316085832.942481-1-andrew.rybchenko@oktetlabs.ru> <20210316085832.942481-2-andrew.rybchenko@oktetlabs.ru> From: Ferruh Yigit X-User: ferruhy Message-ID: Date: Tue, 16 Mar 2021 11:30:48 +0000 MIME-Version: 1.0 In-Reply-To: <20210316085832.942481-2-andrew.rybchenko@oktetlabs.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH v4 1/8] common/sfc_efx/base: add base virtio support for vDPA 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 3/16/2021 8:58 AM, Andrew Rybchenko wrote: > From: Vijay Srivastava > > In the vDPA mode, only data path is offloaded in the hardware and > control path still goes through the hypervisor and it configures > virtqueues via vDPA driver so new virtqueue APIs are required. > > Implement virtio init/fini and virtqueue create/destroy APIs. > > Signed-off-by: Vijay Srivastava > Signed-off-by: Andrew Rybchenko <...> > diff --git a/drivers/common/sfc_efx/efsys.h b/drivers/common/sfc_efx/efsys.h > index 663601412e..d133d61b3d 100644 > --- a/drivers/common/sfc_efx/efsys.h > +++ b/drivers/common/sfc_efx/efsys.h > @@ -187,6 +187,8 @@ prefetch_read_once(const volatile void *addr) > > #define EFSYS_OPT_MAE 1 > > +#define EFSYS_OPT_VIRTIO 0 > + Hi Andrew, How this 'efsys.h' works, is it compile time configuration file for the driver? Is is expected that users change this file?