[INET]: Consolidate the xxx_frag_destroy
[linux-block.git] / include / net / inet_frag.h
index e374412ff42b41e7d7cd48050d43ede5a9c0b5d2..2dd1cd4e7f441da17bc349420f339bdee04315f2 100644 (file)
@@ -33,16 +33,21 @@ struct inet_frags {
        rwlock_t                lock;
        u32                     rnd;
        int                     nqueues;
+       int                     qsize;
        atomic_t                mem;
        struct timer_list       secret_timer;
        struct inet_frags_ctl   *ctl;
 
        unsigned int            (*hashfn)(struct inet_frag_queue *);
+       void                    (*destructor)(struct inet_frag_queue *);
+       void                    (*skb_free)(struct sk_buff *);
 };
 
 void inet_frags_init(struct inet_frags *);
 void inet_frags_fini(struct inet_frags *);
 
 void inet_frag_kill(struct inet_frag_queue *q, struct inet_frags *f);
+void inet_frag_destroy(struct inet_frag_queue *q,
+                               struct inet_frags *f, int *work);
 
 #endif