1. 02 3月, 2018 38 次提交
  2. 01 3月, 2018 2 次提交
    • D
      Merge branch 'fib_rules-support-sport-dport-and-proto-match' · a25724b0
      David S. Miller 提交于
      Roopa Prabhu says:
      
      ====================
      fib_rules: support sport, dport and proto match
      
      This series extends fib rule match support to include sport, dport
      and ip proto match (to complete the 5-tuple match support).
      Common use-cases of Policy based routing in the data center require
      5-tuple match. The last 2 patches in the series add a call to flow dissect
      in the fwd path if required by the installed fib rules (controlled by a flag).
      
      v1:
        - Fix errors reported by kbuild and feedback on RFC
        - extend port match uapi to accomodate port ranges
      
      v2:
        - address comments from Nikolay, David Ahern and Paolo (Thanks!)
      
      Pending things I will submit separate patches for:
        - extack for fib rules
        - fib rules test (as requested by david ahern)
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a25724b0
    • R
      ipv6: route: dissect flow in input path if fib rules need it · 5e5d6fed
      Roopa Prabhu 提交于
      Dissect flow in fwd path if fib rules require it. Controlled by
      a flag to avoid penatly for the common case. Flag is set when fib
      rules with sport, dport and proto match that require flow dissect
      are installed. Also passes the dissected hash keys to the multipath
      hash function when applicable to avoid dissecting the flow again.
      icmp packets will continue to use inner header for hash
      calculations.
      Signed-off-by: NRoopa Prabhu <roopa@cumulusnetworks.com>
      Acked-by: NPaolo Abeni <pabeni@redhat.com>
      Acked-by: NNikolay Aleksandrov <nikolay@cumulusnetworks.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5e5d6fed