]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Update method used for determining descriptor count for an skb
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 27 May 2011 05:31:52 +0000 (05:31 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 25 Jun 2011 07:06:51 +0000 (00:06 -0700)
commitc9830ffc2c7860cdc2c8e7754aa3351e00a455f4
tree5e15e3c107edf07b3d6e2d4dc834a43cdf75b52e
parent7b1281fb04f2e8ff52d71b446b89cd1f6ea436b0
ixgbe: Update method used for determining descriptor count for an skb

This patch updates the current methods used for determining if we have
enough space to transmit a given skb.  The current method is quite wasteful
as it has us go through and determine how each page is going to be broken
up.  That only needs to be done if pages are larger than our maximum data
per TXD.  As such I have wrapped that in a page size check.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ixgbe/ixgbe.h
drivers/net/ixgbe/ixgbe_main.c