Wei Wang
4a6ce2b6f2
net: introduce a new function dst_dev_put()
...
This function should be called when removing routes from fib tree after
the dst gc is no longer in use.
We first mark DST_OBSOLETE_DEAD on this dst to make sure next
dst_ops->check() fails and returns NULL.
Secondly, as we no longer keep the gc_list, we need to properly
release dst->dev right at the moment when the dst is removed from
the fib/fib6 tree.
It does the following:
1. change dst->input and output pointers to dst_discard/dst_dscard_out to
discard all packets
2. replace dst->dev with loopback interface
Signed-off-by: Wei Wang <weiwan@google.com >
Acked-by: Martin KaFai Lau <kafai@fb.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2017-06-17 22:53:59 -04:00
..
2017-04-12 22:02:40 +02:00
2017-05-19 15:06:48 -07:00
2017-06-16 11:48:40 -04:00
2017-06-16 11:48:40 -04:00
2017-06-16 11:48:40 -04:00
2017-06-16 11:48:39 -04:00
2017-06-16 11:48:40 -04:00
2017-06-16 11:48:39 -04:00
2017-06-16 11:48:40 -04:00
2017-05-02 11:46:28 -04:00
2017-06-16 11:48:40 -04:00
2017-06-15 11:59:32 -04:00
2017-06-16 11:48:37 -04:00
2017-05-24 18:10:51 +02:00
2017-06-17 22:53:59 -04:00
2017-05-21 13:42:33 -04:00
2017-06-16 11:48:40 -04:00
2017-06-16 15:00:00 -04:00
2017-03-03 10:16:38 -08:00
2017-06-16 15:21:14 -04:00
2017-06-16 11:48:40 -04:00
2017-06-12 15:21:20 -04:00
2017-06-16 11:48:37 -04:00
2017-02-03 15:16:45 -05:00
2017-06-17 22:53:59 -04:00
2017-06-17 22:53:59 -04:00
2017-05-02 15:34:53 -04:00
2017-06-16 11:48:40 -04:00
2017-06-16 11:48:40 -04:00
2017-05-16 11:54:07 -04:00
2017-06-16 11:48:39 -04:00
2017-06-10 16:14:27 -04:00
2016-12-24 11:46:01 -08:00
2017-05-26 14:20:29 -04:00
2017-06-16 11:48:40 -04:00
2017-06-07 15:53:24 -04:00
2017-06-06 22:20:08 -04:00
2017-06-16 11:48:40 -04:00
2017-06-16 11:48:39 -04:00
2017-04-13 13:58:22 -04:00
2017-06-16 11:48:39 -04:00
2017-03-09 18:23:27 -08:00
2017-06-16 11:48:40 -04:00
2017-06-16 11:48:35 -04:00
2017-06-10 16:15:25 -04:00
2017-06-07 15:53:24 -04:00
2017-06-16 11:48:39 -04:00
2017-06-16 11:48:39 -04:00
2017-06-16 12:45:15 -04:00
2017-06-13 11:07:51 +02:00
2017-03-09 18:23:27 -08:00
2017-06-16 11:48:35 -04:00
2017-06-15 14:21:03 -04:00
2017-06-16 11:48:40 -04:00
2017-05-16 14:49:43 -04:00
2017-03-03 20:43:26 -08:00
2017-05-31 12:26:44 -04:00
2017-06-08 14:16:24 -04:00
2017-06-10 18:20:38 -04:00
2017-06-16 11:28:49 -04:00
2017-06-09 10:10:24 -04:00
2017-06-16 11:48:39 -04:00
2017-06-16 11:48:40 -04:00
2017-06-16 11:48:37 -04:00
2017-05-19 12:49:13 +02:00
2017-02-22 10:15:09 -08:00
2017-06-15 12:12:40 -04:00
2017-06-15 12:12:40 -04:00
2017-05-22 12:14:04 -04:00
2017-04-16 23:42:49 -05:00