igb: use buffer_info->dma instead of shinfo->nr_frags to determine unmap
commit2d94d8ab76ea6c858c6e2eb0ab0403b00b031039
authorAlexander Duyck <alexander.h.duyck@intel.com>
Thu, 23 Jul 2009 18:10:06 +0000 (23 18:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 26 Jul 2009 16:47:01 +0000 (26 09:47 -0700)
treedb8f6f4b56dfd3261ea6ce018ba6f571f1c3ccbb
parent4703bf73bd5b0d43c3eb5b547398d4f62dc5d4e1
igb: use buffer_info->dma instead of shinfo->nr_frags to determine unmap

This change makes it so that we use buffer_info->dma instead of
shinfo->nr_frags to determine if we need to unmap a received skb.  By doing
this we can avoid a cache miss on small packets since the buffer_info
structure should already be prefetched.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/igb/igb_main.c