Skip to content

Commit ae406bd

Browse files
kristrevummakynes
authored andcommitted
netfilter: conntrack: Remove nf_ct_conntrack_flush_report
The only user of nf_ct_conntrack_flush_report() was ctnetlink_del_conntrack(). After adding support for flushing connections with a given mark, this function is no longer called. Signed-off-by: Kristian Evensen <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent 866476f commit ae406bd

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

include/net/netfilter/nf_conntrack.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,6 @@ __nf_conntrack_find(struct net *net, u16 zone,
191191
int nf_conntrack_hash_check_insert(struct nf_conn *ct);
192192
bool nf_ct_delete(struct nf_conn *ct, u32 pid, int report);
193193

194-
void nf_conntrack_flush_report(struct net *net, u32 portid, int report);
195-
196194
bool nf_ct_get_tuplepr(const struct sk_buff *skb, unsigned int nhoff,
197195
u_int16_t l3num, struct nf_conntrack_tuple *tuple);
198196
bool nf_ct_invert_tuplepr(struct nf_conntrack_tuple *inverse,

net/netfilter/nf_conntrack_core.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,12 +1426,6 @@ void nf_ct_free_hashtable(void *hash, unsigned int size)
14261426
}
14271427
EXPORT_SYMBOL_GPL(nf_ct_free_hashtable);
14281428

1429-
void nf_conntrack_flush_report(struct net *net, u32 portid, int report)
1430-
{
1431-
nf_ct_iterate_cleanup(net, kill_all, NULL, portid, report);
1432-
}
1433-
EXPORT_SYMBOL_GPL(nf_conntrack_flush_report);
1434-
14351429
static int untrack_refs(void)
14361430
{
14371431
int cnt = 0, cpu;

0 commit comments

Comments
 (0)