lkml.org 
[lkml]   [2020]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.4 216/312] net/mlx4_core: Fix the resource-type enum in res tracker to conform to FW spec
    Date
    From: Jack Morgenstein <jackm@dev.mellanox.co.il>

    commit aa0c08feae8161b945520ada753d0dfe62b14fe7 upstream.

    The resource type enum in the resource tracker was incorrect.
    RES_EQ was put in the position of RES_NPORT_ID (a FC resource).

    Since the remaining resources maintain their current values,
    and RES_EQ is not passed from slaves to the hypervisor in any
    FW command, this change affects only the hypervisor.
    Therefore, there is no backwards-compatibility issue.

    Fixes: 623ed84b1f95 ("mlx4_core: initial header-file changes for SRIOV support")
    Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
    Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
    Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/net/ethernet/mellanox/mlx4/mlx4.h | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    --- a/drivers/net/ethernet/mellanox/mlx4/mlx4.h
    +++ b/drivers/net/ethernet/mellanox/mlx4/mlx4.h
    @@ -143,9 +143,10 @@ enum mlx4_resource {
    RES_MTT,
    RES_MAC,
    RES_VLAN,
    - RES_EQ,
    + RES_NPORT_ID,
    RES_COUNTER,
    RES_FS_RULE,
    + RES_EQ,
    MLX4_NUM_OF_RESOURCE_TYPE
    };


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