6b13f685e
김민수
BSP 최초 추가
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
|
#ifndef _LEC_H_
#define _LEC_H_
#include <linux/atmdev.h>
#include <linux/netdevice.h>
#include <linux/atmlec.h>
#define LEC_HEADER_LEN 16
struct lecdatahdr_8023 {
__be16 le_header;
unsigned char h_dest[ETH_ALEN];
unsigned char h_source[ETH_ALEN];
__be16 h_type;
};
struct lecdatahdr_8025 {
__be16 le_header;
unsigned char ac_pad;
unsigned char fc;
unsigned char h_dest[ETH_ALEN];
unsigned char h_source[ETH_ALEN];
};
#define LEC_MINIMUM_8023_SIZE 62
#define LEC_MINIMUM_8025_SIZE 16
struct lane2_ops {
int (*resolve) (struct net_device *dev, const u8 *dst_mac, int force,
u8 **tlvs, u32 *sizeoftlvs);
int (*associate_req) (struct net_device *dev, const u8 *lan_dst,
const u8 *tlvs, u32 sizeoftlvs);
void (*associate_indicator) (struct net_device *dev, const u8 *mac_addr,
const u8 *tlvs, u32 sizeoftlvs);
};
#define LEC_ARP_TABLE_SIZE 16
struct lec_priv {
unsigned short lecid;
struct hlist_head lec_arp_empty_ones;
struct hlist_head lec_arp_tables[LEC_ARP_TABLE_SIZE];
struct hlist_head lec_no_forward;
struct hlist_head mcast_fwds;
spinlock_t lec_arp_lock;
struct atm_vcc *mcast_vcc;
struct atm_vcc *lecd;
struct delayed_work lec_arp_work;
unsigned int maximum_unknown_frame_count;
unsigned long max_unknown_frame_time;
unsigned long vcc_timeout_period;
unsigned short max_retry_count;
unsigned long aging_time;
unsigned long forward_delay_time;
int topology_change;
unsigned long arp_response_time;
unsigned long flush_timeout;
unsigned long path_switching_delay;
u8 *tlvs;
u32 sizeoftlvs;
int lane_version;
int itfnum;
struct lane2_ops *lane2_ops;
int is_proxy;
};
struct lec_vcc_priv {
void (*old_pop) (struct atm_vcc *vcc, struct sk_buff *skb);
int xoff;
};
#define LEC_VCC_PRIV(vcc) ((struct lec_vcc_priv *)((vcc)->user_back))
#endif /* _LEC_H_ */
|