History

can: j1939: extend UAPI to notify about RX status

To be able to create applications with user friendly feedback, we need be able to provide receive status information. Typical ETP transfer may take seconds or even hours. To give user some clue or show a progress bar, the stack should push status updates. Same as for the TX information, the socket error queue will be used with following new signals: - J1939_EE_INFO_RX_RTS - received and accepted request to send signal. - J1939_EE_INFO_RX_DPO - received data package offset signal - J1939_EE_INFO_RX_ABORT - RX session was aborted Instead of completion signal, user will get data package. To activate this signals, application should set SOF_TIMESTAMPING_RX_SOFTWARE to the SO_TIMESTAMPING socket option. This will avoid unpredictable application behavior for the old software.

Oleksij Rempel committed 5 years ago

Commit 5b9272e1 parent cd85d3a4 files · +136 −34Browse files

Showing the changes to include/uapi (1 of 4 files). Show all

Unified · Split

include/uapi/linux/can/j1939.h+9−0
@@ -78,11 +78,20 @@ enum { · 77 unmodified lines
7878 enum {
7979 J1939_NLA_PAD,
8080 J1939_NLA_BYTES_ACKED,
81+ J1939_NLA_TOTAL_SIZE,
82+ J1939_NLA_PGN,
83+ J1939_NLA_SRC_NAME,
84+ J1939_NLA_DEST_NAME,
85+ J1939_NLA_SRC_ADDR,
86+ J1939_NLA_DEST_ADDR,
8187 };
8288
8389 enum {
8490 J1939_EE_INFO_NONE,
8591 J1939_EE_INFO_TX_ABORT,
92+ J1939_EE_INFO_RX_RTS,
93+ J1939_EE_INFO_RX_DPO,
94+ J1939_EE_INFO_RX_ABORT,
8695 };
8796
8897 struct j1939_filter {