linux/drivers/net/ethernet/broadcom/bnx2x
Eric Dumazet bc14786a10 bnx2x: fix panic when TX ring is full
There is a off by one error in the minimal number of BD in
bnx2x_start_xmit() and bnx2x_tx_int() before stopping/resuming tx queue.

A full size GSO packet, with data included in skb->head really needs
(MAX_SKB_FRAGS + 4) BDs, because of bnx2x_tx_split()

This error triggers if BQL is disabled and heavy TCP transmit traffic
occurs.

bnx2x_tx_split() definitely can be called, remove a wrong comment.

Reported-by: Tomas Hruby <thruby@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Eilon Greenstein <eilong@broadcom.com>
Cc: Yaniv Rosner <yanivr@broadcom.com>
Cc: Merav Sicron <meravs@broadcom.com>
Cc: Tom Herbert <therbert@google.com>
Cc: Robert Evans <evansr@google.com>
Cc: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-06-15 15:30:15 -07:00
..
bnx2x_cmn.c bnx2x: fix panic when TX ring is full 2012-06-15 15:30:15 -07:00
bnx2x_cmn.h bnx2x: remove some bloat 2012-04-30 21:38:17 -04:00
bnx2x_dcb.c bnx2x: added TLV_NOT_FOUND flags to the dcb 2012-03-19 16:53:07 -04:00
bnx2x_dcb.h bnx2x: Update version to 1.72.0 and copyrights 2012-01-26 13:39:52 -05:00
bnx2x_dump.h bnx2x: Update version to 1.72.0 and copyrights 2012-01-26 13:39:52 -05:00
bnx2x_ethtool.c bnx2x: remove some bloat 2012-04-30 21:38:17 -04:00
bnx2x_fw_defs.h bnx2x: add afex support 2012-04-23 22:34:03 -04:00
bnx2x_fw_file_hdr.h bnx2x: Update version to 1.72.0 and copyrights 2012-01-26 13:39:52 -05:00
bnx2x_hsi.h bnx2x: add afex support 2012-04-23 22:34:03 -04:00
bnx2x_init_ops.h bnx2x: Update version to 1.72.0 and copyrights 2012-01-26 13:39:52 -05:00
bnx2x_init.h bnx2x: add afex support 2012-04-23 22:34:03 -04:00
bnx2x_link.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2012-04-23 23:15:17 -04:00
bnx2x_link.h bnx2x: add afex support 2012-04-23 22:34:03 -04:00
bnx2x_main.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2012-05-07 23:35:40 -04:00
bnx2x_reg.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2012-04-10 14:30:45 -04:00
bnx2x_sp.c bnx2x: add afex support 2012-04-23 22:34:03 -04:00
bnx2x_sp.h bnx2x: add afex support 2012-04-23 22:34:03 -04:00
bnx2x_stats.c bnx2x: remove some bloat 2012-04-30 21:38:17 -04:00
bnx2x_stats.h bnx2x: add afex support 2012-04-23 22:34:03 -04:00
bnx2x.h bnx2x: fix checksum validation 2012-06-13 15:58:53 -07:00
Makefile