]> www.infradead.org Git - users/jedix/linux-maple.git/commit
igb: Remove multi_tx_table and simplify igb_xmit_frame
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 26 Aug 2011 07:44:10 +0000 (07:44 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 08:56:34 +0000 (16:56 +0800)
commit12a07bf34e07459f78be1ef7d8a812fb0904b4e0
treeefff8006a6a815b18d07ddaf208b527720ed42e2
parenta1b0f4097cb2b60d93607e957dfabb1de4f36949
igb: Remove multi_tx_table and simplify igb_xmit_frame

Instead of using the multi_tx_table to map possible Tx queues to Tx rings
we can just do simple subtraction for the unlikely event that the Tx queue
provided exceeds the number of Tx rings.

(cherry picked from commit 1cc3bd879288c7f2f47eaebdde38ac5db4bfd082)
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