• V
    net: dsa: add a "tx_fwd_offload" argument to ->port_bridge_join · b079922b
    Vladimir Oltean 提交于
    This is a preparation patch for the removal of the DSA switch methods
    ->port_bridge_tx_fwd_offload() and ->port_bridge_tx_fwd_unoffload().
    The plan is for the switch to report whether it offloads TX forwarding
    directly as a response to the ->port_bridge_join() method.
    
    This change deals with the noisy portion of converting all existing
    function prototypes to take this new boolean pointer argument.
    The bool is placed in the cross-chip notifier structure for bridge join,
    and a reference to it is provided to drivers. In the next change, DSA
    will then actually look at this value instead of calling
    ->port_bridge_tx_fwd_offload().
    Signed-off-by: NVladimir Oltean <vladimir.oltean@nxp.com>
    Reviewed-by: NAlvin Šipraga <alsi@bang-olufsen.dk>
    Signed-off-by: NJakub Kicinski <kuba@kernel.org>
    b079922b
mt7530.c 83.4 KB