• Ido Schimmel's avatar
    mlxsw: spectrum_router: Add support for inner layer 3 multipath hash policy · 01848e05
    Ido Schimmel authored
    When this policy is set, the kernel uses the inner layer 3 fields for
    multipath hash computation and falls back to the outer fields if no
    encapsulation was encountered. This behavior is most likely influenced
    by the behavior of the flow dissector, which is used for the packet
    dissection.
    
    The Spectrum ASIC, however, cannot fallback to outer fields if inner
    fields are not available. This should not result in a discrepancy from
    the software data path because if several flows have matching inner
    fields, they will tend to have matching outer fields as well.
    
    Therefore, implement this policy by enabling both outer and inner layer
    3 fields for the multipath hash computation.
    Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
    Reviewed-by: default avatarPetr Machata <petrm@nvidia.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    01848e05
spectrum_router.c 272 KB