History

Merge 5.12-rc6 into char-misc-next

We need the char/misc fixes in here as well.

Greg Kroah-Hartman committed 5 years ago

Commit 422d2242 parents b0077b4 e49d033884 files · +6978 −3902Browse files

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

Unified · Split

4 files
  1. include/uapi/linux/blkpg.h +2 −26
  2. include/uapi/linux/bpf.h +11 −5
  3. include/uapi/linux/fuse.h +2 −1
  4. include/uapi/linux/psample.h +1 −4
include/uapi/linux/blkpg.h+2−26
@@ -2,29 +2,6 @@ · 1 unmodified line
22 #ifndef _UAPI__LINUX_BLKPG_H
33 #define _UAPI__LINUX_BLKPG_H
44
5−/*
6− * Partition table and disk geometry handling
7− *
8− * A single ioctl with lots of subfunctions:
9− *
10− * Device number stuff:
11− * get_whole_disk() (given the device number of a partition,
12− * find the device number of the encompassing disk)
13− * get_all_partitions() (given the device number of a disk, return the
14− * device numbers of all its known partitions)
15− *
16− * Partition stuff:
17− * add_partition()
18− * delete_partition()
19− * test_partition_in_use() (also for test_disk_in_use)
20− *
21− * Geometry stuff:
22− * get_geometry()
23− * set_geometry()
24− * get_bios_drivedata()
25− *
26− * For today, only the partition stuff - aeb, 990515
27− */
285 #include <linux/compiler.h>
296 #include <linux/ioctl.h>
307
@@ -52,9 +29,8 @@ struct blkpg_partition { · 21 unmodified lines
5229 long long start; /* starting offset in bytes */
5330 long long length; /* length in bytes */
5431 int pno; /* partition number */
55− char devname[BLKPG_DEVNAMELTH]; /* partition name, like sda5 or c0d1p2,
56− to be used in kernel messages */
57− char volname[BLKPG_VOLNAMELTH]; /* volume label */
32+ char devname[BLKPG_DEVNAMELTH]; /* unused / ignored */
33+ char volname[BLKPG_VOLNAMELTH]; /* unused / ignore */
5834 };
5935
6036 #endif /* _UAPI__LINUX_BLKPG_H */
include/uapi/linux/bpf.h+11−5
@@ -3850,7 +3850,7 @@ union bpf_attr { · 3849 unmodified lines
38503850 *
38513851 * long bpf_check_mtu(void *ctx, u32 ifindex, u32 *mtu_len, s32 len_diff, u64 flags)
38523852 * Description
3853− * Check ctx packet size against exceeding MTU of net device (based
3853+ * Check packet size against exceeding MTU of net device (based
38543854 * on *ifindex*). This helper will likely be used in combination
38553855 * with helpers that adjust/change the packet size.
38563856 *
@@ -3867,6 +3867,14 @@ union bpf_attr { · 10 unmodified lines
38673867 * against the current net device. This is practical if this isn't
38683868 * used prior to redirect.
38693869 *
3870+ * On input *mtu_len* must be a valid pointer, else verifier will
3871+ * reject BPF program. If the value *mtu_len* is initialized to
3872+ * zero then the ctx packet size is use. When value *mtu_len* is
3873+ * provided as input this specify the L3 length that the MTU check
3874+ * is done against. Remember XDP and TC length operate at L2, but
3875+ * this value is L3 as this correlate to MTU and IP-header tot_len
3876+ * values which are L3 (similar behavior as bpf_fib_lookup).
3877+ *
38703878 * The Linux kernel route table can configure MTUs on a more
38713879 * specific per route level, which is not provided by this helper.
38723880 * For route level MTU checks use the **bpf_fib_lookup**\ ()
@@ -3891,11 +3899,9 @@ union bpf_attr { · 18 unmodified lines
38913899 *
38923900 * On return *mtu_len* pointer contains the MTU value of the net
38933901 * device. Remember the net device configured MTU is the L3 size,
3894− * which is returned here and XDP and TX length operate at L2.
3902+ * which is returned here and XDP and TC length operate at L2.
38953903 * Helper take this into account for you, but remember when using
3896− * MTU value in your BPF-code. On input *mtu_len* must be a valid
3897− * pointer and be initialized (to zero), else verifier will reject
3898− * BPF program.
3904+ * MTU value in your BPF-code.
38993905 *
39003906 * Return
39013907 * * 0 on success, and populate MTU value in *mtu_len* pointer.
include/uapi/linux/fuse.h+2−1
@@ -903,7 +903,8 @@ struct fuse_notify_retrieve_in { · 902 unmodified lines
903903 };
904904
905905 /* Device ioctls: */
906−#define FUSE_DEV_IOC_CLONE _IOR(229, 0, uint32_t)
906+#define FUSE_DEV_IOC_MAGIC 229
907+#define FUSE_DEV_IOC_CLONE _IOR(FUSE_DEV_IOC_MAGIC, 0, uint32_t)
907908
908909 struct fuse_lseek_in {
909910 uint64_t fh;
include/uapi/linux/psample.h+1−4
@@ -3,7 +3,6 @@ · 2 unmodified lines
33 #define __UAPI_PSAMPLE_H
44
55 enum {
6− /* sampled packet metadata */
76 PSAMPLE_ATTR_IIFINDEX,
87 PSAMPLE_ATTR_OIFINDEX,
98 PSAMPLE_ATTR_ORIGSIZE,
@@ -11,10 +10,8 @@ enum { · 1 unmodified line
1110 PSAMPLE_ATTR_GROUP_SEQ,
1211 PSAMPLE_ATTR_SAMPLE_RATE,
1312 PSAMPLE_ATTR_DATA,
14− PSAMPLE_ATTR_TUNNEL,
15−
16− /* commands attributes */
1713 PSAMPLE_ATTR_GROUP_REFCOUNT,
14+ PSAMPLE_ATTR_TUNNEL,
1815
1916 __PSAMPLE_ATTR_MAX
2017 };