]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
uapi: update headers for xfrm and virtio_ring.h
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 31 Aug 2022 16:37:13 +0000 (09:37 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 31 Aug 2022 16:37:13 +0000 (09:37 -0700)
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
include/uapi/linux/xfrm.h
vdpa/include/uapi/linux/virtio_ring.h

index e6289d5bf950a8bcecc6a9b19e9be362ee37d9b0..4809f9bee8783a1cfaacfaa94b32aee1bcd07e5d 100644 (file)
@@ -296,7 +296,7 @@ enum xfrm_attr_type_t {
        XFRMA_ETIMER_THRESH,
        XFRMA_SRCADDR,          /* xfrm_address_t */
        XFRMA_COADDR,           /* xfrm_address_t */
-       XFRMA_LASTUSED,         /* unsigned long  */
+       XFRMA_LASTUSED,         /* __u64 */
        XFRMA_POLICY_TYPE,      /* struct xfrm_userpolicy_type */
        XFRMA_MIGRATE,
        XFRMA_ALG_AEAD,         /* struct xfrm_algo_aead */
index 010483437e543fec496e8d1d6979e583be6b4444..0e827fb50c6078f50761d5e806485c846ee95457 100644 (file)
 #define VRING_USED_ALIGN_SIZE 4
 #define VRING_DESC_ALIGN_SIZE 16
 
-/* Virtio ring descriptors: 16 bytes.  These can chain together via "next". */
+/**
+ * struct vring_desc - Virtio ring descriptors,
+ * 16 bytes long. These can chain together via @next.
+ *
+ * @addr: buffer address (guest-physical)
+ * @len: buffer length
+ * @flags: descriptor flags
+ * @next: index of the next descriptor in the chain,
+ *        if the VRING_DESC_F_NEXT flag is set. We chain unused
+ *        descriptors via this, too.
+ */
 struct vring_desc {
-       /* Address (guest-physical). */
        __virtio64 addr;
-       /* Length. */
        __virtio32 len;
-       /* The flags as indicated above. */
        __virtio16 flags;
-       /* We chain unused descriptors via this, too */
        __virtio16 next;
 };