]> www.infradead.org Git - users/jedix/linux-maple.git/commit
igb: cleanup IVAR configuration
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 26 Aug 2011 07:45:52 +0000 (07:45 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 12:48:10 +0000 (20:48 +0800)
commitde6476654d17886c930bb388ec38cf92b97350ba
treec1c9c0dfe5468feff9c691db435c028ecd62006f
parenta04b68f8bb1e9eb3824bada8e02cb3d7cd3d5ee0
igb: cleanup IVAR configuration

This change is meant to cleanup some of the IVAR register configuration.
igb_assign_vector had become pretty large with multiple copies of the same
general code for setting the IVAR. This change consolidates most of that
code by adding the igb_write_ivar function which allows us just to compute
the index and offset and then use that information to setup the IVAR.

(cherry picked from commit 4be000c874576541cd1d4d0498a0a72a1c60bf0b)
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>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/igb/igb_main.c