On 2017-11-09 19:24, Andrew Lunn wrote:
The registers writing code is where? switchdev driver?
All I care about is that all the switch specific code should be in one
place.

The switch specific code is in the switch specific driver.

Take a look under drivers/net/dsa for the switches which are currently
supported by DSA.


OK, so looks like DSA is actually what I need. I just didn't see a clear implementation path for e.g. ACL functions. Correct me if I'm wrong, to add support for ar8327 ACL or port rate control I should expand struct dsa_switch_ops, add appropriate infrastructure in netfilter/tc subsystem and actually implement in drivers/net/dsa/qca8k.c ?

Regards,
Roman

Reply via email to