1. 21 12月, 2017 37 次提交
  2. 20 12月, 2017 3 次提交
    • D
      Merge branch 'nfp-flower-add-Geneve-tunnel-support' · f39a5c01
      David S. Miller 提交于
      Simon Horman says:
      
      ====================
      nfp: flower: add Geneve tunnel support
      
      John Hurley says:
      
      This patchset adds support for offloading the encap and decap of Geneve
      tunnels to the NFP. In both cases, specifying well known port 6081 is a
      requirement for rule offload.
      
      Geneve firmware support has been recently added, so the patchset includes
      the reading of a fw symbol that defines a bitmap of newly supported
      features. Geneve will only be offloaded if the fw supports it. The new
      symbol is added in fw r5646.
      
      Geneve option fields are not supported as either a match or an action due
      there current exclussion from TC flower. Because Geneve (as both a match
      and action) behaves the same as other udp tunnels such as VXLAN, generic
      functions are created that handle both Geneve and VXLAN. It is anticapated
      that these functions will be modified to support options in future
      patches.
      
      The removal of an unused variable 'tun_dst_mask' is included as a separate
      patch here. This does not affect functionality.
      
      Also included are modifications to the test framework to check that the
      new encap and decap features are functioning correctly.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f39a5c01
    • J
      nfp: flower: compile Geneve encap actions · 3ca3059d
      John Hurley 提交于
      Generate rules for the NFP to encapsulate packets in Geneve tunnels. Move
      the vxlan action code to generic udp tunnel actions and use core code for
      both vxlan and Geneve.
      
      Only support outputting to well known port 6081. Setting tunnel options
      is not supported yet.
      
      Only attempt to offload if the fw supports Geneve.
      Signed-off-by: NJohn Hurley <john.hurley@netronome.com>
      Reviewed-by: NJakub Kicinski <jakub.kicinski@netronome.com>
      Signed-off-by: NSimon Horman <simon.horman@netronome.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3ca3059d
    • J
      nfp: flower: compile Geneve match fields · bedeca15
      John Hurley 提交于
      Compile Geneve match fields for offloading to the NFP. The addition of
      Geneve overflows the 8 bit key_layer field, so apply extended metadata to
      the match cmsg allowing up to 32 more key_layer fields.
      
      Rather than adding new Geneve blocks, move the vxlan code to generic ipv4
      udp tunnel structs and use these for both vxlan and Geneve.
      
      Matches are only supported when specifically mentioning well known port
      6081. Geneve tunnel options are not yet included in the match.
      
      Only offload Geneve if the fw supports it - include check for this.
      Signed-off-by: NJohn Hurley <john.hurley@netronome.com>
      Reviewed-by: NJakub Kicinski <jakub.kicinski@netronome.com>
      Signed-off-by: NSimon Horman <simon.horman@netronome.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      bedeca15