Revert "ecryptfs: replace BUG_ON with error handling code"
[linux-2.6-microblaze.git] / include / net / sock.h
index 8487f58..42bc5e1 100644 (file)
@@ -1118,6 +1118,7 @@ struct inet_hashinfo;
 struct raw_hashinfo;
 struct smc_hashinfo;
 struct module;
+struct sk_psock;
 
 /*
  * caches using SLAB_TYPESAFE_BY_RCU should let .next pointer from nulls nodes
@@ -1188,6 +1189,11 @@ struct proto {
        void                    (*unhash)(struct sock *sk);
        void                    (*rehash)(struct sock *sk);
        int                     (*get_port)(struct sock *sk, unsigned short snum);
+#ifdef CONFIG_BPF_SYSCALL
+       int                     (*psock_update_sk_prot)(struct sock *sk,
+                                                       struct sk_psock *psock,
+                                                       bool restore);
+#endif
 
        /* Keeping track of sockets in use */
 #ifdef CONFIG_PROC_FS