~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/if_rmnet.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/linux/if_rmnet.h (Version linux-6.12-rc7) and /include/linux/if_rmnet.h (Version linux-6.11.7)


  1 /* SPDX-License-Identifier: GPL-2.0-only            1 /* SPDX-License-Identifier: GPL-2.0-only
  2  * Copyright (c) 2013-2019, 2021 The Linux Fou      2  * Copyright (c) 2013-2019, 2021 The Linux Foundation. All rights reserved.
  3  */                                                 3  */
  4                                                     4 
  5 #ifndef _LINUX_IF_RMNET_H_                          5 #ifndef _LINUX_IF_RMNET_H_
  6 #define _LINUX_IF_RMNET_H_                          6 #define _LINUX_IF_RMNET_H_
  7                                                     7 
  8 #include <linux/types.h>                            8 #include <linux/types.h>
  9                                                     9 
 10 struct rmnet_map_header {                          10 struct rmnet_map_header {
 11         u8 flags;                       /* MAP     11         u8 flags;                       /* MAP_CMD_FLAG, MAP_PAD_LEN_MASK */
 12         u8 mux_id;                                 12         u8 mux_id;
 13         __be16 pkt_len;                 /* Len     13         __be16 pkt_len;                 /* Length of packet, including pad */
 14 }  __aligned(1);                                   14 }  __aligned(1);
 15                                                    15 
 16 /* rmnet_map_header flags field:                   16 /* rmnet_map_header flags field:
 17  *  PAD_LEN:      number of pad bytes followin     17  *  PAD_LEN:      number of pad bytes following packet data
 18  *  CMD:          1 = packet contains a MAP co     18  *  CMD:          1 = packet contains a MAP command; 0 = packet contains data
 19  *  NEXT_HEADER: 1 = packet contains V5 CSUM h     19  *  NEXT_HEADER: 1 = packet contains V5 CSUM header 0 = no V5 CSUM header
 20  */                                                20  */
 21 #define MAP_PAD_LEN_MASK                GENMAS     21 #define MAP_PAD_LEN_MASK                GENMASK(5, 0)
 22 #define MAP_NEXT_HEADER_FLAG            BIT(6)     22 #define MAP_NEXT_HEADER_FLAG            BIT(6)
 23 #define MAP_CMD_FLAG                    BIT(7)     23 #define MAP_CMD_FLAG                    BIT(7)
 24                                                    24 
 25 struct rmnet_map_dl_csum_trailer {                 25 struct rmnet_map_dl_csum_trailer {
 26         u8 reserved1;                              26         u8 reserved1;
 27         u8 flags;                       /* MAP     27         u8 flags;                       /* MAP_CSUM_DL_VALID_FLAG */
 28         __be16 csum_start_offset;                  28         __be16 csum_start_offset;
 29         __be16 csum_length;                        29         __be16 csum_length;
 30         __sum16 csum_value;                        30         __sum16 csum_value;
 31 } __aligned(1);                                    31 } __aligned(1);
 32                                                    32 
 33 /* rmnet_map_dl_csum_trailer flags field:          33 /* rmnet_map_dl_csum_trailer flags field:
 34  *  VALID:      1 = checksum and length valid;     34  *  VALID:      1 = checksum and length valid; 0 = ignore them
 35  */                                                35  */
 36 #define MAP_CSUM_DL_VALID_FLAG          BIT(0)     36 #define MAP_CSUM_DL_VALID_FLAG          BIT(0)
 37                                                    37 
 38 struct rmnet_map_ul_csum_header {                  38 struct rmnet_map_ul_csum_header {
 39         __be16 csum_start_offset;                  39         __be16 csum_start_offset;
 40         __be16 csum_info;               /* MAP     40         __be16 csum_info;               /* MAP_CSUM_UL_* */
 41 } __aligned(1);                                    41 } __aligned(1);
 42                                                    42 
 43 /* csum_info field:                                43 /* csum_info field:
 44  *  OFFSET:     where (offset in bytes) to ins     44  *  OFFSET:     where (offset in bytes) to insert computed checksum
 45  *  UDP:        1 = UDP checksum (zero checksu !!  45  *  UDP:        1 = UDP checksum (zero checkum means no checksum)
 46  *  ENABLED:    1 = checksum computation reque     46  *  ENABLED:    1 = checksum computation requested
 47  */                                                47  */
 48 #define MAP_CSUM_UL_OFFSET_MASK         GENMAS     48 #define MAP_CSUM_UL_OFFSET_MASK         GENMASK(13, 0)
 49 #define MAP_CSUM_UL_UDP_FLAG            BIT(14     49 #define MAP_CSUM_UL_UDP_FLAG            BIT(14)
 50 #define MAP_CSUM_UL_ENABLED_FLAG        BIT(15     50 #define MAP_CSUM_UL_ENABLED_FLAG        BIT(15)
 51                                                    51 
 52 /* MAP CSUM headers */                             52 /* MAP CSUM headers */
 53 struct rmnet_map_v5_csum_header {                  53 struct rmnet_map_v5_csum_header {
 54         u8 header_info;                            54         u8 header_info;
 55         u8 csum_info;                              55         u8 csum_info;
 56         __be16 reserved;                           56         __be16 reserved;
 57 } __aligned(1);                                    57 } __aligned(1);
 58                                                    58 
 59 /* v5 header_info field                            59 /* v5 header_info field
 60  * NEXT_HEADER: represents whether there is an     60  * NEXT_HEADER: represents whether there is any next header
 61  * HEADER_TYPE: represents the type of this he     61  * HEADER_TYPE: represents the type of this header
 62  *                                                 62  *
 63  * csum_info field                                 63  * csum_info field
 64  * CSUM_VALID_OR_REQ:                              64  * CSUM_VALID_OR_REQ:
 65  * 1 = for UL, checksum computation is request     65  * 1 = for UL, checksum computation is requested.
 66  * 1 = for DL, validated the checksum and has      66  * 1 = for DL, validated the checksum and has found it valid
 67  */                                                67  */
 68                                                    68 
 69 #define MAPV5_HDRINFO_NXT_HDR_FLAG      BIT(0)     69 #define MAPV5_HDRINFO_NXT_HDR_FLAG      BIT(0)
 70 #define MAPV5_HDRINFO_HDR_TYPE_FMASK    GENMAS     70 #define MAPV5_HDRINFO_HDR_TYPE_FMASK    GENMASK(7, 1)
 71 #define MAPV5_CSUMINFO_VALID_FLAG       BIT(7)     71 #define MAPV5_CSUMINFO_VALID_FLAG       BIT(7)
 72                                                    72 
 73 #define RMNET_MAP_HEADER_TYPE_CSUM_OFFLOAD 2       73 #define RMNET_MAP_HEADER_TYPE_CSUM_OFFLOAD 2
 74 #endif /* !(_LINUX_IF_RMNET_H_) */                 74 #endif /* !(_LINUX_IF_RMNET_H_) */
 75                                                    75 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php