]> git.openfabrics.org - ~emulex/infiniband.git/commit
ixgbe: Cleanup unpacking code for DCB
authorAlexander Duyck <alexander.h.duyck@intel.com>
Thu, 17 May 2012 05:14:39 +0000 (05:14 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 14 Jul 2012 21:20:26 +0000 (14:20 -0700)
commitdf0676d1bddf085c4cc4aca39b18f9fcbd08d83d
treebed65167124fed43936c7576e5ce8062fd267719
parent15cbc70ea2b8a43ba3f0dc858299ed1c5b295b71
ixgbe: Cleanup unpacking code for DCB

This is meant to be a generic clean-up of the remaining functions for
unpacking data from the DCB structures. The only real changes are:
replaced the variable i with tc for functions that were looping through the
traffic classes, and added a pointer for tc_class instead of path since
that way we only need to pull the pointer once instead of once per loop.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c