lkml.org 
[lkml]   [2020]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.9 052/212] net/mlx5e: Dont support phys switch id if not in switchdev mode
    Date

    From: Roi Dayan <roid@mellanox.com>

    Support for phys switch id ndo added for representors and if
    we do not have representors there is no need to support it.
    Since each port return different switch id supporting this
    block support for creating bond over PFs and attaching to bridge
    in legacy mode.

    This bug doesn't exist upstream as the code got refactored and the
    netdev api is totally different.

    Fixes: cb67b832921c ("net/mlx5e: Introduce SRIOV VF representors")
    Signed-off-by: Roi Dayan <roid@mellanox.com>
    Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
    +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
    @@ -139,7 +139,7 @@ int mlx5e_attr_get(struct net_device *de
    struct mlx5_eswitch_rep *rep = priv->ppriv;
    struct mlx5_eswitch *esw = priv->mdev->priv.eswitch;

    - if (esw->mode == SRIOV_NONE)
    + if (esw->mode != SRIOV_OFFLOADS)
    return -EOPNOTSUPP;

    switch (attr->id) {

    \
     
     \ /
      Last update: 2020-08-20 14:10    [W:4.160 / U:0.068 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site