Skip to content
  • Jianbo Liu's avatar
    net/mlx5: Introduce vport metadata matching bits and enum constants · 65c0f2c1
    Jianbo Liu authored
    
    
    When a dual-port VHCA sends a RoCE packet on its non-native port, and
    the packet arrives to its affiliated vport FDB, a mismatch might occur
    on the rules that match the packet source vport. So we replace the
    match on source port with the match on metadata that was configured in
    ingress ACL, and that metadata will be passed further also to the NIC
    RX table of the eswitch manager.
    
    Introduce vport metadata matching bits and enum constants as a pre-step
    towards metadata matching.
        o metadata type C registers in the misc parameters 2 fields.
        o esw_uplink_ingress_acl bit in esw cap. If it set, the device supports
          ingress ACL for the uplink vport.
        o fdb_to_vport_reg_* bits in flow table cap and esw vport context, to
          support propagating the metadata to the nic rx through the loopback
          path.
        o flow_source in flow context, to indicate the known origin of packets.
        o enum constants, to support the above bits.
    
    Signed-off-by: default avatarJianbo Liu <jianbol@mellanox.com>
    Reviewed-by: default avatarEli Britstein <elibr@mellanox.com>
    Reviewed-by: default avatarRoi Dayan <roid@mellanox.com>
    Reviewed-by: default avatarMark Bloch <markb@mellanox.com>
    Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
    65c0f2c1