[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3] public: add XEN_RING_NR_UNCONSUMED_*() macros to ring.h
- To: Juergen Gross <jgross@xxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Thu, 27 Jan 2022 09:02:53 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=CKBc0hp/O/gCiopinaeq1+Ljj7nAvrdrFtuGvr5/vlw=; b=c+gCeowK5RmVLT4tRc55Zs2A2+IpVNgGSE3m+pwng8IGZn8u/1pinm23RkJjtbaEyonhrDsEjLvXWoZMgRmG3cvERfPPSQoMFxQbjcpbKgnoJmM9+8JFx9/NjXw0eUOoNuNiTRfHY8YQcWyedFOy/Yko94piAHZpc1SCsNqgvpr3kYMXlNH3LsBUtkPel4HKElryN8qEb61UhIYX3DRRsbros5X6bQokJfF2BxY+ABKmT+Dso74zmnnsq7FKRzcFeSF//MPskxu9j8M952ZkyLtDJ1tfxeBEm3A04jXxIxrxH5Wr/2N9AGr5OneZY9qSb7OEKUYohIac+F8i1pZeQw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Qy1NM/B3XXJmAyLu1uNbKGvCTnSq5LTeXlnIL78hjAi1hHoNa6i4cgNCGrkBHvqo67Qwaa6dBnKndSgZtbbBRUBI1KB1q1yh+vR+c8rcciHeFzrjbTEJl+GObuShMHFPF3GTRcJu7yNbmUVy3UqLRSk7+d3Iaq8Gzmd09r2FtIzDUEoaAV29VpYrDQdVmBCg3LjWksSbtWo/2qp78ZjAHNWYUqy/PWZIk6vPzsPOcqk6RZ9je17K6IP2B1YzZCWyiQzcirozSXjyRZSQB8i+VzzXu20M3zIYjDThO0OtbcuWTQ0TebMRo7UfoAr5tvieAVWgX9F02zxoGpbS80SkKQ==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: Roger Pau Monne <roger.pau@xxxxxxxxxx>, Manuel Bouyer <bouyer@xxxxxxxxxxxxxxx>, Simon Kuenzer <simon.kuenzer@xxxxxxxxx>, Paul Durrant <paul@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Thu, 27 Jan 2022 08:03:03 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 27.01.2022 07:30, Juergen Gross wrote:
> Today RING_HAS_UNCONSUMED_*() macros are returning the number of
> unconsumed requests or responses instead of a boolean as the name of
> the macros would imply.
>
> As this "feature" is already being used, rename the macros to
> XEN_RING_NR_UNCONSUMED_*() and define the RING_HAS_UNCONSUMED_*() macros
> by using the new XEN_RING_NR_UNCONSUMED_*() macros. In order to avoid
> future misuse let RING_HAS_UNCONSUMED_*() optionally really return a
> boolean (can be activated by defining XEN_RING_HAS_UNCONSUMED_IS_BOOL).
>
> Note that the known misuses need to be switched to the new
> XEN_RING_NR_UNCONSUMED_*() macros when using the RING_HAS_UNCONSUMED_*()
> variants returning a boolean value.
>
> Cc: Roger Pau Monne <roger.pau@xxxxxxxxxx>
> Cc: Manuel Bouyer <bouyer@xxxxxxxxxxxxxxx>
> Cc: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>
> Cc: Paul Durrant <paul@xxxxxxx>
> Signed-off-by: Juergen Gross <jgross@xxxxxxxx>
Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
|