]> git.baikalelectronics.ru Git - kernel.git/commit
igb: Pull adapter out of main path in igb_xmit_frame_ring
authorAlexander Duyck <alexander.h.duyck@intel.com>
Thu, 7 Feb 2013 08:55:46 +0000 (08:55 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 18 Apr 2013 23:40:07 +0000 (16:40 -0700)
commit8d9de7b31b3ec0ebc94f37f579062bfdca0d2f32
tree279301c5ad4c7efb3afc87fa8b888c3fe929d2f8
parent6eb377d06caa37fe4b918891d70c08fde6638108
igb: Pull adapter out of main path in igb_xmit_frame_ring

We only need the adapter pointer in the case of ptp.  As such we can pull the
adapter out of the main path and place it inside the if statement to avoid
the temptation of accessing the adapter pointer in the fast path.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_main.c