net: dsa: bcm_sf2: Check egress tagging of CFP rule with proper accessor
Subsystems (2)
Florian Fainelli
Acked-byQuoted 18 lines · Vladimir Oltean
The flow steering struct
ethtool_flow_ext::datafield is__be32, so when the CFP code needs to check the VLAN egress tagging attribute in bit 0, it does this in CPU native endianness. So logically, the endianness conversion is set up the other way around, although in practice the same result is produced.Gets rid of build warning:
warning: cast from restricted
__be32
warning: incorrect type in argument 1 (different base types)
expected unsigned int [usertype] val
got restricted__be32
warning: cast from restricted__be32
warning: cast from restricted__be32
warning: cast from restricted__be32
warning: cast from restricted__be32
warning: restricted__be32degrades to integer
Quoted 1 line
Signed-off-by Vladimir Oltean <[email protected]>
Acked-by Florian Fainelli <[email protected]>
Signature · 1 line
Florian