• Vladimir Oltean's avatar
    net: mscc: ocelot: automatically detect VCAP constants · 20968054
    Vladimir Oltean authored
    The numbers in struct vcap_props are not intuitive to derive, because
    they are not a straightforward copy-and-paste from the reference manual
    but instead rely on a fairly detailed level of understanding of the
    layout of an entry in the TCAM and in the action RAM. For this reason,
    bugs are very easy to introduce here.
    
    Ease the work of hardware porters and read from hardware the constants
    that were exported for this particular purpose. Note that this implies
    that struct vcap_props can no longer be const.
    Signed-off-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    20968054
felix.h 1.62 KB