]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcb7ab1f79185176280c6555c0bd1bb52f99d8d1c
tree973e0f84ef75a768a85ffd4129876e2666efa087
parent6d8238558c59a95bc9f050ee550a170c14e9ba53
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 ae4d6afcb5
(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