1. 09 Jul, 2019 38 commits
  2. 08 Jul, 2019 2 commits
    • Ilya Maximets's avatar
      xdp: fix race on generic receive path · bf0bdd13
      Ilya Maximets authored
      Unlike driver mode, generic xdp receive could be triggered
      by different threads on different CPU cores at the same time
      leading to the fill and rx queue breakage. For example, this
      could happen while sending packets from two processes to the
      first interface of veth pair while the second part of it is
      open with AF_XDP socket.
      
      Need to take a lock for each generic receive to avoid race.
      
      Fixes: c497176c ("xsk: add Rx receive functions and poll support")
      Signed-off-by: default avatarIlya Maximets <i.maximets@samsung.com>
      Acked-by: default avatarMagnus Karlsson <magnus.karlsson@intel.com>
      Tested-by: default avatarWilliam Tu <u9012063@gmail.com>
      Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      bf0bdd13
    • David S. Miller's avatar
      Merge branch 'mp-inner-L3' · 7650b1a9
      David S. Miller authored
      Stephen Suryaputra says:
      
      ====================
      net: Multipath hashing on inner L3
      
      This series extends commit 363887a2 ("ipv4: Support multipath
      hashing on inner IP pkts for GRE tunnel") to include support when the
      outer L3 is IPv6 and to consider the case where the inner L3 is
      different version from the outer L3, such as IPv6 tunneled by IPv4 GRE
      or vice versa. It also includes kselftest scripts to test the use cases.
      
      v2: Clarify the commit messages in the commits in this series to use the
          term tunneled by IPv4 GRE or by IPv6 GRE so that it's clear which
          one is the inner and which one is the outer (per David Miller).
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      7650b1a9