epoll: Split listening Unix domain socket into its own type
tap_handler() actually handles events on three different types of object: the /dev/tap character device (pasta), a connected Unix domain socket (passt) or a listening Unix domain socket (passt). The last, in particular, really has no handling in common with the others, so split it into its own epoll type and directly dispatch to the relevant handler from the top level. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:

committed by
Stefano Brivio

parent
485b5fb8f9
commit
eda4f1997e
6
passt.h
6
passt.h
@@ -61,10 +61,12 @@ enum epoll_type {
|
||||
EPOLL_TYPE_ICMPV6,
|
||||
/* inotify fd watching for end of netns (pasta) */
|
||||
EPOLL_TYPE_NSQUIT,
|
||||
/* tap char device, or qemu socket fd */
|
||||
/* tap char device, or connected qemu socket fd */
|
||||
EPOLL_TYPE_TAP,
|
||||
/* socket listening for qemu socket connections */
|
||||
EPOLL_TYPE_TAP_LISTEN,
|
||||
|
||||
EPOLL_TYPE_MAX = EPOLL_TYPE_TAP,
|
||||
EPOLL_TYPE_MAX = EPOLL_TYPE_TAP_LISTEN,
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user