ixgbe: Use bool flag to see if the packet unmapping is delayed in HWRSC
authorMallikarjuna R Chilakala <mallikarjuna.chilakala@intel.com>
Thu, 13 May 2010 17:33:21 +0000 (17:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 May 2010 04:07:33 +0000 (21:07 -0700)
commite8171aaad7ec335b8cbd71f56eb08b545f0c404f
treeefd76846ee2cf0a266386b97c23130dc55d9c11d
parente433ea1fb03c10debf101019668b83abed041c24
ixgbe: Use bool flag to see if the packet unmapping is delayed in HWRSC

We can't use zero magic "bad" value to check if IXGBE_RSC_CB(skb)->dma
is valid. It is only valid in x86/arm/m68k/alpha architectures and in
spark, powerPC and other architectures it should be ~0. As per
Benjamin Herrenschmidt feedback use a bool flag to decide if
the packet unmapping is delayed in hardware RSC till EOP is reached

Signed-off-by: Mallikarjuna R Chilakala <mallikarjuna.chilakala@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