Skip to contentSkip to conversation

netfilter: nf_flow_table: remove unnecessary variable in flow_offload_tuple

PATCH Applied Taehee Yoo 2 participants 2 messages May 15, 2019 – May 31, 2019

Subsystems (2)
lore
Share & tools
lore

Taehee Yoo

author
#0 lore raw

PATCH 1/1 netfilter: nf_flow_table: remove unnecessary variable in flow_offload_tuple

The oifidx in the struct flow_offload_tuple is not used anymore.

---
 include/net/netfilter/nf_flow_table.h | 2 --
 net/netfilter/nf_flow_table_core.c    | 1 -
 2 files changed, 3 deletions(-)
include/net/netfilter/nf_flow_table.h +0 -2
index 3e370cb36263..d8c187936bec 100644
@@ -53,8 +53,6 @@ struct flow_offload_tuple {
 	u8				l4proto;
 	u8				dir;
 
-	int				oifidx;
-
 	u16				mtu;
 
 	struct dst_entry		*dst_cache;
net/netfilter/nf_flow_table_core.c +0 -1
index 7aabfd4b1e50..1bb41abcb91d 100644
@@ -52,7 +52,6 @@ flow_offload_fill_dir(struct flow_offload *flow, struct nf_conn *ct,
 	ft->dst_port = ctt->dst.u.tcp.port;
 
 	ft->iifidx = other_dst->dev->ifindex;
-	ft->oifidx = dst->dev->ifindex;
 	ft->dst_cache = dst;
 }
 
Signature · 1 line
2.17.1
maintainer Applied
#1 lore raw
Quoted 1 line · Taehee Yoo

The oifidx in the struct flow_offload_tuple is not used anymore.

Applied, thanks!