net: fib_rules: do not flow dissect local packets
Subsystems (3)
Rules matching on loopback iif do not need early flow dissection as the packet originates from the host. Stop counting such rules in fib_rule_requires_fldissect
--- include/net/fib_rules.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
include/net/fib_rules.h +2 -2
@@ -180,9 +180,9 @@ static inline bool fib_rule_port_range_compare(struct fib_rule_port_range *a,static inline bool fib_rule_requires_fldissect (struct fib_rule *rule) { -return rule->ip_proto || +return rule->iifindex !=LOOPBACK_IFINDEX && (rule->ip_proto ||fib_rule_port_range_set (&rule->sport_range) || -fib_rule_port_range_set (&rule->dport_range); +fib_rule_port_range_set (&rule->dport_range)); } struct fib_rules_ops *fib_rules_register(const struct fib_rules_ops *,
Signature · 1 line
2.22.0.410.gd8fdbe21b5-goog
David Miller
maintainerFrom: Petar Penkov <[email protected]>
Date: Fri, 5 Jul 2019 11:46:43 -0700
Quoted 5 lines
Rules matching on loopback iif do not need early flow dissection as the packet originates from the host. Stop counting such rules in
fib_rule_requires_fldissectSigned-off-by Petar Penkov <[email protected]>
Roopa, please review.
From: Petar Penkov <[email protected]>
Date: Fri, 5 Jul 2019 11:46:43 -0700
Quoted 5 lines
Rules matching on loopback iif do not need early flow dissection as the packet originates from the host. Stop counting such rules in
fib_rule_requires_fldissectSigned-off-by Petar Penkov <[email protected]>
Applied, thank you.
Quoted 11 lines · David Miller
From: Petar Penkov <[email protected]>
Date: Fri, 5 Jul 2019 11:46:43 -0700Quoted 5 lines
Rules matching on loopback iif do not need early flow dissection as the packet originates from the host. Stop counting such rules in
fib_rule_requires_fldissectSigned-off-by Petar Penkov <[email protected]>Roopa, please review.
sorry about the delay. I was traveling the last few days.
looks ok to me. thanks.