]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: flowtable: Make nf_flow_table_offload_add/del_cb inline
authorAlaa Hleihel <alaa@mellanox.com>
Sun, 14 Jun 2020 11:12:49 +0000 (14:12 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Jun 2020 01:06:52 +0000 (18:06 -0700)
commitd6b283b855285e550983053f8e8839bd1db5c12b
tree83edf88c9562b88d04a4954215ad54b52e32609d
parenta1c20f9522393059ceffbd76ddae420a42923321
netfilter: flowtable: Make nf_flow_table_offload_add/del_cb inline

Currently, nf_flow_table_offload_add/del_cb are exported by nf_flow_table
module, therefore modules using them will have hard-dependency
on nf_flow_table and will require loading it all the time.

This can lead to an unnecessary overhead on systems that do not
use this API.

To relax the hard-dependency between the modules, we unexport these
functions and make them static inline.

Fixes: f933e40df605 ("netfilter: flowtable: Add API for registering to flow table events")
Signed-off-by: Alaa Hleihel <alaa@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netfilter/nf_flow_table.h
net/netfilter/nf_flow_table_core.c