aboutgitcodebugslistschat
path: root/pasta.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2023-11-07 13:42:44 +1100
committerStefano Brivio <sbrivio@redhat.com>2023-11-07 09:54:03 +0100
commit6357010cab9bafeb1069866b5879ea4a11d3e60b (patch)
tree81995180e79a5b31c8a4fffcb8e30de581d82766 /pasta.c
parent409d3ca87f858152de88d61112c71d8464ff6149 (diff)
downloadpasst-6357010cab9bafeb1069866b5879ea4a11d3e60b.tar
passt-6357010cab9bafeb1069866b5879ea4a11d3e60b.tar.gz
passt-6357010cab9bafeb1069866b5879ea4a11d3e60b.tar.bz2
passt-6357010cab9bafeb1069866b5879ea4a11d3e60b.tar.lz
passt-6357010cab9bafeb1069866b5879ea4a11d3e60b.tar.xz
passt-6357010cab9bafeb1069866b5879ea4a11d3e60b.tar.zst
passt-6357010cab9bafeb1069866b5879ea4a11d3e60b.zip
tcp_splice: Avoid awkward temporaries in tcp_splice_epoll_ctl()
We initialise the events_a and events_b variables with tcp_splice_conn_epoll_events() function, then immediately copy the values into ev_a.events and ev_b.events. We can't simply pass &ev_[ab].events to tcp_splice_conn_epoll_events(), because struct epoll_event is packed, leading to 'pointer may be unaligned' warnings if we attempt that. We can, however, make tcp_splice_conn_epoll_events() take struct epoll_event pointers rather than raw u32 pointers, avoiding the awkward temporaries. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'pasta.c')
0 files changed, 0 insertions, 0 deletions