]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
ixgbe: Reduce Rx header size to what is actually used
authorAlexander Duyck <alexander.h.duyck@intel.com>
Thu, 24 May 2012 01:59:27 +0000 (01:59 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 21 Jul 2012 23:04:51 +0000 (16:04 -0700)
commit252562c207a850106d9d5b41a41d29f96c0530b7
tree7584cd94d2069a9466c6640b70189a7254d58b0e
parentce422606696f137e610fd0e677ec72ac33c17842
ixgbe: Reduce Rx header size to what is actually used

The recent changes to netdev_alloc_skb actually make it so that the size of
the buffer now actually has a more direct input on the truesize.  So in
order to make best use of the piece of a page we are allocated I am
reducing the IXGBE_RX_HDR_SIZE to 256 so that our truesize will be reduced
by 256 bytes as well.

This should result in performance improvements since the number of uses per
page should increase from 4 to 6 in the case of a 4K page.  In addition we
should see socket performance improvements due to the truesize dropping
to less than 1K for buffers less than 256 bytes.

Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe.h
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c