Commit 5b9272e
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.
Link: https://lore.kernel.org/r/20210707094854.30781-3-o.rempel@pengutronix.de
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>1 parent cd85d3a commit 5b9272e
File tree
4 files changed
+136
-34
lines changed- include/uapi/linux/can
- net/can/j1939
4 files changed
+136
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
81 | 87 | | |
82 | 88 | | |
83 | 89 | | |
84 | 90 | | |
85 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
86 | 95 | | |
87 | 96 | | |
88 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
| 93 | + | |
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
905 | 905 | | |
906 | 906 | | |
907 | 907 | | |
908 | | - | |
| 908 | + | |
909 | 909 | | |
910 | | - | |
911 | | - | |
912 | | - | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
913 | 925 | | |
914 | 926 | | |
915 | 927 | | |
916 | | - | |
| 928 | + | |
| 929 | + | |
917 | 930 | | |
918 | 931 | | |
919 | 932 | | |
920 | 933 | | |
921 | | - | |
| 934 | + | |
922 | 935 | | |
923 | 936 | | |
924 | 937 | | |
| |||
928 | 941 | | |
929 | 942 | | |
930 | 943 | | |
931 | | - | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
932 | 962 | | |
933 | 963 | | |
934 | 964 | | |
935 | 965 | | |
936 | | - | |
937 | | - | |
| 966 | + | |
| 967 | + | |
938 | 968 | | |
939 | 969 | | |
940 | | - | |
941 | 970 | | |
942 | 971 | | |
943 | 972 | | |
944 | 973 | | |
945 | 974 | | |
946 | 975 | | |
947 | | - | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | 976 | | |
952 | 977 | | |
953 | 978 | | |
954 | 979 | | |
955 | 980 | | |
956 | | - | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
957 | 1005 | | |
958 | 1006 | | |
959 | 1007 | | |
| |||
965 | 1013 | | |
966 | 1014 | | |
967 | 1015 | | |
968 | | - | |
969 | | - | |
970 | | - | |
971 | | - | |
972 | | - | |
973 | 1016 | | |
974 | 1017 | | |
975 | 1018 | | |
976 | | - | |
| 1019 | + | |
977 | 1020 | | |
978 | 1021 | | |
979 | | - | |
980 | | - | |
981 | | - | |
982 | | - | |
983 | | - | |
984 | 1022 | | |
985 | 1023 | | |
986 | 1024 | | |
987 | | - | |
| 1025 | + | |
988 | 1026 | | |
989 | 1027 | | |
990 | 1028 | | |
991 | 1029 | | |
992 | 1030 | | |
993 | | - | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
994 | 1050 | | |
995 | | - | |
996 | | - | |
997 | 1051 | | |
998 | 1052 | | |
999 | 1053 | | |
| |||
1008 | 1062 | | |
1009 | 1063 | | |
1010 | 1064 | | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
1011 | 1086 | | |
1012 | 1087 | | |
1013 | 1088 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
267 | 271 | | |
268 | 272 | | |
269 | 273 | | |
| |||
1116 | 1120 | | |
1117 | 1121 | | |
1118 | 1122 | | |
| 1123 | + | |
| 1124 | + | |
1119 | 1125 | | |
1120 | 1126 | | |
1121 | 1127 | | |
| |||
1330 | 1336 | | |
1331 | 1337 | | |
1332 | 1338 | | |
| 1339 | + | |
| 1340 | + | |
1333 | 1341 | | |
1334 | 1342 | | |
1335 | 1343 | | |
| |||
1630 | 1638 | | |
1631 | 1639 | | |
1632 | 1640 | | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
1633 | 1644 | | |
1634 | 1645 | | |
1635 | 1646 | | |
| |||
1752 | 1763 | | |
1753 | 1764 | | |
1754 | 1765 | | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
1755 | 1769 | | |
1756 | 1770 | | |
1757 | 1771 | | |
| |||
0 commit comments