1. 05 Jul, 2017 1 commit
    • Thomas Huth's avatar
      ibmveth: Add a proper check for the availability of the checksum features · 00f468f5
      Thomas Huth authored
      [ Upstream commit 23d28a85 ]
      When using the ibmveth driver in a KVM/QEMU based VM, it currently
      always prints out a scary error message like this when it is started:
       ibmveth 71000003 (unregistered net_device): unable to change
       checksum offload settings. 1 rc=-2 ret_attr=71000003
      This happens because the driver always tries to enable the checksum
      offloading without checking for the availability of this feature first.
      QEMU does not support checksum offloading for the spapr-vlan device,
      thus we always get the error message here.
      According to the LoPAPR specification, the "ibm,illan-options" property
      of the corresponding device tree node should be checked first to see
      whether the H_ILLAN_ATTRIUBTES hypercall and thus the checksum offloading
      feature is available. Thus let's do this in the ibmveth driver, too, so
      that the error message is really only limited to cases where something
      goes wrong, and does not occur if the feature is just missing.
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      Signed-off-by: default avatarSasha Levin <alexander.levin@verizon.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
  2. 22 Mar, 2017 1 commit
  3. 10 Dec, 2016 1 commit
  4. 07 Mar, 2016 1 commit
  5. 20 Dec, 2015 1 commit
  6. 15 Dec, 2015 1 commit
    • Tom Herbert's avatar
      net: Rename NETIF_F_ALL_CSUM to NETIF_F_CSUM_MASK · a188222b
      Tom Herbert authored
      The name NETIF_F_ALL_CSUM is a misnomer. This does not correspond to the
      set of features for offloading all checksums. This is a mask of the
      checksum offload related features bits. It is incorrect to set both
      NETIF_F_HW_CSUM and NETIF_F_IP_CSUM or NETIF_F_IPV6 at the same time for
      features of a device.
      This patch:
        - Changes instances of NETIF_F_ALL_CSUM to NETIF_F_CSUM_MASK (where
          NETIF_F_ALL_CSUM is being used as a mask).
        - Changes bonding, sfc/efx, ipvlan, macvlan, vlan, and team drivers to
          use NEITF_F_HW_CSUM in features list instead of NETIF_F_ALL_CSUM.
      Signed-off-by: default avatarTom Herbert <tom@herbertland.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
  7. 16 Jul, 2015 1 commit
  8. 30 Apr, 2015 4 commits
  9. 23 Apr, 2015 1 commit
    • David Gibson's avatar
      ibmveth: Fix off-by-one error in ibmveth_change_mtu() · 4fce1482
      David Gibson authored
      AFAIK the PAPR document which defines the virtual device interface used by
      the ibmveth driver doesn't specify a specific maximum MTU.  So, in the
      ibmveth driver, the maximum allowed MTU is determined by the maximum
      allocated buffer size of 64k (corresponding to one page in the common case)
      minus the per-buffer overhead IBMVETH_BUFF_OH (which has value 22 for 14
      bytes of ethernet header, plus 8 bytes for an opaque handle).
      This suggests a maximum allowable MTU of 65514 bytes, but in fact the
      driver only permits a maximum MTU of 65513.  This is because there is a <
      instead of an <= in ibmveth_change_mtu(), which only permits an MTU which
      is strictly smaller than the buffer size, rather than allowing the buffer
      to be completely filled.
      This patch fixes the buglet.
      Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
      Acked-by: default avatarThomas Falcon <tlfalcon@linux.vnet.ibm.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
  10. 10 Mar, 2015 1 commit
  11. 03 Mar, 2015 1 commit
  12. 22 Aug, 2014 1 commit
  13. 25 Mar, 2014 1 commit
  14. 15 Mar, 2014 1 commit
  15. 06 Mar, 2014 1 commit
    • Anton Blanchard's avatar
      ibmveth: Fix endian issues with MAC addresses · d746ca95
      Anton Blanchard authored
      The code to load a MAC address into a u64 for passing to the
      hypervisor via a register is broken on little endian.
      Create a helper function called ibmveth_encode_mac_addr
      which does the right thing in both big and little endian.
      We were storing the MAC address in a long in struct ibmveth_adapter.
      It's never used so remove it - we don't need another place in the
      driver where we create endian issues with MAC addresses.
      Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
  16. 30 Dec, 2013 2 commits
  17. 06 Dec, 2013 1 commit
    • Jeff Kirsher's avatar
      ethernet: Fix FSF address in file headers · 0ab75ae8
      Jeff Kirsher authored
      Several files refer to an old address for the Free Software Foundation
      in the file header comment.  Resolve by replacing the address with
      the URL <http://www.gnu.org/licenses/> so that we do not have to keep
      updating the header comments anytime the address changes.
      CC: Santosh Raspatur <santosh@chelsio.com>
      CC: Dimitris Michailidis <dm@chelsio.com>
      CC: Michael Chan <mchan@broadcom.com>
      CC: Santiago Leon <santil@linux.vnet.ibm.com>
      CC: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
      CC: Olof Johansson <olof@lixom.net>
      CC: Manish Chopra <manish.chopra@qlogic.com>
      CC: Sony Chacko <sony.chacko@qlogic.com>
      CC: Rajesh Borundia <rajesh.borundia@qlogic.com>
      CC: Nicolas Pitre <nico@fluxnic.net>
      CC: Steve Glendinning <steve.glendinning@shawell.net>
      Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
  18. 02 Oct, 2013 1 commit
  19. 04 Sep, 2013 1 commit
  20. 05 May, 2013 1 commit
  21. 15 Mar, 2013 1 commit
  22. 04 Feb, 2013 1 commit
  23. 07 Jan, 2013 1 commit
  24. 07 Dec, 2012 1 commit
  25. 03 Dec, 2012 1 commit
  26. 05 Sep, 2012 1 commit
  27. 28 Mar, 2012 1 commit
  28. 16 Nov, 2011 1 commit
  29. 19 Oct, 2011 1 commit
  30. 15 Sep, 2011 1 commit
  31. 18 Aug, 2011 1 commit
  32. 11 Aug, 2011 1 commit
    • Jeff Kirsher's avatar
      ehea/ibm*: Move the IBM drivers · 9aa32835
      Jeff Kirsher authored
      Move the IBM drivers into drivers/net/ethernet/ibm/ and make the
      necessary Kconfig and Makefile changes.
      - Renamed ibm_new_emac to emac
      - Cleaned up Makefile and Kconfig options which referred to
      - ibmlana driver is a National Semiconductor SONIC driver so
        it was not moved
      CC: Christoph Raisch <raisch@de.ibm.com>
      CC: Santiago Leon <santil@linux.vnet.ibm.com>
      CC: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      CC: David Gibson <dwg@au1.ibm.com>
      CC: Kyle Lucke <klucke@us.ibm.com>
      CC: Michael Ellerman <michael@ellerman.id.au>
      Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
  33. 26 Jul, 2011 1 commit
  34. 07 Jun, 2011 1 commit
  35. 29 Apr, 2011 1 commit
    • David Decotigny's avatar
      ethtool: cosmetic: Use ethtool ethtool_cmd_speed API · 70739497
      David Decotigny authored
      This updates the network drivers so that they don't access the
      ethtool_cmd::speed field directly, but use ethtool_cmd_speed()
      For most of the drivers, these changes are purely cosmetic and don't
      fix any problem, such as for those 1GbE/10GbE drivers that indirectly
      call their own ethtool get_settings()/mii_ethtool_gset(). The changes
      are meant to enforce code consistency and provide robustness with
      future larger throughputs, at the expense of a few CPU cycles for each
      ethtool operation.
      All drivers compiled with make allyesconfig ion x86_64 have been
      Tested: make allyesconfig on x86_64 + e1000e/bnx2x work
      Signed-off-by: default avatarDavid Decotigny <decot@google.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
  36. 28 Apr, 2011 1 commit