io_uring/net: simplify zerocopy send user API
[platform/kernel/linux-starfive.git] / io_uring / opdef.c
index 10b301c..c61494e 100644 (file)
@@ -470,7 +470,7 @@ const struct io_op_def io_op_defs[] = {
                .issue                  = io_uring_cmd,
                .prep_async             = io_uring_cmd_prep_async,
        },
-       [IORING_OP_SENDZC_NOTIF] = {
+       [IORING_OP_SEND_ZC] = {
                .name                   = "SENDZC_NOTIF",
                .needs_file             = 1,
                .unbound_nonreg_file    = 1,
@@ -483,6 +483,7 @@ const struct io_op_def io_op_defs[] = {
                .prep                   = io_sendzc_prep,
                .issue                  = io_sendzc,
                .prep_async             = io_sendzc_prep_async,
+               .cleanup                = io_sendzc_cleanup,
 #else
                .prep                   = io_eopnotsupp_prep,
 #endif