fjes: tx_stall_task
This patch adds tx_stall_task. When receiver's buffer is full, sender stops its tx queue. This task is used to monitor receiver's status and when receiver's buffer is avairable, it resumes tx queue. Signed-off-by: Taku Izumi <izumi.taku@jp.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
b772b9dc63
commit
ac63b94708
@@ -30,6 +30,7 @@
|
||||
#define FJES_MAX_QUEUES 1
|
||||
#define FJES_TX_RETRY_INTERVAL (20 * HZ)
|
||||
#define FJES_TX_RETRY_TIMEOUT (100)
|
||||
#define FJES_TX_TX_STALL_TIMEOUT (FJES_TX_RETRY_INTERVAL / 2)
|
||||
#define FJES_OPEN_ZONE_UPDATE_WAIT (300) /* msec */
|
||||
|
||||
/* board specific private data structure */
|
||||
@@ -52,6 +53,7 @@ struct fjes_adapter {
|
||||
|
||||
struct workqueue_struct *txrx_wq;
|
||||
|
||||
struct work_struct tx_stall_task;
|
||||
struct work_struct raise_intr_rxdata_task;
|
||||
|
||||
struct fjes_hw hw;
|
||||
|
Reference in New Issue
Block a user