This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: v4l-utils: sync with latest kernel headers
Author:  Hans Verkuil <hverkuil-ci...@xs4all.nl>
Date:    Wed Nov 22 14:21:49 2023 +0100

Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl>

 include/linux/bpf.h              | 52 ++++++++++++++++++++++++++++++++++++----
 include/linux/media-bus-format.h |  3 ++-
 2 files changed, 49 insertions(+), 6 deletions(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=6c5c18e61a824443152be91ce5ab3792dffd81e4
diff --git a/include/linux/bpf.h b/include/linux/bpf.h
index f6f4347b75a5..cdd6006d79fb 100644
--- a/include/linux/bpf.h
+++ b/include/linux/bpf.h
@@ -932,7 +932,14 @@ enum bpf_map_type {
         */
        BPF_MAP_TYPE_CGROUP_STORAGE = BPF_MAP_TYPE_CGROUP_STORAGE_DEPRECATED,
        BPF_MAP_TYPE_REUSEPORT_SOCKARRAY,
-       BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE,
+       BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE_DEPRECATED,
+       /* BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE is available to bpf programs
+        * attaching to a cgroup. The new mechanism (BPF_MAP_TYPE_CGRP_STORAGE +
+        * local percpu kptr) supports all BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE
+        * functionality and more. So mark * BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE
+        * deprecated.
+        */
+       BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 
BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE_DEPRECATED,
        BPF_MAP_TYPE_QUEUE,
        BPF_MAP_TYPE_STACK,
        BPF_MAP_TYPE_SK_STORAGE,
@@ -1040,6 +1047,13 @@ enum bpf_attach_type {
        BPF_TCX_INGRESS,
        BPF_TCX_EGRESS,
        BPF_TRACE_UPROBE_MULTI,
+       BPF_CGROUP_UNIX_CONNECT,
+       BPF_CGROUP_UNIX_SENDMSG,
+       BPF_CGROUP_UNIX_RECVMSG,
+       BPF_CGROUP_UNIX_GETPEERNAME,
+       BPF_CGROUP_UNIX_GETSOCKNAME,
+       BPF_NETKIT_PRIMARY,
+       BPF_NETKIT_PEER,
        __MAX_BPF_ATTACH_TYPE
 };
 
@@ -1059,6 +1073,7 @@ enum bpf_link_type {
        BPF_LINK_TYPE_NETFILTER = 10,
        BPF_LINK_TYPE_TCX = 11,
        BPF_LINK_TYPE_UPROBE_MULTI = 12,
+       BPF_LINK_TYPE_NETKIT = 13,
        MAX_BPF_LINK_TYPE,
 };
 
@@ -1644,6 +1659,13 @@ union bpf_attr {
                                __u32           flags;
                                __u32           pid;
                        } uprobe_multi;
+                       struct {
+                               union {
+                                       __u32   relative_fd;
+                                       __u32   relative_id;
+                               };
+                               __u64           expected_revision;
+                       } netkit;
                };
        } link_create;
 
@@ -2697,8 +2719,8 @@ union bpf_attr {
  *             *bpf_socket* should be one of the following:
  *
  *             * **struct bpf_sock_ops** for **BPF_PROG_TYPE_SOCK_OPS**.
- *             * **struct bpf_sock_addr** for **BPF_CGROUP_INET4_CONNECT**
- *               and **BPF_CGROUP_INET6_CONNECT**.
+ *             * **struct bpf_sock_addr** for **BPF_CGROUP_INET4_CONNECT**,
+ *               **BPF_CGROUP_INET6_CONNECT** and **BPF_CGROUP_UNIX_CONNECT**.
  *
  *             This helper actually implements a subset of **setsockopt()**.
  *             It supports the following *level*\ s:
@@ -2936,8 +2958,8 @@ union bpf_attr {
  *             *bpf_socket* should be one of the following:
  *
  *             * **struct bpf_sock_ops** for **BPF_PROG_TYPE_SOCK_OPS**.
- *             * **struct bpf_sock_addr** for **BPF_CGROUP_INET4_CONNECT**
- *               and **BPF_CGROUP_INET6_CONNECT**.
+ *             * **struct bpf_sock_addr** for **BPF_CGROUP_INET4_CONNECT**,
+ *               **BPF_CGROUP_INET6_CONNECT** and **BPF_CGROUP_UNIX_CONNECT**.
  *
  *             This helper actually implements a subset of **getsockopt()**.
  *             It supports the same set of *optname*\ s that is supported by
@@ -3257,6 +3279,11 @@ union bpf_attr {
  *                     and *params*->smac will not be set as output. A common
  *                     use case is to call **bpf_redirect_neigh**\ () after
  *                     doing **bpf_fib_lookup**\ ().
+ *             **BPF_FIB_LOOKUP_SRC**
+ *                     Derive and set source IP addr in *params*->ipv{4,6}_src
+ *                     for the nexthop. If the src addr cannot be derived,
+ *                     **BPF_FIB_LKUP_RET_NO_SRC_ADDR** is returned. In this
+ *                     case, *params*->dmac and *params*->smac are not set 
either.
  *
  *             *ctx* is either **struct xdp_md** for XDP programs or
  *             **struct sk_buff** tc cls_act programs.
@@ -5089,6 +5116,8 @@ union bpf_attr {
  *             **BPF_F_TIMER_ABS**
  *                     Start the timer in absolute expire value instead of the
  *                     default relative one.
+ *             **BPF_F_TIMER_CPU_PIN**
+ *                     Timer will be pinned to the CPU of the caller.
  *
  *     Return
  *             0 on success.
@@ -6525,6 +6554,7 @@ struct bpf_link_info {
                        __aligned_u64 addrs;
                        __u32 count; /* in/out: kprobe_multi function count */
                        __u32 flags;
+                       __u64 missed;
                } kprobe_multi;
                struct {
                        __u32 type; /* enum bpf_perf_event_type */
@@ -6540,6 +6570,7 @@ struct bpf_link_info {
                                        __u32 name_len;
                                        __u32 offset; /* offset from func_name 
*/
                                        __u64 addr;
+                                       __u64 missed;
                                } kprobe; /* BPF_PERF_EVENT_KPROBE, 
BPF_PERF_EVENT_KRETPROBE */
                                struct {
                                        __aligned_u64 tp_name;   /* in/out */
@@ -6555,6 +6586,10 @@ struct bpf_link_info {
                        __u32 ifindex;
                        __u32 attach_type;
                } tcx;
+               struct {
+                       __u32 ifindex;
+                       __u32 attach_type;
+               } netkit;
        };
 } __attribute__((aligned(8)));
 
@@ -6953,6 +6988,7 @@ enum {
        BPF_FIB_LOOKUP_OUTPUT  = (1U << 1),
        BPF_FIB_LOOKUP_SKIP_NEIGH = (1U << 2),
        BPF_FIB_LOOKUP_TBID    = (1U << 3),
+       BPF_FIB_LOOKUP_SRC     = (1U << 4),
 };
 
 enum {
@@ -6965,6 +7001,7 @@ enum {
        BPF_FIB_LKUP_RET_UNSUPP_LWT,   /* fwd requires encapsulation */
        BPF_FIB_LKUP_RET_NO_NEIGH,     /* no neighbor entry for nh */
        BPF_FIB_LKUP_RET_FRAG_NEEDED,  /* fragmentation required to fwd */
+       BPF_FIB_LKUP_RET_NO_SRC_ADDR,  /* failed to derive IP src addr */
 };
 
 struct bpf_fib_lookup {
@@ -6999,6 +7036,9 @@ struct bpf_fib_lookup {
                __u32   rt_metric;
        };
 
+       /* input: source address to consider for lookup
+        * output: source address result from lookup
+        */
        union {
                __be32          ipv4_src;
                __u32           ipv6_src[4];  /* in6_addr; network order */
@@ -7300,9 +7340,11 @@ struct bpf_core_relo {
  * Flags to control bpf_timer_start() behaviour.
  *     - BPF_F_TIMER_ABS: Timeout passed is absolute time, by default it is
  *       relative to current time.
+ *     - BPF_F_TIMER_CPU_PIN: Timer will be pinned to the CPU of the caller.
  */
 enum {
        BPF_F_TIMER_ABS = (1ULL << 0),
+       BPF_F_TIMER_CPU_PIN = (1ULL << 1),
 };
 
 /* BPF numbers iterator state */
diff --git a/include/linux/media-bus-format.h b/include/linux/media-bus-format.h
index a03c543cb072..f05f747e444d 100644
--- a/include/linux/media-bus-format.h
+++ b/include/linux/media-bus-format.h
@@ -34,7 +34,7 @@
 
 #define MEDIA_BUS_FMT_FIXED                    0x0001
 
-/* RGB - next is       0x1025 */
+/* RGB - next is       0x1026 */
 #define MEDIA_BUS_FMT_RGB444_1X12              0x1016
 #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_BE      0x1001
 #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_LE      0x1002
@@ -46,6 +46,7 @@
 #define MEDIA_BUS_FMT_RGB565_2X8_BE            0x1007
 #define MEDIA_BUS_FMT_RGB565_2X8_LE            0x1008
 #define MEDIA_BUS_FMT_RGB666_1X18              0x1009
+#define MEDIA_BUS_FMT_RGB666_2X9_BE            0x1025
 #define MEDIA_BUS_FMT_BGR666_1X18              0x1023
 #define MEDIA_BUS_FMT_RBG888_1X24              0x100e
 #define MEDIA_BUS_FMT_RGB666_1X24_CPADHI       0x1015

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to