• Huy Nguyen's avatar
    net/mlx5e: Add dcbnl dscp to priority support · 2a5e7a13
    Huy Nguyen authored
    This patch implements dcbnl hooks to set and delete DSCP to priority map
    as defined by the DCB subsystem. Device maintains internal trust state
    which needs to be set to DSCP state for performing DSCP to priority mapping.
    
    When the first dscp to priority APP entry is added by the user, the
    trust state is changed to dscp.
    
    When the last dscp to priority APP entry is deleted by the user, the
    trust state is changed to pcp.
    
    If user sends multiple dscp to priority APP entries on the same dscp,
    the last sent one will take effect. All the previous sent will be
    deleted.
    
    The dscp to priority APP entries are added and deleted in the net/dcb
    APP database using dcb_ieee_setapp/getapp.
    Signed-off-by: default avatarHuy Nguyen <huyn@mellanox.com>
    Reviewed-by: default avatarParav Pandit <parav@mellanox.com>
    Reviewed-by: default avatarOr Gerlitz <ogerlitz@mellanox.com>
    Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
    2a5e7a13
en_main.c 116 KB