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)
commit505ee3a1cab96785fbc2c7cdb41ab677ec270c3c
tree83edf88c9562b88d04a4954215ad54b52e32609d
parent762f926d6f19b9ab4dee0f98d55fc67e276cd094
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: 978703f42549 ("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