1. 10 Feb, 2017 37 commits
  2. 09 Feb, 2017 3 commits
    • David S. Miller's avatar
      Merge branch 'enic-vxlan-offload' · b66a8043
      David S. Miller authored
      Govindarajulu Varadarajan says:
      
      ====================
      enic: add vxlan offload support
      
      This series adds vxlan offload support for enic driver. The first
      patch adds vxlan devcmd for configuring vxland offload parameters.
      Second patch adds ndo_udp_tunnel_add/del and offload on rx path.
      There are to modes in which fw supports vxlan offload.
      
      mode 0: fcoe bit is set for encapsulated packet. fcoe_fc_crc_ok is set
      if checksum of csum is ok. This bit is or of ip_csum_ok and
      tcp_udp_csum_ok
      
      mode 2: BIT(0) in rss_hash is set if it is encapsulated packet.
              BIT(1) is set if outer_ip_csum_ok/
              BIT(2) is set if outer_tcp_csum_ok
      
      Some hw supports only mode 0, some support mode 0 and 2. Driver gets
      the supported modes bitmap using get_supported_feature_ver devcmd
      and selects the highest mode both driver and fw supports.
      
      Third patch adds offload support on tx path by adding
      enic_features_check().
      
      v2: Order local variable declarations from longest to shortest line,
          on all three patches.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      b66a8043
    • Govindarajulu Varadarajan's avatar
      enic: add vxlan offload on tx path · 9c744d10
      Govindarajulu Varadarajan authored
      Define ndo_features_check. Hw supports offload only for ipv4 inner and
      ipv4 outer pkt.
      
      Code refactor for setting inner tcp pseudo csum.
      Signed-off-by: default avatarGovindarajulu Varadarajan <gvaradar@cisco.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      9c744d10
    • Govindarajulu Varadarajan's avatar
      enic: add udp_tunnel ndo for vxlan offload · 257e7382
      Govindarajulu Varadarajan authored
      Defines enic_udp_tunnel_add/del for configuring vxlan tunnel offload.
      enic supports offload of only one ipv4/udp port.
      
      There are two modes that fw supports for vxlan offload.
      
      mode 0: fcoe bit is set for encapsulated packet. fcoe_fc_crc_ok is set
      if checksum of csum is ok. This bit is or of ip_csum_ok and
      tcp_udp_csum_ok
      
      mode 2: BIT(0) in rss_hash is set if it is encapsulated packet.
      	BIT(1) is set if outer_ip_csum_ok/
      	BIT(2) is set if outer_tcp_csum_ok
      
      tcp_udp_csum_ok/ipv4_csum_ok is set if inner csum is OK.
      Signed-off-by: default avatarGovindarajulu Varadarajan <gvaradar@cisco.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      257e7382