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 92545426B6; Wed, 4 Oct 2023 14:54:44 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4D467402D8; Wed, 4 Oct 2023 14:54:44 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 7FB1F402CE for ; Wed, 4 Oct 2023 14:54:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1696424082; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pj77y/fYGX1K3HrVS7J42g5c3wYg0ZZQUZOAQjeguGQ=; b=RobUFVxgkPqtkjltVcjkooLHup/T4bZGTBUrGuVU8gYyUdOF4ZSL0YSYOS6WV4xxSODqA1 Uir6/sRZS+0oYWtHs1Bd7xudMb3WIvODwQbZQ9B+UGJFKSjzU22Fj87uhJrwRV5yIeZxPS JhPbsWtjk6CpCipsI/SgrEYfjI8LPRI= Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-356-kqL23hp4N6WUUv5dSjohwA-1; Wed, 04 Oct 2023 08:54:40 -0400 X-MC-Unique: kqL23hp4N6WUUv5dSjohwA-1 Received: by mail-lj1-f200.google.com with SMTP id 38308e7fff4ca-2bff8e92054so17702951fa.2 for ; Wed, 04 Oct 2023 05:54:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696424079; x=1697028879; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pj77y/fYGX1K3HrVS7J42g5c3wYg0ZZQUZOAQjeguGQ=; b=gkhcN3jNunGOxDd0JKyZp7XEQtz0hpHHkrW5J9vzynZKEEpbvYQOc4gzxgPJJHLtIW yJsk/U4I9paH/Smmqj+//O1Pk7RP+/Xbk8jqSuFmQRZL0Ktoi7LT1+2L3eLIb6Dfjrlz HxKs09C10zrLG+pS0TwRrDN+DQd48MqT/oe97A3mp+gcBJvm/mTK8+BdW5dp0hAn3KxY 6MPyrR0gBGh+D11uNGZAynr2ydpUJdt3GnU7ZHAUXUndm+2xshHPwTe6NDZRnjD9C1Ad ZC8rc6yCjEgUjG0kNJ3FpJWCheyny9xvg0jg+5xGT70TU0AJgrNAmwJ7HKysls1SLp/t JoKw== X-Gm-Message-State: AOJu0YzEACQCMDH9r1IRmGSVp2uTarGi9Tb+8lS5D1z2/o2beJbZLLlY M5PHTAy/nAENzBXmu8mOfYHIJgaWcjRlyzntW3Sq1cXy8Led6J0wEAddaJ0iAYs7calPNm7nnvW k6p/TfB5ZqvwCCdbvNR0= X-Received: by 2002:a2e:9b15:0:b0:2bc:bcc6:d4ad with SMTP id u21-20020a2e9b15000000b002bcbcc6d4admr2137182lji.21.1696424079426; Wed, 04 Oct 2023 05:54:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IExlhp+8erRRpcOcgdNeDBH5/AheCBU3qV076UF3Ht7wEcqXoZRgza0MT3TdkF2xLXchBiizi8ZBxyCFL45PwE= X-Received: by 2002:a2e:9b15:0:b0:2bc:bcc6:d4ad with SMTP id u21-20020a2e9b15000000b002bcbcc6d4admr2137165lji.21.1696424079104; Wed, 04 Oct 2023 05:54:39 -0700 (PDT) MIME-Version: 1.0 References: <20230705065235.4767-1-abhijit.gangurde@amd.com> <20230711055147.872889-1-abhijit.gangurde@amd.com> In-Reply-To: From: David Marchand Date: Wed, 4 Oct 2023 14:54:27 +0200 Message-ID: Subject: Re: [PATCH v3] bus/cdx: provide driver flag for optional resource mapping To: "Gangurde, Abhijit" Cc: "Gupta, Nipun" , "Agarwal, Nikhil" , "dev@dpdk.org" , "Yigit, Ferruh" , "thomas@monjalon.net" X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 On Wed, Oct 4, 2023 at 12:06=E2=80=AFPM Gangurde, Abhijit wrote: > > > +/** > > > + * Map the CDX device resources in user space virtual memory address= . > > > + * > > > + * Note that driver should not call this function when flag > > > + * RTE_CDX_DRV_NEED_MAPPING is set, as EAL will do that for > > > + * you when it's on. > > > > Why should we export this function in the application ABI, if it is > > only used by drivers? > > This can be called from an application as well if this flag is not set he= nce, we need to export this function. What kind of applications / in which usecase, one would need to map the device resources? Except a driver? --=20 David Marchand