1. 06 Nov, 2019 2 commits
  2. 05 Nov, 2019 8 commits
    • David S. Miller's avatar
      Merge branch 'icmp-move-duplicate-code-in-helper-functions' · fd4b3558
      David S. Miller authored
      Matteo Croce says:
      
      ====================
      icmp: move duplicate code in helper functions
      
      Remove some duplicate code by moving it in two helper functions.
      First patch adds the helpers, the second one uses it.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      fd4b3558
    • Matteo Croce's avatar
      icmp: remove duplicate code · 54074f1d
      Matteo Croce authored
      The same code which recognizes ICMP error packets is duplicated several
      times. Use the icmp_is_err() and icmpv6_is_err() helpers instead, which
      do the same thing.
      
      ip_multipath_l3_keys() and tcf_nat_act() didn't check for all the error types,
      assume that they should instead.
      Signed-off-by: default avatarMatteo Croce <mcroce@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      54074f1d
    • Matteo Croce's avatar
      icmp: add helpers to recognize ICMP error packets · 15122464
      Matteo Croce authored
      Add two helper functions, one for IPv4 and one for IPv6, to recognize
      the ICMP packets which are error responses.
      This packets are special because they have as payload the original
      header of the packet which generated it (RFC 792 says at least 8 bytes,
      but Linux actually includes much more than that).
      Signed-off-by: default avatarMatteo Croce <mcroce@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      15122464
    • David S. Miller's avatar
      Merge branch 'netvsc-RSS-related-patches' · b8fed591
      David S. Miller authored
      Stephen Hemminger says:
      
      ====================
      netvsc: RSS related patches
      
      Address a couple of issues related to recording RSS hash
      value in skb. These were found by reviewing RSS support.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      b8fed591
    • Stephen Hemminger's avatar
      hv_netvsc: record hardware hash in skb · 1fac7ca4
      Stephen Hemminger authored
      Since RSS hash is available from the host, record it in
      the skb.
      Signed-off-by: default avatarStephen Hemminger <sthemmin@microsoft.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      1fac7ca4
    • Stephen Hemminger's avatar
      hv_netvsc: flag software created hash value · df9f540c
      Stephen Hemminger authored
      When the driver needs to create a hash value because it
      was not done at higher level, then the hash should be marked
      as a software not hardware hash.
      
      Fixes: f72860af ("hv_netvsc: Exclude non-TCP port numbers from vRSS hashing")
      Signed-off-by: default avatarStephen Hemminger <sthemmin@microsoft.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      df9f540c
    • David S. Miller's avatar
      Merge branch '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue · 39069faa
      David S. Miller authored
      Jeff Kirsher says:
      
      ====================
      100GbE Intel Wired LAN Driver Updates 2019-11-04
      
      This series contains updates to the ice driver only.
      
      Anirudh refactors the code to reduce the kernel configuration flags and
      introduces ice_base.c file.
      
      Maciej does additional refactoring on the configuring of transmit
      rings so that we are not configuring per each traffic class flow.
      Added support for XDP in the ice driver.  Provides additional
      re-organizing of the code in preparation for adding build_skb() support
      in the driver.  Adjusted the computational padding logic for headroom
      and tailroom to better support build_skb(), which also aligns with the
      logic in other Intel LAN drivers.  Added build_skb support and make use
      of the XDP's data_meta.
      
      Krzysztof refactors the driver to prepare for AF_XDP support in the
      driver and then adds support for AF_XDP.
      
      v2: Updated patch 3 of the series based on community feedback with the
          following changes...
          - return -EOPNOTSUPP instead of ENOTSUPP for too large MTU which makes
            it impossible to attach XDP prog
          - don't check for case when there's no XDP prog currently on interface
            and ice_xdp() is called with NULL bpf_prog; this happens when user
            does "ip link set eth0 xdp off" and no prog is present on VSI; no need
            for that as it is handled by higher layer
          - drop the extack message for unknown xdp->command
          - use the smp_processor_id() for accessing the XDP Tx ring for XDP_TX
            action
          - don't leave the interface in downed state in case of any failure
            during the XDP Tx resources handling
          - undo rename of ice_build_ctob
          The above changes caused a ripple effect in patches 4 & 5 to update
          references to ice_build_ctob() which are now build_ctob()
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      39069faa
    • David S. Miller's avatar
      Merge branch '10GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue · eeb2045b
      David S. Miller authored
      Jeff Kirsher says:
      
      ====================
      10GbE Intel Wired LAN Driver Updates 2019-11-04
      
      This series contains old Halloween candy updates, yet still sweet, to
      fm10k, ixgbe and i40e.
      
      Jake adds the missing initializers for a couple of the TLV attribute
      macros.  Added support for capturing and reporting statistics for all of
      the VFs in a given PF.  Lastly, bump the version of the fm10k driver to
      reflect the recent changes.
      
      Alex addresses locality issues in the ixgbe driver when it is loaded on
      a system supporting multiple NUMA nodes.
      
      Manjunath Patil provides changes to the ixgbe driver, similar to those
      made to igb, to prevent transmit packets to request a hardware timestamp
      when the NIC has not been setup via the SIOCSHWTSTAMP ioctl.
      
      Alice adds support for x710 by adding the missing device id's in the
      appropriate places to ensure all the features are enabled in i40e.
      
      Jesse adds support for VF stats gathering in the i40e via the kernel
      via ndo_get_vf_stats function.
      
      v2: Fixed up commit id references in patch 5's description to align with
          how commit id's should be referenced.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      eeb2045b
  3. 04 Nov, 2019 30 commits