]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: Add tx BD budgeting code
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 27 Jul 2011 14:20:52 +0000 (14:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Jul 2011 05:39:32 +0000 (22:39 -0700)
commitb8e340ee37be3b05a598ea7fe2d79ca1cb10ae31
treef082a966a82ebc803f1f4d7cfccf057b3b0a8017
parente1d7f990a1905c0078d18a9b3acfcfdb9aa7ed8c
tg3: Add tx BD budgeting code

As the driver breaks large skb fragments into smaller submissions to the
hardware, there is a new danger that BDs might get exhausted before all
fragments have been mapped.  This patch adds code to make sure tx BDs
aren't oversubscribed and flag the condition if it happens.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c