1. 14 Jun, 2017 3 commits
    • David S. Miller's avatar
      Merge branch '10GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue · 55ce889f
      David S. Miller authored
      Jeff Kirsher says:
      
      ====================
      10GbE Intel Wired LAN Driver Updates 2017-06-13
      
      This series contains updates to ixgbe and ixgbevf only.
      
      Jake completes his fix ups for our drivers with the ixgbe changes to
      resolve a race condition in processing timestamp requests.  These fixes
      are the same fixes Jake applied earlier to the other drivers, including
      the added statistic to help administrators know when an application
      timestamp request is ignored.
      
      With all the recent ixgbe/ixgbevf changes and fixes, Tony bumps the
      the driver versions.  Then Tony provides a fix to resolve a static
      analysis warning by changing a variable to unsigned integer since the
      value can never be negative.
      
      Emil fixes an issue for X550 devices where the qde parameter was being
      ignored, so PFQDE.HIDE_VLAN was not being set.
      
      Jeff Mahoney from SuSE fixes a possible kernel crash, where there was
      a small window where tasks writing to the sriov_numvfs sysfs attribute
      can sneak in after we call register_netdev().  So we need to call
      pci_set_drvdata() before and not after register_netdev() to preserve the
      intent of commit 0fb6a55c ("ixgbe: fix crash on rmmod after probe
      fail").
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      55ce889f
    • Jeff Mahoney's avatar
      ixgbe: pci_set_drvdata must be called before register_netdev · a09c0fc3
      Jeff Mahoney authored
      We call pci_set_drvdata immediately after calling register_netdev,
      which leaves a window where tasks writing to the sriov_numvfs sysfs
      attribute can sneak in and crash the kernel.  register_netdev cleans
      up after itself so placing pci_set_drvdata immediately before it
      should preserve the intent of commit 0fb6a55c ("ixgbe: fix crash
      on rmmod after probe fail").
      
      Fixes: 0fb6a55c ("ixgbe: fix crash on rmmod after probe fail")
      Signed-off-by: default avatarJeff Mahoney <jeffm@suse.com>
      Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
      Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
      a09c0fc3
    • Tony Nguyen's avatar
      ixgbe: Resolve cppcheck format string warning · 4ebdf8af
      Tony Nguyen authored
      cppcheck warns that the format string is incorrect in the function
      ixgbe_get_strings().  Since the value cannot be negative, change the
      variable to unsigned which matches the format specifier.
      Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
      Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
      Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
      4ebdf8af
  2. 13 Jun, 2017 37 commits