]> www.infradead.org Git - users/jedix/linux-maple.git/commit
igb: Consolidate creation of Tx context descriptors into a single function
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 26 Aug 2011 07:44:32 +0000 (07:44 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 12:45:03 +0000 (20:45 +0800)
commit33059aede3026cf409b7b88c0f238e104291e418
tree9b546d005e952a103a4bd9cad79b9b22e4be9195
parent39dc0842597b724ba0caf71272cd5917974c49b2
igb: Consolidate creation of Tx context descriptors into a single function

This patch is meant to simplify the transmit path by reducing the overhead
for creating a transmit context descriptor.  The current implementation is
split with igb_tso and igb_tx_csum doing two separate implementations on
how to setup the tx_buffer_info structure and the tx_desc.  By combining
them it is possible to reduce code and simplify things since now only one
function will create context descriptors.

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