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)
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>

No differences found