tg3: use netdev_alloc_frag() API
authorEric Dumazet <edumazet@google.com>
Fri, 18 May 2012 21:33:39 +0000 (21:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 May 2012 08:02:12 +0000 (04:02 -0400)
commita1e8b307986ab27b7608f107aec71d3569650f46
tree973e0f84ef75a768a85ffd4129876e2666efa087
parent4adb9c4ac88d874105ac31161c9c55004a972f87
tg3: use netdev_alloc_frag() API

Update our reference driver to use netdev_alloc_frag() API instead of
the temporary custom allocator I introduced in commit 8d4057a938
(tg3: provide frags as skb head)

This removes the memory leak we had, since we could leak one page at
device dismantle.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Matt Carlson <mcarlson@broadcom.com>
Cc: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c
drivers/net/ethernet/broadcom/tg3.h