• Parav Pandit's avatar
    net/mlx5: Refactor ingress acl configuration · 10652f39
    Parav Pandit authored
    Drop, untagged, spoof check and untagged spoof check flow groups are
    limited to legacy mode only.
    
    Therefore, following refactoring is done to
    (a) improve code readability
    (b) have better code split between legacy and offloads mode
    
    1. Move legacy flow groups under legacy structure
    2. Add validity check for group deletion
    3. Restrict scope of esw_vport_disable_ingress_acl to legacy mode
    4. Rename esw_vport_enable_ingress_acl() to
    esw_vport_create_ingress_acl_table() and limit its scope to
    table creation
    5. Introduce legacy flow groups creation helper
    esw_legacy_create_ingress_acl_groups() and keep its scope to legacy mode
    6. Reduce offloads ingress groups from 4 to just 1 metadata group
    per vport
    7. Removed redundant IS_ERR_OR_NULL as entries are marked NULL on free.
    8. Shortern error message to remove redundant 'E-switch'
    Signed-off-by: default avatarParav Pandit <parav@mellanox.com>
    Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
    10652f39
eswitch.h 20.2 KB