aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qlcnic/qlcnic.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/qlcnic/qlcnic.h')
-rw-r--r--drivers/net/qlcnic/qlcnic.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/qlcnic/qlcnic.h b/drivers/net/qlcnic/qlcnic.h
index 9970cff598d1..99ccdd8ac419 100644
--- a/drivers/net/qlcnic/qlcnic.h
+++ b/drivers/net/qlcnic/qlcnic.h
@@ -113,8 +113,10 @@
113#define TX_UDPV6_PKT 0x0c 113#define TX_UDPV6_PKT 0x0c
114 114
115/* Tx defines */ 115/* Tx defines */
116#define MAX_BUFFERS_PER_CMD 32 116#define MAX_TSO_HEADER_DESC 2
117#define TX_STOP_THRESH ((MAX_SKB_FRAGS >> 2) + 4) 117#define MGMT_CMD_DESC_RESV 4
118#define TX_STOP_THRESH ((MAX_SKB_FRAGS >> 2) + MAX_TSO_HEADER_DESC \
119 + MGMT_CMD_DESC_RESV)
118#define QLCNIC_MAX_TX_TIMEOUTS 2 120#define QLCNIC_MAX_TX_TIMEOUTS 2
119 121
120/* 122/*
@@ -369,7 +371,7 @@ struct qlcnic_recv_crb {
369 */ 371 */
370struct qlcnic_cmd_buffer { 372struct qlcnic_cmd_buffer {
371 struct sk_buff *skb; 373 struct sk_buff *skb;
372 struct qlcnic_skb_frag frag_array[MAX_BUFFERS_PER_CMD + 1]; 374 struct qlcnic_skb_frag frag_array[MAX_SKB_FRAGS + 1];
373 u32 frag_count; 375 u32 frag_count;
374}; 376};
375 377