• Xiaoliang Yang's avatar
    net: mscc: ocelot: offload ingress skbedit and vlan actions to VCAP IS1 · 75944fda
    Xiaoliang Yang authored
    VCAP IS1 is a VCAP module which can filter on the most common L2/L3/L4
    Ethernet keys, and modify the results of the basic QoS classification
    and VLAN classification based on those flow keys.
    
    There are 3 VCAP IS1 lookups, mapped over chains 10000, 11000 and 12000.
    Currently the driver is hardcoded to use IS1_ACTION_TYPE_NORMAL half
    keys.
    
    Note that the VLAN_MANGLE has been omitted for now. In hardware, the
    VCAP_IS1_ACT_VID_REPLACE_ENA field replaces the classified VLAN
    (metadata associated with the frame) and not the VLAN from the header
    itself. There are currently some issues which need to be addressed when
    operating in standalone, or in bridge with vlan_filtering=0 modes,
    because in those cases the switch ports have VLAN awareness disabled,
    and changing the classified VLAN to anything other than the pvid causes
    the packets to be dropped. Another issue is that on egress, we expect
    port tagging to push the classified VLAN, but port tagging is disabled
    in the modes mentioned above, so although the classified VLAN is
    replaced, it is not visible in the packet transmitted by the switch.
    Signed-off-by: default avatarXiaoliang Yang <xiaoliang.yang_1@nxp.com>
    Signed-off-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    75944fda
felix_vsc9959.c 46.2 KB