• Saeed Mahameed's avatar
    net/mlx5e: Use static constant netdevice ndos · b0eed40e
    Saeed Mahameed authored
    Currently our netdevice ops is a one static global variable which
    is referenced by all mlx5e netdevice instances. This can be
    problematic when different driver instances do not share same
    HW capabilities (e.g SRIOV PF and VFs probed to the host).
    
    Now we have two constant global netdevice ops variables, one
    for basic netdevice ops and the other with extended SRIOV ops,
    on netdevice construction we choose the one suitable for
    current device capabilities.
    
    Fixes: 66e49ded ("net/mlx5e: Add support for SR-IOV ndos")
    Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    b0eed40e
en_main.c 57.7 KB