diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2023-08-11 15:12:20 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-08-13 17:29:49 +0200 |
commit | e26282b67d013f775eacd8603fa5ec1397dec714 (patch) | |
tree | 102cd5bac899d6df731c093a80fd22b836bb858d /conf.c | |
parent | 0d870c5da6cbb7def892edc2ac0cbc3e0eafd3b6 (diff) | |
download | passt-e26282b67d013f775eacd8603fa5ec1397dec714.tar passt-e26282b67d013f775eacd8603fa5ec1397dec714.tar.gz passt-e26282b67d013f775eacd8603fa5ec1397dec714.tar.bz2 passt-e26282b67d013f775eacd8603fa5ec1397dec714.tar.lz passt-e26282b67d013f775eacd8603fa5ec1397dec714.tar.xz passt-e26282b67d013f775eacd8603fa5ec1397dec714.tar.zst passt-e26282b67d013f775eacd8603fa5ec1397dec714.zip |
tap: Fold reset handling into tap_handler_passt()
We call tap_sock_reset() if tap_handler_passt() fails, or if we get an
error event on the socket. Fold that logic into tap_handler() passt itself
which simplifies the caller. It also makes it clearer that we had a
redundant EPOLL_CTL_DEL and close() in one of the reset paths, so fix that
too.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'conf.c')
0 files changed, 0 insertions, 0 deletions