]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/net/inet_frag.h
inet: frag: don't re-use chainlist for evictor
[karo-tx-linux.git] / include / net / inet_frag.h
index e1300b3dd597b9a68db7b6dc9c03a8ea238b4e4c..56a3a5685f76793318781415b3e6f591e7114af7 100644 (file)
@@ -45,6 +45,7 @@ enum {
  * @flags: fragment queue flags
  * @max_size: maximum received fragment size
  * @net: namespace that this frag belongs to
+ * @list_evictor: list of queues to forcefully evict (e.g. due to low memory)
  */
 struct inet_frag_queue {
        spinlock_t              lock;
@@ -59,6 +60,7 @@ struct inet_frag_queue {
        __u8                    flags;
        u16                     max_size;
        struct netns_frags      *net;
+       struct hlist_node       list_evictor;
 };
 
 #define INETFRAGS_HASHSZ       1024