1. 08 11月, 2018 1 次提交
    • J
      i40e: restore NETIF_F_GSO_IPXIP[46] to netdev features · ba766b8b
      Jacob Keller 提交于
      Since commit bacd75cf ("i40e/i40evf: Add capability exchange for
      outer checksum", 2017-04-06) the i40e driver has not reported support
      for IP-in-IP offloads. This likely occurred due to a bad rebase, as the
      commit extracts hw_enc_features into its own variable. As part of this
      change, it dropped the NETIF_F_FSO_IPXIP flags from the
      netdev->hw_enc_features. This was unfortunately not caught during code
      review.
      
      Fix this by adding back the missing feature flags.
      
      For reference, NETIF_F_GSO_IPXIP4 was added in commit 7e13318d
      ("net: define gso types for IPx over IPv4 and IPv6", 2016-05-20),
      replacing NETIF_F_GSO_IPIP and NETIF_F_GSO_SIT.
      
      NETIF_F_GSO_IPXIP6 was added in commit bf2d1df3 ("intel: Add support
      for IPv6 IP-in-IP offload", 2016-05-20).
      Signed-off-by: NJacob Keller <jacob.e.keller@intel.com>
      Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      ba766b8b
  2. 03 10月, 2018 1 次提交
  3. 26 9月, 2018 3 次提交
  4. 19 9月, 2018 1 次提交
  5. 31 8月, 2018 4 次提交
  6. 30 8月, 2018 3 次提交
    • M
      i40e: add AF_XDP zero-copy Tx support · 1328dcdd
      Magnus Karlsson 提交于
      This patch adds zero-copy Tx support for AF_XDP sockets. It implements
      the ndo_xsk_async_xmit netdev ndo and performs all the Tx logic from a
      NAPI context. This means pulling egress packets from the Tx ring,
      placing the frames on the NIC HW descriptor ring and completing sent
      frames back to the application via the completion ring.
      
      The regular XDP Tx ring is used for AF_XDP as well. This rationale for
      this is as follows: XDP_REDIRECT guarantees mutual exclusion between
      different NAPI contexts based on CPU id. In other words, a netdev can
      XDP_REDIRECT to another netdev with a different NAPI context, since
      the operation is bound to a specific core and each core has its own
      hardware ring.
      
      As the AF_XDP Tx action is running in the same NAPI context and using
      the same ring, it will also be protected from XDP_REDIRECT actions
      with the exact same mechanism.
      
      As with AF_XDP Rx, all AF_XDP Tx specific functions are added to
      i40e_xsk.c.
      Signed-off-by: NMagnus Karlsson <magnus.karlsson@intel.com>
      Signed-off-by: NAlexei Starovoitov <ast@kernel.org>
      1328dcdd
    • B
      i40e: add AF_XDP zero-copy Rx support · 0a714186
      Björn Töpel 提交于
      This patch adds zero-copy Rx support for AF_XDP sockets. Instead of
      allocating buffers of type MEM_TYPE_PAGE_SHARED, the Rx frames are
      allocated as MEM_TYPE_ZERO_COPY when AF_XDP is enabled for a certain
      queue.
      
      All AF_XDP specific functions are added to a new file, i40e_xsk.c.
      
      Note that when AF_XDP zero-copy is enabled, the XDP action XDP_PASS
      will allocate a new buffer and copy the zero-copy frame prior passing
      it to the kernel stack.
      Signed-off-by: NBjörn Töpel <bjorn.topel@intel.com>
      Signed-off-by: NAlexei Starovoitov <ast@kernel.org>
      0a714186
    • B
      i40e: added queue pair disable/enable functions · 123cecd4
      Björn Töpel 提交于
      Add functions for queue pair enable/disable. Instead of resetting the
      whole device, only the affected queue pair is disabled or enabled.
      
      This plumbing is used in a later commit, when zero-copy AF_XDP support
      is introduced.
      Signed-off-by: NBjörn Töpel <bjorn.topel@intel.com>
      Signed-off-by: NAlexei Starovoitov <ast@kernel.org>
      123cecd4
  7. 24 8月, 2018 1 次提交
  8. 08 8月, 2018 1 次提交
  9. 07 8月, 2018 2 次提交
  10. 14 7月, 2018 1 次提交
  11. 26 6月, 2018 1 次提交
  12. 25 6月, 2018 1 次提交
  13. 23 6月, 2018 1 次提交
  14. 05 6月, 2018 1 次提交
  15. 14 5月, 2018 2 次提交
  16. 01 5月, 2018 4 次提交
  17. 28 4月, 2018 1 次提交
  18. 27 3月, 2018 7 次提交
  19. 24 3月, 2018 1 次提交
  20. 20 3月, 2018 1 次提交
  21. 15 3月, 2018 2 次提交