netfilter: nf_tables: return EBUSY if device already belongs to flowtable
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 26 Feb 2018 12:16:04 +0000 (13:16 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 27 Feb 2018 07:06:46 +0000 (08:06 +0100)
commit32fc71875127498bf99cc648e96400ee0895edf7
tree8654a141c6ee33d9df75c069336a6d4fbd31072a
parent7d98386d55a5afaa65de77e1e9197edeb8a42079
netfilter: nf_tables: return EBUSY if device already belongs to flowtable

If the netdevice is already part of a flowtable, return EBUSY. I cannot
find a valid usecase for having two flowtables bound to the same
netdevice. We can still have two flowtable where the device set is
disjoint.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c