|
|
@@ -28,6 +28,7 @@ flow_offload_fill_dir(struct flow_offload *flow, struct nf_conn *ct,
|
|
|
{
|
|
|
struct flow_offload_tuple *ft = &flow->tuplehash[dir].tuple;
|
|
|
struct nf_conntrack_tuple *ctt = &ct->tuplehash[dir].tuple;
|
|
|
+ struct dst_entry *other_dst = route->tuple[!dir].dst;
|
|
|
struct dst_entry *dst = route->tuple[dir].dst;
|
|
|
|
|
|
ft->dir = dir;
|
|
|
@@ -50,8 +51,8 @@ flow_offload_fill_dir(struct flow_offload *flow, struct nf_conn *ct,
|
|
|
ft->src_port = ctt->src.u.tcp.port;
|
|
|
ft->dst_port = ctt->dst.u.tcp.port;
|
|
|
|
|
|
- ft->iifidx = route->tuple[dir].ifindex;
|
|
|
- ft->oifidx = route->tuple[!dir].ifindex;
|
|
|
+ ft->iifidx = other_dst->dev->ifindex;
|
|
|
+ ft->oifidx = dst->dev->ifindex;
|
|
|
ft->dst_cache = dst;
|
|
|
}
|
|
|
|