vrf: check accept_source_route on the original netdevice
authorStephen Suryaputra <ssuryaextr@gmail.com>
Mon, 1 Apr 2019 13:17:32 +0000 (09:17 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Apr 2019 17:44:58 +0000 (10:44 -0700)
commit8c83f2df9c6578ea4c5b940d8238ad8a41b87e9e
tree25b10b6f99295706111c3cbd972cac15a7e8ced1
parent8c1074f690bca6c6c8d79fc4a5752635cd0bfbe0
vrf: check accept_source_route on the original netdevice

Configuration check to accept source route IP options should be made on
the incoming netdevice when the skb->dev is an l3mdev master. The route
lookup for the source route next hop also needs the incoming netdev.

v2->v3:
- Simplify by passing the original netdevice down the stack (per David
  Ahern).

Signed-off-by: Stephen Suryaputra <ssuryaextr@gmail.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip.h
net/ipv4/ip_input.c
net/ipv4/ip_options.c