]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blobdiff - include/net/tcp.h
bpf: Sockmap/tls, push write_space updates through ulp updates
[mirror_ubuntu-eoan-kernel.git] / include / net / tcp.h
index 09910641fcc3f8d23bc1630283680c134315e243..520b80df35f8ebf1e74be8b6bf0fa85305db0515 100644 (file)
@@ -2120,7 +2120,8 @@ struct tcp_ulp_ops {
        /* initialize ulp */
        int (*init)(struct sock *sk);
        /* update ulp */
-       void (*update)(struct sock *sk, struct proto *p);
+       void (*update)(struct sock *sk, struct proto *p,
+                      void (*write_space)(struct sock *sk));
        /* cleanup ulp */
        void (*release)(struct sock *sk);
 
@@ -2132,7 +2133,8 @@ void tcp_unregister_ulp(struct tcp_ulp_ops *type);
 int tcp_set_ulp(struct sock *sk, const char *name);
 void tcp_get_available_ulp(char *buf, size_t len);
 void tcp_cleanup_ulp(struct sock *sk);
-void tcp_update_ulp(struct sock *sk, struct proto *p);
+void tcp_update_ulp(struct sock *sk, struct proto *p,
+                   void (*write_space)(struct sock *sk));
 
 #define MODULE_ALIAS_TCP_ULP(name)                             \
        __MODULE_INFO(alias, alias_userspace, name);            \