]> www.infradead.org Git - users/jedix/linux-maple.git/commit
igb: push data into first igb_tx_buffer sooner to reduce stack usage
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 26 Aug 2011 07:45:15 +0000 (07:45 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 12:47:23 +0000 (20:47 +0800)
commit75d02912953d28e69872bb9fcd11b2664702b34c
treec296c7865ef1900970ac57aefab5d53635b27511
parentb79271a10c63bb884a10ea472e76bfce44942d38
igb: push data into first igb_tx_buffer sooner to reduce stack usage

Instead of storing most of the data for the TX hot path in the stack until
we are ready to write the descriptor we can save ourselves some time and
effort by pushing the SKB, tx_flags, gso_size, bytecount, and protocol into
the first igb_tx_buffer since that is where we will end up putting it
anyway.

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