[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180517.145610.1726287379182269718.davem@davemloft.net>
Date: Thu, 17 May 2018 14:56:10 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: dsahern@...il.com
Cc: netdev@...r.kernel.org, roopa@...ulusnetworks.com
Subject: Re: [PATCH v2 net] net/ipv4: Initialize proto and ports in flow
struct
From: David Ahern <dsahern@...il.com>
Date: Wed, 16 May 2018 13:36:40 -0700
> Updating the FIB tracepoint for the recent change to allow rules using
> the protocol and ports exposed a few places where the entries in the flow
> struct are not initialized.
>
> For __fib_validate_source add the call to fib4_rules_early_flow_dissect
> since it is invoked for the input path. For netfilter, add the memset on
> the flow struct to avoid future problems like this. In ip_route_input_slow
> need to set the fields if the skb dissection does not happen.
>
> Fixes: bfff4862653b ("net: fib_rules: support for match on ip_proto, sport and dport")
> Signed-off-by: David Ahern <dsahern@...il.com>
> ---
> Have not seen any problems with the IPv6 version
>
> v2
> - do not remove tracepoint in __fib_validate_source (sent the net-next
> version of this patch)
> - add set of ports and proto to ip_route_input_slow if skb dissect
> is not done
Applied, thanks David.
Powered by blists - more mailing lists