]> www.infradead.org Git - users/jedix/linux-maple.git/commit
igb: Make first and tx_buffer_info->next_to_watch into pointers
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 26 Aug 2011 07:44:43 +0000 (07:44 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 12:45:27 +0000 (20:45 +0800)
commit79cf9eafca4eb1404a63d44e613131947e73a068
tree06bee4d3c9e75b7c6ad74f135918901b5278660e
parent33059aede3026cf409b7b88c0f238e104291e418
igb: Make first and tx_buffer_info->next_to_watch into pointers

This change converts two tx_buffer_info index values into pointers.  The
advantage to this is that we reduce unnecessary computations and in the case
of next_to_watch we get an added bonus of the value being able to provide
additional information as a NULL value indicates it is unset versus a 0 not
having any meaning for the index value.

(cherry picked from commit 8542db05dbc99f603889c349e5cf8f3f81cddbf5)
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.h
drivers/net/igb/igb_main.c