History

Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net

Cross-merge networking fixes after downstream PR (net-6.13-rc6). No conflicts. Adjacent changes: include/linux/if_vlan.h f91a5b808938 ("af_packet: fix vlan_get_protocol_dgram() vs MSG_PEEK") 3f330db30638 ("net: reformat kdoc return statements")

Jakub Kicinski committed 1 year ago

Commit 385f1862 parents 3fff5da aba74e6342 files · +4587 −1913Browse files

Showing the changes to include/uapi (3 of 342 files). Show all

Unified · Split

3 files
  1. include/uapi/linux/mptcp_pm.h +26 −24
  2. include/uapi/linux/stddef.h +10 −3
  3. include/uapi/linux/thermal.h +2 −2
include/uapi/linux/mptcp_pm.h+26−24
@@ -12,31 +12,33 @@ · 11 unmodified lines
1212 /**
1313 * enum mptcp_event_type
1414 * @MPTCP_EVENT_UNSPEC: unused event
15− * @MPTCP_EVENT_CREATED: token, family, saddr4 | saddr6, daddr4 | daddr6,
16− * sport, dport A new MPTCP connection has been created. It is the good time
17− * to allocate memory and send ADD_ADDR if needed. Depending on the
15+ * @MPTCP_EVENT_CREATED: A new MPTCP connection has been created. It is the
16+ * good time to allocate memory and send ADD_ADDR if needed. Depending on the
1817 * traffic-patterns it can take a long time until the MPTCP_EVENT_ESTABLISHED
19− * is sent.
20− * @MPTCP_EVENT_ESTABLISHED: token, family, saddr4 | saddr6, daddr4 | daddr6,
21− * sport, dport A MPTCP connection is established (can start new subflows).
22− * @MPTCP_EVENT_CLOSED: token A MPTCP connection has stopped.
23− * @MPTCP_EVENT_ANNOUNCED: token, rem_id, family, daddr4 | daddr6 [, dport] A
24− * new address has been announced by the peer.
25− * @MPTCP_EVENT_REMOVED: token, rem_id An address has been lost by the peer.
26− * @MPTCP_EVENT_SUB_ESTABLISHED: token, family, loc_id, rem_id, saddr4 |
27− * saddr6, daddr4 | daddr6, sport, dport, backup, if_idx [, error] A new
28− * subflow has been established. 'error' should not be set.
29− * @MPTCP_EVENT_SUB_CLOSED: token, family, loc_id, rem_id, saddr4 | saddr6,
30− * daddr4 | daddr6, sport, dport, backup, if_idx [, error] A subflow has been
31− * closed. An error (copy of sk_err) could be set if an error has been
32− * detected for this subflow.
33− * @MPTCP_EVENT_SUB_PRIORITY: token, family, loc_id, rem_id, saddr4 | saddr6,
34− * daddr4 | daddr6, sport, dport, backup, if_idx [, error] The priority of a
35− * subflow has changed. 'error' should not be set.
36− * @MPTCP_EVENT_LISTENER_CREATED: family, sport, saddr4 | saddr6 A new PM
37− * listener is created.
38− * @MPTCP_EVENT_LISTENER_CLOSED: family, sport, saddr4 | saddr6 A PM listener
39− * is closed.
18+ * is sent. Attributes: token, family, saddr4 | saddr6, daddr4 | daddr6,
19+ * sport, dport, server-side.
20+ * @MPTCP_EVENT_ESTABLISHED: A MPTCP connection is established (can start new
21+ * subflows). Attributes: token, family, saddr4 | saddr6, daddr4 | daddr6,
22+ * sport, dport, server-side.
23+ * @MPTCP_EVENT_CLOSED: A MPTCP connection has stopped. Attribute: token.
24+ * @MPTCP_EVENT_ANNOUNCED: A new address has been announced by the peer.
25+ * Attributes: token, rem_id, family, daddr4 | daddr6 [, dport].
26+ * @MPTCP_EVENT_REMOVED: An address has been lost by the peer. Attributes:
27+ * token, rem_id.
28+ * @MPTCP_EVENT_SUB_ESTABLISHED: A new subflow has been established. 'error'
29+ * should not be set. Attributes: token, family, loc_id, rem_id, saddr4 |
30+ * saddr6, daddr4 | daddr6, sport, dport, backup, if_idx [, error].
31+ * @MPTCP_EVENT_SUB_CLOSED: A subflow has been closed. An error (copy of
32+ * sk_err) could be set if an error has been detected for this subflow.
33+ * Attributes: token, family, loc_id, rem_id, saddr4 | saddr6, daddr4 |
34+ * daddr6, sport, dport, backup, if_idx [, error].
35+ * @MPTCP_EVENT_SUB_PRIORITY: The priority of a subflow has changed. 'error'
36+ * should not be set. Attributes: token, family, loc_id, rem_id, saddr4 |
37+ * saddr6, daddr4 | daddr6, sport, dport, backup, if_idx [, error].
38+ * @MPTCP_EVENT_LISTENER_CREATED: A new PM listener is created. Attributes:
39+ * family, sport, saddr4 | saddr6.
40+ * @MPTCP_EVENT_LISTENER_CLOSED: A PM listener is closed. Attributes: family,
41+ * sport, saddr4 | saddr6.
4042 */
4143 enum mptcp_event_type {
4244 MPTCP_EVENT_UNSPEC,
include/uapi/linux/stddef.h+10−3
@@ -8,6 +8,13 @@ · 7 unmodified lines
88 #define __always_inline inline
99 #endif
1010
11+/* Not all C++ standards support type declarations inside an anonymous union */
12+#ifndef __cplusplus
13+#define __struct_group_tag(TAG) TAG
14+#else
15+#define __struct_group_tag(TAG)
16+#endif
17+
1118 /**
1219 * __struct_group() - Create a mirrored named and anonyomous struct
1320 *
@@ -20,13 +27,13 @@ · 6 unmodified lines
2027 * and size: one anonymous and one named. The former's members can be used
2128 * normally without sub-struct naming, and the latter can be used to
2229 * reason about the start, end, and size of the group of struct members.
23− * The named struct can also be explicitly tagged for layer reuse, as well
24− * as both having struct attributes appended.
30+ * The named struct can also be explicitly tagged for layer reuse (C only),
31+ * as well as both having struct attributes appended.
2532 */
2633 #define __struct_group(TAG, NAME, ATTRS, MEMBERS...) \
2734 union { \
2835 struct { MEMBERS } ATTRS; \
29− struct TAG { MEMBERS } ATTRS NAME; \
36+ struct __struct_group_tag(TAG) { MEMBERS } ATTRS NAME; \
3037 } ATTRS
3138
3239 #ifdef __cplusplus
include/uapi/linux/thermal.h+2−2
@@ -3,8 +3,8 @@ · 2 unmodified lines
33 #define _UAPI_LINUX_THERMAL_H
44
55 #define THERMAL_NAME_LENGTH 20
6−#define THERMAL_THRESHOLD_WAY_UP BIT(0)
7−#define THERMAL_THRESHOLD_WAY_DOWN BIT(1)
6+#define THERMAL_THRESHOLD_WAY_UP 0x1
7+#define THERMAL_THRESHOLD_WAY_DOWN 0x2
88
99 enum thermal_device_mode {
1010 THERMAL_DEVICE_DISABLED = 0,