On 8/6/19 8:59 PM, Andrew Lunn wrote: > However, zoom out a bit, from networking to the whole kernel. In > general, across the kernel as a whole, resource management is done > with cgroups. cgroups is the consistent operational model across the > kernel as a whole. > > So i think you need a second leg to your argument. You have said why > devlink is the right way to do this. But you should also be able to > say to Tejun Heo why cgroups is the wrong way to do this, going > against the kernel as a whole model. Why is networking special? >
So you are saying mlxsw should be using a cgroups based API for its resources? netdevsim is for testing kernel APIs sans hardware. Is that not what the fib controller netdevsim is doing? It is from my perspective. I am not the one arguing to change code and functionality that has existed for 16 months. I am arguing that the existing resource controller satisfies all existing goals (testing in kernel APIs) and even satisfies additional ones - like a consistent user experience managing networking resources. ie.., I see no reason to change what exists.