• Amit Cohen's avatar
    mlxsw: spectrum_flower: Make vlan_id limitation more specific · 70ec72d5
    Amit Cohen authored
    Spectrum ASICs do not support matching of VLAN ID at egress.
    Currently, mlxsw driver forbids matching of all VLAN related fields at
    egress, which is too strict check.
    
    For example, the following filter is not supported by the driver:
    $ tc filter add dev swpX egress protocol 802.1q pref 1 handle 101 flower
    vlan_ethtype ipv4 src_ip .. dst_ip .. skip_sw action pass
    Error: mlxsw_spectrum: vlan_id key is not supported on egress.
    We have an error talking to the kernel
    
    The filter above does not match on VLAN ID, but is bounced anyway.
    
    Make the check more specific, forbid only matching of 'vlan_id' at egress.
    Signed-off-by: default avatarAmit Cohen <amcohen@nvidia.com>
    Reviewed-by: default avatarPetr Machata <petrm@nvidia.com>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    70ec72d5
spectrum_flower.c 21.5 KB