Skip to content

Commit

Permalink
netfilter: nf_tables: increase maximum devices number per flowtable
Browse files Browse the repository at this point in the history
Rise the maximum limit of devices per flowtable up to 256. Rename
NFT_FLOWTABLE_DEVICE_MAX to NFT_NETDEVICE_MAX in preparation to reuse
the netdev hook parser for ingress basechain.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
  • Loading branch information
Pablo Neira Ayuso committed Oct 23, 2019
1 parent b75a3e8 commit cb662ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/net/netfilter/nf_tables.h
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,7 @@ struct nft_object_ops {
int nft_register_obj(struct nft_object_type *obj_type);
void nft_unregister_obj(struct nft_object_type *obj_type);

#define NFT_FLOWTABLE_DEVICE_MAX 8
#define NFT_NETDEVICE_MAX 256

/**
* struct nft_flowtable - nf_tables flow table
Expand Down
2 changes: 1 addition & 1 deletion net/netfilter/nf_tables_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -1577,7 +1577,7 @@ static int nf_tables_parse_netdev_hooks(struct net *net,
list_add_tail(&hook->list, hook_list);
n++;

if (n == NFT_FLOWTABLE_DEVICE_MAX) {
if (n == NFT_NETDEVICE_MAX) {
err = -EFBIG;
goto err_hook;
}
Expand Down

0 comments on commit cb662ac

Please sign in to comment.