[ovs-dev] [PATCH v2 1/4] Replace direct use of POLLXXX macros with OVS_POLLXXX

Ben Pfaff blp at ovn.org
Fri Feb 14 20:43:58 UTC 2020


On Fri, Feb 14, 2020 at 05:54:26PM +0000, anton.ivanov at cambridgegreys.com wrote:
> From: Anton Ivanov <anton.ivanov at cambridgegreys.com>
> 
> In order to allow switching between poll and epoll we need to
> switch from the direct use of POLLXXX macros to OVS_POLLXXX which
> can be either POLLXXX or EPOLLXXX depending on the actual backend.
> 
> Signed-off-by: Anton Ivanov <anton.ivanov at cambridgegreys.com>

I'm not sure that this level of abstraction is useful or needed,
especially since POLL* and EPOLL* appear to actually have the same
values.  It might be easier to just add some BUILD_ASSERT checks that
this is the case.


More information about the dev mailing list