]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Do not schedule an uninitialized workqueue entry
authorMark Rustad <mark.d.rustad@intel.com>
Sat, 9 Aug 2014 07:02:09 +0000 (07:02 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 18 Sep 2014 10:19:10 +0000 (03:19 -0700)
commita674d9da3e49815e8eaad6495b09b9b276a375c6
tree3f6953cc94698a9e7754946c3e5a3c6dec741f1e
parentf262f6f203dde6eb300dd0bf308ac86a4cdb590d
ixgbe: Do not schedule an uninitialized workqueue entry

If a hardware Tx timestamp is requested, an uninitialized
workqueue entry may be scheduled, especially on an 82598 adapter.
Add a check for a PTP clock to avoid that. Also only apply the
unlikely to the first term of the conditional. That will make the
rest of the checks be in the cold path.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Acked-by: Matthew Vick <matthew.vick@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c