]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tg3: Add tx BD budgeting code
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 27 Jul 2011 14:20:52 +0000 (14:20 +0000)
committerJoe Jin <joe.jin@oracle.com>
Tue, 15 May 2012 08:42:56 +0000 (16:42 +0800)
commitd449394135bca6d9eaa0809508b4a6c436ab8609
tree0829ba955db434a5b84958738eecfd6d30fb9731
parentcbcfe0bb6857eae9c6bfee7c45880445fad62ec8
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>
(cherry picked from commit 84b67b27e9531e9a70c9e8cd952d66c55f4d0ddb)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/tg3.c