]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ixgbe: Place skb on first buffer_info structure to avoid using stack space
authorJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 15:13:21 +0000 (23:13 +0800)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 15:13:21 +0000 (23:13 +0800)
commit247f5a4a2f51067628d1e6021b312e9aa4776fc3
tree12f5ed29198daba9659c71e9d767a5fa1ee7b666
parenta424825e620c35f50b731ba72128346bdb2e81e6
ixgbe: Place skb on first buffer_info structure to avoid using stack space

Instead of keeping a local copy of the skb on the stack for as long as long
as we do it makes sense to instead just place it on the first tx_buffer
structure so that we can save space on the stack and avoid unnecessary
read/write operations copying the pointer out of the stack and onto the
ring later.

(backported from commit fd0db0ed02a6abce5427e90d1e8522322107d62b)
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Stephen Ko <stephen.s.ko@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/ixgbe/ixgbe.h
drivers/net/ixgbe/ixgbe_fcoe.c
drivers/net/ixgbe/ixgbe_main.c