Skip to content

Commit 458a182

Browse files
wenxuummakynes
authored andcommitted
netfilter: nf_flow_table: remove unnecessary parameter in flow_offload_fill_dir
The ct object is already in the flow_offload structure, remove it. Signed-off-by: wenxu <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent ea13ca3 commit 458a182

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

net/netfilter/nf_flow_table_core.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ static DEFINE_MUTEX(flowtable_lock);
1818
static LIST_HEAD(flowtables);
1919

2020
static void
21-
flow_offload_fill_dir(struct flow_offload *flow, struct nf_conn *ct,
21+
flow_offload_fill_dir(struct flow_offload *flow,
2222
enum flow_offload_tuple_dir dir)
2323
{
2424
struct flow_offload_tuple *ft = &flow->tuplehash[dir].tuple;
25-
struct nf_conntrack_tuple *ctt = &ct->tuplehash[dir].tuple;
25+
struct nf_conntrack_tuple *ctt = &flow->ct->tuplehash[dir].tuple;
2626

2727
ft->dir = dir;
2828

@@ -57,8 +57,8 @@ struct flow_offload *flow_offload_alloc(struct nf_conn *ct)
5757

5858
flow->ct = ct;
5959

60-
flow_offload_fill_dir(flow, ct, FLOW_OFFLOAD_DIR_ORIGINAL);
61-
flow_offload_fill_dir(flow, ct, FLOW_OFFLOAD_DIR_REPLY);
60+
flow_offload_fill_dir(flow, FLOW_OFFLOAD_DIR_ORIGINAL);
61+
flow_offload_fill_dir(flow, FLOW_OFFLOAD_DIR_REPLY);
6262

6363
if (ct->status & IPS_SRC_NAT)
6464
flow->flags |= FLOW_OFFLOAD_SNAT;

0 commit comments

Comments
 (0)