• S
    net/mlx5e: Introduce switch channels · 55c2503d
    Saeed Mahameed 提交于
    A fail safe helper functions that allows switching to new channels on the
    fly,  In simple words:
    
    make_new_config(new_params)
    {
        new_channels = open_channels(new_params);
        if (!new_channels)
             return "Failed, but current channels are still active :)"
    
        switch_channels(new_channels);
    
        return "SUCCESS";
    }
    
    Demonstrate mlx5e_switch_priv_channels usage in set channels ethtool
    callback and make it fail-safe using the new switch channels mechanism.
    Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
    Reviewed-by: NTariq Toukan <tariqt@mellanox.com>
    55c2503d
en.h 29.7 KB