netfilter: nf_flow_table: move priority to struct nf_flowtable
Hardware offload needs access to the priority field, store this field in the nf_flowtable object. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
@@ -24,6 +24,7 @@ struct nf_flowtable_type {
|
||||
struct nf_flowtable {
|
||||
struct list_head list;
|
||||
struct rhashtable rhashtable;
|
||||
int priority;
|
||||
const struct nf_flowtable_type *type;
|
||||
struct delayed_work gc_work;
|
||||
};
|
||||
|
||||
@@ -1155,7 +1155,6 @@ void nft_unregister_obj(struct nft_object_type *obj_type);
|
||||
* @table: the table the flow table is contained in
|
||||
* @name: name of this flow table
|
||||
* @hooknum: hook number
|
||||
* @priority: hook priority
|
||||
* @ops_len: number of hooks in array
|
||||
* @genmask: generation mask
|
||||
* @use: number of references to this flow table
|
||||
@@ -1169,7 +1168,6 @@ struct nft_flowtable {
|
||||
struct nft_table *table;
|
||||
char *name;
|
||||
int hooknum;
|
||||
int priority;
|
||||
int ops_len;
|
||||
u32 genmask:2,
|
||||
use:30;
|
||||
|
||||
Reference in New Issue
Block a user