1. 25 9月, 2016 2 次提交
    • A
      i40e: Fix Flow Director raw_buf cleanup · 64bfd68e
      Alexander Duyck 提交于
      The Tx cleanup flow was incorrectly assuming it could check for the flow
      director bits after it had unmapped the buffer.  However in this case it
      results in us trying to free a raw_buf as though it is an sk_buff.
      
      To fix this I am moving up the flag test for the FD_SB bit so that when
      find a non-NULL skb or raw_buf value we then check the flag and use the
      appropriate call to free the buffer.
      
      Change-ID: I6284034ba1ea87c9922e56f6eb3181f7f09bddde
      Signed-off-by: NAlexander Duyck <alexander.h.duyck@intel.com>
      Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      64bfd68e
    • J
      i40e: cleanup ATR auto_disable_flags use · 234dc4e6
      Jacob Keller 提交于
      Some locations that disable ATR accidentally used the "full" disable by
      disabling the flag in the standard flags field. This incorrectly forces
      ATR off permanently instead of temporarily disabling it. In addition,
      some code locations accidentally set the ATR flag enabled when they only
      meant to clear the auto_disable_flags. This results in ignoring the
      user's ethtool private flag settings.
      
      Additionally, when disabling ATR via ethtool, we did not perform a flush
      of the FD table. This results in the previously assigned ATR rules still
      functioning which was not expected.
      
      Cleanup all these areas so that automatic disable uses only the
      auto_disable_flag. Fix the flush code so that we can trigger a flush
      even when we've disabled ATR and SB support, as otherwise the flush
      doesn't work. Fix ethtool setting to actually request a flush. Fix
      NETIF_F_NTUPLE flag to only clear the auto_disable setting and not
      enable the full feature.
      
      Change-ID: Ib2486111f8031bd16943e9308757b276305c03b5
      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>
      234dc4e6
  2. 23 9月, 2016 1 次提交
  3. 20 8月, 2016 1 次提交
  4. 22 7月, 2016 1 次提交
  5. 15 7月, 2016 1 次提交
    • A
      i40e/i40evf: Fix i40e_rx_checksum · 858296c8
      Alexander Duyck 提交于
      There are a couple of issues I found in i40e_rx_checksum while doing some
      recent testing.  As a result I have found the Rx checksum logic is pretty
      much broken and returning that the checksum is valid for tunnels in cases
      where it is not.
      
      First the inner types are not the correct values to use to test for if a
      tunnel is present or not.  In addition the inner protocol types are not a
      bitmask as such performing an OR of the values doesn't make sense.  I have
      instead changed the code so that the inner protocol types are used to
      determine if we report CHECKSUM_UNNECESSARY or not.  For anything that does
      not end in UDP, TCP, or SCTP it doesn't make much sense to report a
      checksum offload since it won't contain a checksum anyway.
      
      This leaves us with the need to set the csum_level based on some value.
      For that purpose I am using the tunnel_type field.  If the tunnel type is
      GRENAT or greater then this means we have a GRE or UDP tunnel with an inner
      header.  In the case of GRE or UDP we will have a possible checksum present
      so for this reason it should be safe to set the csum_level to 1 to indicate
      that we are reporting the state of the inner header.
      Signed-off-by: NAlexander Duyck <aduyck@mirantis.com>
      Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      858296c8
  6. 21 5月, 2016 2 次提交
  7. 14 5月, 2016 1 次提交
  8. 06 5月, 2016 3 次提交
  9. 02 5月, 2016 1 次提交
  10. 28 4月, 2016 1 次提交
  11. 26 4月, 2016 1 次提交
  12. 14 4月, 2016 1 次提交
  13. 07 4月, 2016 3 次提交
  14. 06 4月, 2016 1 次提交
  15. 05 4月, 2016 4 次提交
  16. 20 2月, 2016 1 次提交
  17. 19 2月, 2016 15 次提交