History

Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/net

Simple overlapping changes in stmmac driver. Adjust skb_gro_flush_final_remcsum function signature to make GRO list changes in net-next, as per Stephen Rothwell's example merge resolution.

David S. Miller committed 8 years ago

Commit 5cd3da42 parents f6779e4 d0fbad0471 files · +3815 −2447Browse files

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

Unified · Split

3 files
  1. include/uapi/linux/aio_abi.h +4 −2
  2. include/uapi/linux/bpf.h +23 −5
  3. include/uapi/linux/target_core_user.h +3 −1
include/uapi/linux/aio_abi.h+4−2
@@ -39,8 +39,10 @@ enum { · 38 unmodified lines
3939 IOCB_CMD_PWRITE = 1,
4040 IOCB_CMD_FSYNC = 2,
4141 IOCB_CMD_FDSYNC = 3,
42− /* 4 was the experimental IOCB_CMD_PREADX */
43− IOCB_CMD_POLL = 5,
42+ /* These two are experimental.
43+ * IOCB_CMD_PREADX = 4,
44+ * IOCB_CMD_POLL = 5,
45+ */
4446 IOCB_CMD_NOOP = 6,
4547 IOCB_CMD_PREADV = 7,
4648 IOCB_CMD_PWRITEV = 8,
include/uapi/linux/bpf.h+23−5
@@ -1857,7 +1857,8 @@ union bpf_attr { · 1856 unmodified lines
18571857 * is resolved), the nexthop address is returned in ipv4_dst
18581858 * or ipv6_dst based on family, smac is set to mac address of
18591859 * egress device, dmac is set to nexthop mac address, rt_metric
1860− * is set to metric from route (IPv4/IPv6 only).
1860+ * is set to metric from route (IPv4/IPv6 only), and ifindex
1861+ * is set to the device index of the nexthop from the FIB lookup.
18611862 *
18621863 * *plen* argument is the size of the passed in struct.
18631864 * *flags* argument can be a combination of one or more of the
@@ -1873,9 +1874,10 @@ union bpf_attr { · 9 unmodified lines
18731874 * *ctx* is either **struct xdp_md** for XDP programs or
18741875 * **struct sk_buff** tc cls_act programs.
18751876 * Return
1876− * Egress device index on success, 0 if packet needs to continue
1877− * up the stack for further processing or a negative error in case
1878− * of failure.
1877+ * * < 0 if any input argument is invalid
1878+ * * 0 on success (packet is forwarded, nexthop neighbor exists)
1879+ * * > 0 one of **BPF_FIB_LKUP_RET_** codes explaining why the
1880+ * * packet is not forwarded or needs assist from full stack
18791881 *
18801882 * int bpf_sock_hash_update(struct bpf_sock_ops_kern *skops, struct bpf_map *map, void *key, u64 flags)
18811883 * Description
@@ -2612,6 +2614,18 @@ struct bpf_raw_tracepoint_args { · 730 unmodified lines
26122614 #define BPF_FIB_LOOKUP_DIRECT BIT(0)
26132615 #define BPF_FIB_LOOKUP_OUTPUT BIT(1)
26142616
2617+enum {
2618+ BPF_FIB_LKUP_RET_SUCCESS, /* lookup successful */
2619+ BPF_FIB_LKUP_RET_BLACKHOLE, /* dest is blackholed; can be dropped */
2620+ BPF_FIB_LKUP_RET_UNREACHABLE, /* dest is unreachable; can be dropped */
2621+ BPF_FIB_LKUP_RET_PROHIBIT, /* dest not allowed; can be dropped */
2622+ BPF_FIB_LKUP_RET_NOT_FWDED, /* packet is not forwarded */
2623+ BPF_FIB_LKUP_RET_FWD_DISABLED, /* fwding is not enabled on ingress */
2624+ BPF_FIB_LKUP_RET_UNSUPP_LWT, /* fwd requires encapsulation */
2625+ BPF_FIB_LKUP_RET_NO_NEIGH, /* no neighbor entry for nh */
2626+ BPF_FIB_LKUP_RET_FRAG_NEEDED, /* fragmentation required to fwd */
2627+};
2628+
26152629 struct bpf_fib_lookup {
26162630 /* input: network family for lookup (AF_INET, AF_INET6)
26172631 * output: network family of egress nexthop
@@ -2625,7 +2639,11 @@ struct bpf_fib_lookup { · 7 unmodified lines
26252639
26262640 /* total length of packet from network header - used for MTU check */
26272641 __u16 tot_len;
2628− __u32 ifindex; /* L3 device index for lookup */
2642+
2643+ /* input: L3 device index for lookup
2644+ * output: device index from FIB lookup
2645+ */
2646+ __u32 ifindex;
26292647
26302648 union {
26312649 /* inputs to lookup */
include/uapi/linux/target_core_user.h+3−1
@@ -44,6 +44,7 @@ · 43 unmodified lines
4444 #define TCMU_MAILBOX_VERSION 2
4545 #define ALIGN_SIZE 64 /* Should be enough for most CPUs */
4646 #define TCMU_MAILBOX_FLAG_CAP_OOOC (1 << 0) /* Out-of-order completions */
47+#define TCMU_MAILBOX_FLAG_CAP_READ_LEN (1 << 1) /* Read data length */
4748
4849 struct tcmu_mailbox {
4950 __u16 version;
@@ -71,6 +72,7 @@ struct tcmu_cmd_entry_hdr { · 21 unmodified lines
7172 __u16 cmd_id;
7273 __u8 kflags;
7374 #define TCMU_UFLAG_UNKNOWN_OP 0x1
75+#define TCMU_UFLAG_READ_LEN 0x2
7476 __u8 uflags;
7577
7678 } __packed;
@@ -119,7 +121,7 @@ struct tcmu_cmd_entry { · 42 unmodified lines
119121 __u8 scsi_status;
120122 __u8 __pad1;
121123 __u16 __pad2;
122− __u32 __pad3;
124+ __u32 read_len;
123125 char sense_buffer[TCMU_SENSE_BUFFERSIZE];
124126 } rsp;
125127 };