Stephen Suryaputra e2c0dc1f1d vrf: check forwarding on the original netdevice when generating ICMP dest unreachable
When ip_error() is called the device is the l3mdev master instead of the
original device. So the forwarding check should be on the original one.

Changes from v2:
- Handle the original device disappearing (per David Ahern)
- Minimize the change in code order

Changes from v1:
- Only need to reset the device on which __in_dev_get_rcu() is done (per
  David Ahern).

Signed-off-by: Stephen Suryaputra <ssuryaextr@gmail.com>
Acked-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-03-01 21:40:22 -05:00
..
2018-02-15 14:29:27 -08:00
2017-11-01 12:19:03 +09:00
2018-02-27 14:36:28 -05:00
2018-02-16 15:16:05 -05:00
2017-11-08 16:12:33 +09:00
2018-02-26 15:07:04 -05:00
2018-02-27 14:41:48 -05:00
2018-02-01 09:51:57 -08:00