aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x.h
diff options
context:
space:
mode:
authorEilon Greenstein <eilong@broadcom.com>2009-08-12 04:23:26 -0400
committerDavid S. Miller <davem@davemloft.net>2009-08-13 02:02:42 -0400
commita18f5128828cd1af8091602f5233b00422e74c9a (patch)
tree8fcac1b43c5a6d4015abee6ebe16f8ff2e124a60 /drivers/net/bnx2x.h
parenta119a069349b6ad32807ff1b09e417cf23514020 (diff)
bnx2x: Configurable pause scheme
When a given ring is running out of space, the FW can send pause towards the network. When working with multi-queues, when one queue is getting out of space it can block all other queues. The preferred scheme is to send pause frames only when running out of the shared internal chip buffers and if a given queue cannot place a packet on the host, it will drop it. Since some users might want to work in drop-less mode, allowing changing the behavior as a module parameter. Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x.h')
-rw-r--r--drivers/net/bnx2x.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/bnx2x.h b/drivers/net/bnx2x.h
index 1d0b72716f7a..004f4a8e1649 100644
--- a/drivers/net/bnx2x.h
+++ b/drivers/net/bnx2x.h
@@ -967,6 +967,8 @@ struct bnx2x {
967 dma_addr_t qm_mapping; 967 dma_addr_t qm_mapping;
968#endif 968#endif
969 969
970 int dropless_fc;
971
970 int dmae_ready; 972 int dmae_ready;
971 /* used to synchronize dmae accesses */ 973 /* used to synchronize dmae accesses */
972 struct mutex dmae_mutex; 974 struct mutex dmae_mutex;