1. 10 Feb, 2017 29 commits
  2. 09 Feb, 2017 11 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
    • Govindarajulu Varadarajan's avatar
      enic: add devcmds for vxlan offload · ca029179
      Govindarajulu Varadarajan authored
      This patch adds devcmds needed for vxlan offload. Implement 3 new devcmd
      
      overlay_offload_ctrl: enable/disable offload
      overlay_offload_cfg: update offload udp port number
      get_supported_feature_ver: get hw supported offload version. Each
      			   version has different bitmap for csum_ok/encap
      Signed-off-by: default avatarGovindarajulu Varadarajan <gvaradar@cisco.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      ca029179
    • Andrew Lunn's avatar
      net: dsa: mv88e6xxx: Move forward declaration to where it is needed · c0e4dadb
      Andrew Lunn authored
      Move it out from the middle for the #defines to just before it is
      needed.
      Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Reviewed-by: default avatarVivien Didelot <vivien.didelot@savoirfairelinux.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c0e4dadb
    • Florian Fainelli's avatar
      net: dsa: Fix duplicate object rule · 50f008e5
      Florian Fainelli authored
      While adding switch.o to the list of DSA object files, we essentially
      duplicated the previous obj-y line and just added switch.o, remove the
      duplicate.
      
      Fixes: f515f192 ("net: dsa: add switch notifier")
      Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      Reviewed-by: default avatarVivien Didelot <vivien.didelot@savoirfairelinux.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      50f008e5
    • David S. Miller's avatar
      Merge branch 'qcom-emac-more-ethtool' · 165f1cc0
      David S. Miller authored
      Timur Tabi says:
      
      ====================
      net: qcom/emac: add the last ethtool functions
      
      These two patches implement the remaining two ethtool functions that
      are of interest to the Qualcomm EMAC driver.  These are the last
      patches that will be submitted for the 4.11 merge window.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      165f1cc0
    • Timur Tabi's avatar
      net: qcom/emac: add ethtool support for setting ring parameters · 038b9404
      Timur Tabi authored
      Implement the set_ringparam method, which allows the user to specify
      the size of the TX and RX descriptor rings.  The values are constrained
      to the limits of the hardware.
      
      Since the driver does not use separate queues for mini or jumbo frames,
      attempts to set those values are rejected.
      
      If the interface is already running when the setting is changed, then
      the interface is reset.
      Signed-off-by: default avatarTimur Tabi <timur@codeaurora.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      038b9404
    • Timur Tabi's avatar
      net: qcom/emac: add ethtool support for reading hardware registers · c4e7beea
      Timur Tabi authored
      Implement the get_regs_len and get_regs ethtool methods.  The driver
      returns the values of selected hardware registers.
      
      The make the register offsets known to emac_ethtool, the the register
      offset macros are all combined into one header file.  They were
      inexplicably and arbitrarily split between two files.
      Signed-off-by: default avatarTimur Tabi <timur@codeaurora.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c4e7beea
    • Arnd Bergmann's avatar
      ARM: orion: remove unused wnr854t_switch_plat_data · 15c2e102
      Arnd Bergmann authored
      The other instances of this structure got removed along with the MDIO
      device change, but this one was left behind and needs to be removed
      as well:
      
      arch/arm/mach-orion5x/wnr854t-setup.c:109:44: error: 'wnr854t_switch_plat_data' defined but not used [-Werror=unused-variable]
       static struct dsa_platform_data __initdata wnr854t_switch_plat_data = {
      
      Fixes: 575e93f7 ("ARM: orion: Register DSA switch as a MDIO device")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      15c2e102
    • David S. Miller's avatar
      Merge branch 'sctp-sender-stream-reconf-reset-add-streams' · 2cbf5b42
      David S. Miller authored
      Xin Long says:
      
      ====================
      sctp: add sender-side procedures for stream reconf asoc reset and add streams
      
      Patch 4/6 is to implement sender-side procedures for the SSN/TSN Reset
      Request Parameter described in rfc6525 section 5.1.4, patch 3/6 is
      ahead of it to define a function to make the request chunk for it.
      
      Patch 6/6 is to implement sender-side procedures for the Add Incoming
      and Outgoing Streams Request Parameter Request Parameter described in
      rfc6525 section 5.1.5 and 5.1.6, patch 5/6 is ahead of it to define a
      function to make the request chunk for it.
      
      Patch 2/6 is a fix to recover streams states when it fails to send
      request and Patch 1/6 is to drop some unncessary __packed from some
      old structures.
      
      v1->v2:
        - put these into a smaller group.
        - rename some temporary variables in the codes.
        - rename the titles of the commits and improve some changelogs.
      v2->v3:
        - re-split the patchset and make sure it has no dead codes for review.
        - move some codes into stream.c from socket.c.
      v3->v4:
        - add one more patch to fix a send reset stream request issue.
        - doing actual work only when request is sent successfully.
        - reduce some indents in sctp_send_add_streams.
      v4->v5:
        - close streams before sending request and recover them when sending
          fails in patch 1/5 and patch 3/5
      v5->v6:
        - add patch 1/6 to drop some unncessary __packed from some old structures.
        - remove __packed from some new structures in patch 3/6 and 5/6.
        - define unsigned int outcnt and incnt to make codes smaller in patch 6/6.
        - use krealloc instead of kcalloc and remove ksize check in patch 6/6, as
          ksize check is acutally used in krealloc already.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      2cbf5b42