Commit 82a493e3 authored by Yanling Song's avatar Yanling Song Committed by Zheng Zengkai
Browse files

net/spnic: Reduce the timeout of the channel between driver and firmware

Ramaxel inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I4TPKM


CVE: NA

-----------------------------------------------

Reduce the timeout of the channel between driver and firmware

Signed-off-by: default avatarYanling Song <songyl@ramaxel.com>
Reviewed-by: default avatarwenliang <wenliang@ramaxel.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 640779d3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@
#define SPHW_CMDQ_MAX_DATA_SIZE			\
			(SPHW_CMDQ_BUF_SIZE - SPHW_CMDQ_BUF_HW_RSVD)

#define CMDQ_CMD_TIMEOUT				300000 /* millisecond */
#define CMDQ_CMD_TIMEOUT				5000 /* millisecond */

#define UPPER_8_BITS(data)				(((data) >> 8) & 0xFF)
#define LOWER_8_BITS(data)				((data) & 0xFF)
+2 −2
Original line number Diff line number Diff line
@@ -61,8 +61,8 @@ enum sphw_mbox_tx_status {

#define MBOX_SEGLEN_MASK	SPHW_MSG_HEADER_SET(SPHW_MSG_HEADER_SEG_LEN_MASK, SEG_LEN)

#define MBOX_MSG_POLLING_TIMEOUT		300000
#define SPHW_MBOX_COMP_TIME			300000U
#define MBOX_MSG_POLLING_TIMEOUT		8000
#define SPHW_MBOX_COMP_TIME			25000U

#define MBOX_MAX_BUF_SZ				2048U
#define MBOX_HEADER_SZ				8
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@

#define MSG_NO_RESP			0xFFFF

#define MGMT_MSG_TIMEOUT		300000	/* millisecond */
#define MGMT_MSG_TIMEOUT		20000	/* millisecond */

#define SYNC_MSG_ID(pf_to_mgmt)	((pf_to_mgmt)->sync_msg_id)