]> git.baikalelectronics.ru Git - kernel.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)
commitf626a3f025d1f84db1f008207527df37fceb8141
tree7df0c1a8e5d0ae30e7c4138c4f182d1d1dc2bba4
parent3d8e6147a83a61401bfc0455cc92bac8c4007935
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