• I
    ipv6: Add custom multipath hash policy · 73c2c5cb
    Ido Schimmel 提交于
    Add a new multipath hash policy where the packet fields used for hash
    calculation are determined by user space via the
    fib_multipath_hash_fields sysctl that was introduced in the previous
    patch.
    
    The current set of available packet fields includes both outer and inner
    fields, which requires two invocations of the flow dissector. Avoid
    unnecessary dissection of the outer or inner flows by skipping
    dissection if none of the outer or inner fields are required.
    
    In accordance with the existing policies, when an skb is not available,
    packet fields are extracted from the provided flow key. In which case,
    only outer fields are considered.
    Signed-off-by: NIdo Schimmel <idosch@nvidia.com>
    Reviewed-by: NDavid Ahern <dsahern@kernel.org>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    73c2c5cb
sysctl_net_ipv6.c 7.9 KB