]> www.infradead.org Git - users/jedix/linux-maple.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)
committerJoe Jin <joe.jin@oracle.com>
Fri, 3 Feb 2012 01:15:57 +0000 (09:15 +0800)
commit514359ed38b4a5b3cd5f0a5d2d238054e4321f8d
treeaf97bc5519d463c47f04faa1a57a51105f417dd8
parent971447f4c6d8dc1b8c39f9bb71775abd3f73d4ba
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>
(cherry picked from commit a535c30e9e98d201089503a0ffa0093cba16e796)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/ixgbe/ixgbe.h
drivers/net/ixgbe/ixgbe_main.c