[PATCH v1 16/21] j1939: change default timeout for simple sessions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx>
---
 net/can/j1939/j1939-priv.h | 1 +
 net/can/j1939/transport.c  | 3 +--
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/can/j1939/j1939-priv.h b/net/can/j1939/j1939-priv.h
index 6b8985d40520..5e9c1e3a3c5e 100644
--- a/net/can/j1939/j1939-priv.h
+++ b/net/can/j1939/j1939-priv.h
@@ -16,6 +16,7 @@
  * bus is open, the timeout should be triggered.
  */
 #define J1939_XTP_ABORT_TIMEOUT_MS 500
+#define J1939_SIMPLE_ECHO_TIMEOUT_MS (10 * 1000)
 
 struct j1939_session;
 enum j1939_sk_errqueue_type {
diff --git a/net/can/j1939/transport.c b/net/can/j1939/transport.c
index 9bb9fbcf5754..a2f3de289387 100644
--- a/net/can/j1939/transport.c
+++ b/net/can/j1939/transport.c
@@ -994,8 +994,7 @@ static int j1939_simple_txnext(struct j1939_session *session)
 
 	can_skb_set_owner(skb, se_skb->sk);
 
-	j1939_tp_set_rxtimeout(session,
-			       J1939_XTP_ABORT_TIMEOUT_MS);
+	j1939_tp_set_rxtimeout(session, J1939_SIMPLE_ECHO_TIMEOUT_MS);
 
 	ret = j1939_send_one(priv, skb);
 	if (ret)
-- 
2.20.1




[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux