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

TOMOYO Linux Cross Reference
Linux/net/atm/lec.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 /net/atm/lec.h (Version linux-6.12-rc7) and /net/atm/lec.h (Version linux-5.13.19)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*                                                  2 /*
  3  * Lan Emulation client header file                 3  * Lan Emulation client header file
  4  *                                                  4  *
  5  * Marko Kiiskila <mkiiskila@yahoo.com>             5  * Marko Kiiskila <mkiiskila@yahoo.com>
  6  */                                                 6  */
  7                                                     7 
  8 #ifndef _LEC_H_                                     8 #ifndef _LEC_H_
  9 #define _LEC_H_                                     9 #define _LEC_H_
 10                                                    10 
 11 #include <linux/atmdev.h>                          11 #include <linux/atmdev.h>
 12 #include <linux/netdevice.h>                       12 #include <linux/netdevice.h>
 13 #include <linux/atmlec.h>                          13 #include <linux/atmlec.h>
 14                                                    14 
 15 #define LEC_HEADER_LEN 16                          15 #define LEC_HEADER_LEN 16
 16                                                    16 
 17 struct lecdatahdr_8023 {                           17 struct lecdatahdr_8023 {
 18         __be16 le_header;                          18         __be16 le_header;
 19         unsigned char h_dest[ETH_ALEN];            19         unsigned char h_dest[ETH_ALEN];
 20         unsigned char h_source[ETH_ALEN];          20         unsigned char h_source[ETH_ALEN];
 21         __be16 h_type;                             21         __be16 h_type;
 22 };                                                 22 };
 23                                                    23 
 24 struct lecdatahdr_8025 {                           24 struct lecdatahdr_8025 {
 25         __be16 le_header;                          25         __be16 le_header;
 26         unsigned char ac_pad;                      26         unsigned char ac_pad;
 27         unsigned char fc;                          27         unsigned char fc;
 28         unsigned char h_dest[ETH_ALEN];            28         unsigned char h_dest[ETH_ALEN];
 29         unsigned char h_source[ETH_ALEN];          29         unsigned char h_source[ETH_ALEN];
 30 };                                                 30 };
 31                                                    31 
 32 #define LEC_MINIMUM_8023_SIZE   62                 32 #define LEC_MINIMUM_8023_SIZE   62
 33 #define LEC_MINIMUM_8025_SIZE   16                 33 #define LEC_MINIMUM_8025_SIZE   16
 34                                                    34 
 35 /*                                                 35 /*
 36  * Operations that LANE2 capable device can do     36  * Operations that LANE2 capable device can do. Two first functions
 37  * are used to make the device do things. See      37  * are used to make the device do things. See spec 3.1.3 and 3.1.4.
 38  *                                                 38  *
 39  * The third function is intended for the MPOA     39  * The third function is intended for the MPOA component sitting on
 40  * top of the LANE device. The MPOA component      40  * top of the LANE device. The MPOA component assigns it's own function
 41  * to (*associate_indicator)() and the LANE de     41  * to (*associate_indicator)() and the LANE device will use that
 42  * function to tell about TLVs it sees floatin     42  * function to tell about TLVs it sees floating through.
 43  *                                                 43  *
 44  */                                                44  */
 45 struct lane2_ops {                                 45 struct lane2_ops {
 46         int (*resolve) (struct net_device *dev     46         int (*resolve) (struct net_device *dev, const u8 *dst_mac, int force,
 47                         u8 **tlvs, u32 *sizeof     47                         u8 **tlvs, u32 *sizeoftlvs);
 48         int (*associate_req) (struct net_devic     48         int (*associate_req) (struct net_device *dev, const u8 *lan_dst,
 49                               const u8 *tlvs,      49                               const u8 *tlvs, u32 sizeoftlvs);
 50         void (*associate_indicator) (struct ne     50         void (*associate_indicator) (struct net_device *dev, const u8 *mac_addr,
 51                                      const u8      51                                      const u8 *tlvs, u32 sizeoftlvs);
 52 };                                                 52 };
 53                                                    53 
 54 /*                                                 54 /*
 55  * ATM LAN Emulation supports both LLC & Dix E     55  * ATM LAN Emulation supports both LLC & Dix Ethernet EtherType
 56  * frames.                                         56  * frames.
 57  *                                                 57  *
 58  * 1. Dix Ethernet EtherType frames encoded by     58  * 1. Dix Ethernet EtherType frames encoded by placing EtherType
 59  *    field in h_type field. Data follows imme     59  *    field in h_type field. Data follows immediately after header.
 60  * 2. LLC Data frames whose total length, incl     60  * 2. LLC Data frames whose total length, including LLC field and data,
 61  *    but not padding required to meet the min     61  *    but not padding required to meet the minimum data frame length,
 62  *    is less than ETH_P_802_3_MIN MUST be enc     62  *    is less than ETH_P_802_3_MIN MUST be encoded by placing that length
 63  *    in the h_type field. The LLC field follo     63  *    in the h_type field. The LLC field follows header immediately.
 64  * 3. LLC data frames longer than this maximum     64  * 3. LLC data frames longer than this maximum MUST be encoded by placing
 65  *    the value 0 in the h_type field.             65  *    the value 0 in the h_type field.
 66  *                                                 66  *
 67  */                                                67  */
 68                                                    68 
 69 /* Hash table size */                              69 /* Hash table size */
 70 #define LEC_ARP_TABLE_SIZE 16                      70 #define LEC_ARP_TABLE_SIZE 16
 71                                                    71 
 72 struct lec_priv {                                  72 struct lec_priv {
 73         unsigned short lecid;                      73         unsigned short lecid;                   /* Lecid of this client */
 74         struct hlist_head lec_arp_empty_ones;      74         struct hlist_head lec_arp_empty_ones;
 75                                                    75                                                 /* Used for storing VCC's that don't have a MAC address attached yet */
 76         struct hlist_head lec_arp_tables[LEC_A     76         struct hlist_head lec_arp_tables[LEC_ARP_TABLE_SIZE];
 77                                                    77                                                 /* Actual LE ARP table */
 78         struct hlist_head lec_no_forward;          78         struct hlist_head lec_no_forward;
 79                                                    79                                                 /*
 80                                                    80                                                  * Used for storing VCC's (and forward packets from) which are to
 81                                                    81                                                  * age out by not using them to forward packets.
 82                                                    82                                                  * This is because to some LE clients there will be 2 VCCs. Only
 83                                                    83                                                  * one of them gets used.
 84                                                    84                                                  */
 85         struct hlist_head mcast_fwds;              85         struct hlist_head mcast_fwds;
 86                                                    86                                                 /*
 87                                                    87                                                  * With LANEv2 it is possible that BUS (or a special multicast server)
 88                                                    88                                                  * establishes multiple Multicast Forward VCCs to us. This list
 89                                                    89                                                  * collects all those VCCs. LANEv1 client has only one item in this
 90                                                    90                                                  * list. These entries are not aged out.
 91                                                    91                                                  */
 92         spinlock_t lec_arp_lock;                   92         spinlock_t lec_arp_lock;
 93         struct atm_vcc *mcast_vcc;                 93         struct atm_vcc *mcast_vcc;              /* Default Multicast Send VCC */
 94         struct atm_vcc *lecd;                      94         struct atm_vcc *lecd;
 95         struct delayed_work lec_arp_work;          95         struct delayed_work lec_arp_work;       /* C10 */
 96         unsigned int maximum_unknown_frame_cou     96         unsigned int maximum_unknown_frame_count;
 97                                                    97                                                 /*
 98                                                    98                                                  * Within the period of time defined by this variable, the client will send
 99                                                    99                                                  * no more than C10 frames to BUS for a given unicast destination. (C11)
100                                                   100                                                  */
101         unsigned long max_unknown_frame_time;     101         unsigned long max_unknown_frame_time;
102                                                   102                                                 /*
103                                                   103                                                  * If no traffic has been sent in this vcc for this period of time,
104                                                   104                                                  * vcc will be torn down (C12)
105                                                   105                                                  */
106         unsigned long vcc_timeout_period;         106         unsigned long vcc_timeout_period;
107                                                   107                                                 /*
108                                                   108                                                  * An LE Client MUST not retry an LE_ARP_REQUEST for a
109                                                   109                                                  * given frame's LAN Destination more than maximum retry count times,
110                                                   110                                                  * after the first LEC_ARP_REQUEST (C13)
111                                                   111                                                  */
112         unsigned short max_retry_count;           112         unsigned short max_retry_count;
113                                                   113                                                 /*
114                                                   114                                                  * Max time the client will maintain an entry in its arp cache in
115                                                   115                                                  * absence of a verification of that relationship (C17)
116                                                   116                                                  */
117         unsigned long aging_time;                 117         unsigned long aging_time;
118                                                   118                                                 /*
119                                                   119                                                  * Max time the client will maintain an entry in cache when
120                                                   120                                                  * topology change flag is true (C18)
121                                                   121                                                  */
122         unsigned long forward_delay_time;         122         unsigned long forward_delay_time;       /* Topology change flag (C19) */
123         int topology_change;                      123         int topology_change;
124                                                   124                                                 /*
125                                                   125                                                  * Max time the client expects an LE_ARP_REQUEST/LE_ARP_RESPONSE
126                                                   126                                                  * cycle to take (C20)
127                                                   127                                                  */
128         unsigned long arp_response_time;          128         unsigned long arp_response_time;
129                                                   129                                                 /*
130                                                   130                                                  * Time limit ot wait to receive an LE_FLUSH_RESPONSE after the
131                                                   131                                                  * LE_FLUSH_REQUEST has been sent before taking recover action. (C21)
132                                                   132                                                  */
133         unsigned long flush_timeout;              133         unsigned long flush_timeout;
134                                                   134                                                 /* The time since sending a frame to the bus after which the
135                                                   135                                                  * LE Client may assume that the frame has been either discarded or
136                                                   136                                                  * delivered to the recipient (C22)
137                                                   137                                                  */
138         unsigned long path_switching_delay;       138         unsigned long path_switching_delay;
139                                                   139 
140         u8 *tlvs;                                 140         u8 *tlvs;                               /* LANE2: TLVs are new */
141         u32 sizeoftlvs;                           141         u32 sizeoftlvs;                         /* The size of the tlv array in bytes */
142         int lane_version;                         142         int lane_version;                       /* LANE2 */
143         int itfnum;                               143         int itfnum;                             /* e.g. 2 for lec2, 5 for lec5 */
144         struct lane2_ops *lane2_ops;              144         struct lane2_ops *lane2_ops;            /* can be NULL for LANE v1 */
145         int is_proxy;                             145         int is_proxy;                           /* bridge between ATM and Ethernet */
146 };                                                146 };
147                                                   147 
148 struct lec_vcc_priv {                             148 struct lec_vcc_priv {
149         void (*old_pop) (struct atm_vcc *vcc,     149         void (*old_pop) (struct atm_vcc *vcc, struct sk_buff *skb);
150         int xoff;                                 150         int xoff;
151 };                                                151 };
152                                                   152 
153 #define LEC_VCC_PRIV(vcc)       ((struct lec_v    153 #define LEC_VCC_PRIV(vcc)       ((struct lec_vcc_priv *)((vcc)->user_back))
154                                                   154 
155 #endif                          /* _LEC_H_ */     155 #endif                          /* _LEC_H_ */
156                                                   156 

~ [ 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