> Could we perhaps open-code these from the drivers themselves? There's > hardly any added value in DSA providing a "helper" for creation of > devlink resources (regions, shared buffers, etc). It is something i considered. But we already have devlink wrappers. It would be odd to have some parts of devlink wrapped and other parts not.
The wrapping of phys is also causing Russell King problems. Both phylink and devlink structures are mostly hidden away in the DSA core, but do leak a bit into the drivers. If we do change to open coding, would we remove the existing wrappers as well? > Take the ocelot/felix driver for example. ocelot/felix is just plain odd. We have to do a balancing act for it. We don't want to take stuff out of the core just for this one odd switch, at the detriment for other normal DSA drivers. Andrew