ixgbe: refactor tx buffer processing to use skb_dma_map/unmap
authorAlexander Duyck <alexander.h.duyck@intel.com>
Tue, 31 Mar 2009 21:34:23 +0000 (21:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Apr 2009 08:02:31 +0000 (01:02 -0700)
commit44df32c592f5a626c9f2ed56642e939788022408
tree39204d61919c1444754c3067508f21ad2b70d0cc
parent8be0e4671d6355b2d905cb8fd051393b2cbf9510
ixgbe: refactor tx buffer processing to use skb_dma_map/unmap

This patch resolves an issue with map single being used to map a buffer and
then unmap page being used to unmap it.  In addition it handles any error
conditions that may be detected using skb_dma_map.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Acked-by: Mallikarjuna R Chilakala <mallikarjuna.chilakala@intel.com>
Acked-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_main.c