From: Alexander Duyck Date: Thu, 17 May 2012 05:14:34 +0000 (+0000) Subject: ixgbe: Simplify logic for getting traffic class from user priority X-Git-Tag: v3.6-rc1~125^2~153^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15cbc70ea2b8a43ba3f0dc858299ed1c5b295b71;p=pandora-kernel.git ixgbe: Simplify logic for getting traffic class from user priority This patch is meant to help simplify the logic for getting traffic classes from user priorities. To do this I am adding a function named ixgbe_dcb_get_tc_from_up that will go through the traffic classes in reverse order in order to determine which traffic class contains a bit for a given user priority. Adding a declaration for this new function to the header so that we have a centralized means for sorting out traffic classes belonging to features such as FCoE. Signed-off-by: Alexander Duyck Tested-by: Phil Schmitt Tested-by: Ross Brattain Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed