Re: [PATCH net-next] ipmr: ip6mr: Create new sockopt to clear mfc cache or vifs

From: Nicolas Dichtel
Date: Fri Feb 08 2019 - 10:08:48 EST


Le 08/02/2019 Ã 15:43, Nikolay Aleksandrov a ÃcritÂ:
> On 08/02/2019 16:18, Nicolas Dichtel wrote:
>> Le 08/02/2019 Ã 05:11, Callum Sinclair a ÃcritÂ:
>>> Currently the only way to clear the mfc cache was to delete the entries
>> mfc stands for 'multicast forwarding cache', so 'mfc cache' is a bit strange.
>>
>>> one by one using the MRT_DEL_MFC socket option or to destroy and
>>> recreate the socket.
>> Note that if entries were added with MRT_ADD_MFC_PROXY, they will survive to the
>> socket destruction. This is not the case with your new cmd. Is it intended?
>
> I think you're referring to MFC_STATIC entries (sk != mroute_sk). It
> doesn't matter how you add an entry - they all get cleaned up if added
> through the mroute socket.
Yes, right.
MRT_FLUSH_MFC_STATIC ?