Re: [PATCH net] ipv6: set rt6i_protocol properly in the route when it is installed

2017-08-03 Thread David Miller
From: Xin Long Date: Thu, 3 Aug 2017 14:13:46 +0800 > After commit c2ed1880fd61 ("net: ipv6: check route protocol when > deleting routes"), ipv6 route checks rt protocol when trying to > remove a rt entry. > > It introduced a side effect causing 'ip -6 route flush cache' not > to work well. Whe

[PATCH net] ipv6: set rt6i_protocol properly in the route when it is installed

2017-08-02 Thread Xin Long
After commit c2ed1880fd61 ("net: ipv6: check route protocol when deleting routes"), ipv6 route checks rt protocol when trying to remove a rt entry. It introduced a side effect causing 'ip -6 route flush cache' not to work well. When flushing caches with iproute, all route caches get dumped from ke