Re: [PATCH ipsec-next 2/2] xfrm: configure policy hash table thresholds by /proc
From: Christophe Gouault <hidden>
Date: 2014-05-23 08:30:17
From: Christophe Gouault <hidden>
Date: 2014-05-23 08:30:17
On 05/22/2014 12:15 PM, David Laight wrote:
From: Klassert ...quoted
quoted
Exporting a userland API (here by /proc) enables a user or a daemon to choose a strategy according to information the kernel does not necessarily have, and enables to implement various (possibly complex) policies.If we add a user API for the current lookup mechanism, we will stick with this because we can't change it anymore without breaking userspace. So I don't want to add one before we finally decided on a long term lookup mechanism for IPsec.You could have a user API call to find the list of available mechanisms as well as one that returns/sets the current one. Then there is no actual requirement to continue to support any specific one. David
Hi David, It sounds like a brilliant idea, since we will probably need to support several types of mechanisms. If nobody objects, I can start working on such API. Any preference on the type of API? (/proc, netlink, ioctl?...) Christophe