1. 20 8月, 2016 1 次提交
  2. 19 8月, 2016 2 次提交
  3. 22 7月, 2016 4 次提交
  4. 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
  5. 28 6月, 2016 3 次提交
  6. 21 5月, 2016 2 次提交
  7. 14 5月, 2016 1 次提交
  8. 06 5月, 2016 6 次提交
  9. 02 5月, 2016 6 次提交
  10. 28 4月, 2016 4 次提交
  11. 27 4月, 2016 2 次提交
  12. 26 4月, 2016 3 次提交
    • M
      i40evf: Don't Panic · c0913c2e
      Mitch Williams 提交于
      Under some circumstances the driver remove function may be called before
      the driver is fully initialized. So we can't assume that we know where
      our towel is at, or that all of the data structures are initialized.
      
      To ensure that we don't panic, check that the vsi_res pointer is valid
      before dereferencing it. Then drink beer and eat peanuts.
      
      Change-ID: If697b4db57348e39f9538793e16aa755e3e1af03
      Signed-off-by: NMitch Williams <mitch.a.williams@intel.com>
      Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      c0913c2e
    • A
      i40e/i40evf: Add support for IPIP and SIT offloads · 577389a5
      Alexander Duyck 提交于
      Looking over the documentation it turns out enabling IPIP and SIT offloads
      for i40e is pretty straightforward.  As such I decided to enable them with
      this patch.  In my testing I am seeing an improvement of 8 to 10 Gb/s
      for IPIP and SIT tunnels with this offload enabled.
      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>
      577389a5
    • A
      i40e/i40evf: Clean up feature flags · b0fe3306
      Alexander Duyck 提交于
      The feature flags list for i40e and i40evf is beginning to become pretty
      massive.  I plan to add another 4 or so features to these drivers and
      duplicating the flags for each and every flags list is becoming a bit
      repetitive.
      
      The primary change here is that we now build our features list around
      hw_encap_features.  After that we assign that to vlan_features,
      hw_features, and finally map that onto features.  In addition we end up
      throwing features onto hw_encap_features that end up having no effect such
      as the Rx offloads and SCTP_CRC.  However that should have no impact and
      makes things a bit easier for us as hw_encap_features is one of the less
      updated features maps available.
      
      For i40evf I went through and sanity checked a few features as well.
      Specifically RXCSUM was being set as a read-only feature which didn't make
      much sense.  I have updated things so we can clear the NETIF_F_RXCSUM flag
      since that is really a software feature and not a hardware one anyway so
      disabling it is just a matter of ignoring the result from the hardware.
      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>
      b0fe3306
  13. 14 4月, 2016 1 次提交
  14. 07 4月, 2016 4 次提交