]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ixgbe: recycle pages in packet split mode
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Fri, 12 Sep 2008 02:58:43 +0000 (19:58 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 24 Sep 2008 22:54:56 +0000 (18:54 -0400)
commit762f4c57105853d1cbad3b96ef18aa23beff3db2
tree7df0c1a8e5d0ae30e7c4138c4f182d1d1dc2bba4
parentff819cfb5d95c4945811f5e33aa57274885c7527
ixgbe: recycle pages in packet split mode

most of the time we only need 1500 bytes for a packet which means
we don't need a whole 4k page for each packet.  Share the allocation
by using a reference count to the page and giving half to two
receive descriptors.  This can enable us to use packet split mode
all the time due to the performance increase of allocating half
the pages.

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/ixgbe/ixgbe.h
drivers/net/ixgbe/ixgbe_main.c