1. 23 9月, 2016 2 次提交
    • B
      i40evf: remove unnecessary error checking against i40evf_up_complete · cb130a0b
      Bimmy Pujari 提交于
      Function i40evf_up_complete() always returns success. Changed this to a
      void type and removed the code that checks the return status and prints
      an error message.
      
      Change-ID: I8c400f174786b9c855f679e470f35af292fb50ad
      Signed-off-by: NBimmy Pujari <bimmy.pujari@intel.com>
      Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      cb130a0b
    • S
      i40evf: Fix link state event handling · 3f341acc
      Sridhar Samudrala 提交于
      Currently disabling the link state from PF via
      	ip link set enp5s0f0 vf 0 state disable
      doesn't disable the CARRIER on the VF.
      
      This patch updates the carrier and starts/stops the tx queues based on the
      link state notification from PF.
      
        PF: enp5s0f0, VF: enp5s2
        #modprobe i40e
        #echo 2 > /sys/class/net/enp5s0f0/device/sriov_numvfs
        #ip link set enp5s2 up
        #ip -d link show enp5s2
        175: enp5s2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
            link/ether ea:4d:60:bc:6f:85 brd ff:ff:ff:ff:ff:ff promiscuity 0 addrgenmode eui64
        #ip link set enp5s0f0 vf 0 state disable
        #ip -d link show enp5s0f0
        171: enp5s0f0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
            link/ether 68:05:ca:2e:72:68 brd ff:ff:ff:ff:ff:ff promiscuity 0 addrgenmode eui64 numtxqueues 72 numrxqueues 72 portid 6805ca2e7268
            vf 0 MAC 00:00:00:00:00:00, spoof checking on, link-state disable, trust off
            vf 1 MAC 00:00:00:00:00:00, spoof checking on, link-state auto, trust off
        #ip -d link show enp5s2
        175: enp5s2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
             link/ether ea:4d:60:bc:6f:85 brd ff:ff:ff:ff:ff:ff promiscuity 0 addrgenmode eui64 numtxqueues 16 numrxqueues 16
      Signed-off-by: NSridhar Samudrala <sridhar.samudrala@intel.com>
      Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      3f341acc
  2. 20 8月, 2016 2 次提交
  3. 19 8月, 2016 2 次提交
  4. 22 7月, 2016 2 次提交
  5. 28 6月, 2016 2 次提交
  6. 21 5月, 2016 2 次提交
  7. 14 5月, 2016 1 次提交
  8. 06 5月, 2016 3 次提交
  9. 02 5月, 2016 2 次提交
  10. 28 4月, 2016 1 次提交
  11. 27 4月, 2016 1 次提交
  12. 26 4月, 2016 2 次提交
    • 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. 07 4月, 2016 2 次提交
  14. 06 4月, 2016 6 次提交
  15. 05 4月, 2016 1 次提交
  16. 19 2月, 2016 2 次提交
  17. 18 2月, 2016 6 次提交
  18. 17 2月, 2016 1 次提交