Files
xemu/net
Daniel Borkmann bdebcb49f4 net/af-xdp: Fix up cleanup path upon failure in queue creation
While testing, it turned out that upon error in the queue creation loop,
we never trigger the af_xdp_cleanup() handler. This is because we pass
errp instead of a local err pointer into the various AF_XDP setup functions
instead of a scheme like:

    bool fn(..., Error **errp)
    {
        Error *err = NULL;

        foo(arg, &err);
        if (err) {
            handle the error...
            error_propagate(errp, err);
            return false;
        }
        ...
    }

The same is true for the attachment probing with bpf_xdp_query_id(). With a
conversion into the above format, the af_xdp_cleanup() handler is called as
expected. Note the error_propagate() handles a NULL err internally.

Fixes: cb039ef3d9 ("net: add initial support for AF_XDP network backend")
Reviewed-by: Ilya Maximets <i.maximets@ovn.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Ilya Maximets <i.maximets@ovn.org>
Cc: Jason Wang <jasowang@redhat.com>
Cc: Anton Protopopov <aspsk@isovalent.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
2025-07-15 10:26:16 +08:00
..
2025-04-25 17:00:41 +02:00
2025-07-14 13:27:09 +08:00
2024-04-18 11:17:27 +02:00
2025-04-25 17:00:41 +02:00
2025-07-14 13:27:09 +08:00
2025-07-14 13:27:09 +08:00
2025-07-14 13:27:09 +08:00
2024-06-04 15:14:25 +08:00
2024-10-03 17:26:05 +03:00
2024-06-04 15:14:25 +08:00
2024-06-04 15:14:25 +08:00
2025-03-10 17:07:16 +08:00