Commit 4c25f3f0 authored by Ido Schimmel's avatar Ido Schimmel Committed by Paolo Abeni
Browse files

net: fib_rules: Enable flow label selector usage



Now that both IPv4 and IPv6 correctly handle the new flow label
attributes, enable user space to configure FIB rules that make use of
the flow label by changing the policy to stop rejecting them and
accepting 32 bit values in big-endian byte order.

Reviewed-by: default avatarPetr Machata <petrm@nvidia.com>
Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
Reviewed-by: default avatarGuillaume Nault <gnault@redhat.com>
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 9aa77531
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -770,8 +770,8 @@ static const struct nla_policy fib_rule_policy[FRA_MAX + 1] = {
	[FRA_SPORT_RANGE] = { .len = sizeof(struct fib_rule_port_range) },
	[FRA_DPORT_RANGE] = { .len = sizeof(struct fib_rule_port_range) },
	[FRA_DSCP]	= NLA_POLICY_MAX(NLA_U8, INET_DSCP_MASK >> 2),
	[FRA_FLOWLABEL] = { .type = NLA_REJECT },
	[FRA_FLOWLABEL_MASK] = { .type = NLA_REJECT },
	[FRA_FLOWLABEL] = { .type = NLA_BE32 },
	[FRA_FLOWLABEL_MASK] = { .type = NLA_BE32 },
};

int fib_nl_newrule(struct sk_buff *skb, struct nlmsghdr *nlh,