ipq40xx: switch default to 6.6
[openwrt/staging/pepe2k.git] / target / linux / ipq40xx / patches-6.1 / 998-lantiq-atm-hacks.patch
1 From: John Crispin <blogic@openwrt.org>
2 Date: Fri, 3 Aug 2012 10:27:25 +0200
3 Subject: [PATCH 04/36] MIPS: lantiq: add atm hack
4
5 Signed-off-by: John Crispin <blogic@openwrt.org>
6 --- a/include/uapi/linux/atm.h
7 +++ b/include/uapi/linux/atm.h
8 @@ -131,8 +131,14 @@
9 #define ATM_ABR 4
10 #define ATM_ANYCLASS 5 /* compatible with everything */
11
12 +#define ATM_VBR_NRT ATM_VBR
13 +#define ATM_VBR_RT 6
14 +#define ATM_UBR_PLUS 7
15 +#define ATM_GFR 8
16 +
17 #define ATM_MAX_PCR -1 /* maximum available PCR */
18
19 +
20 struct atm_trafprm {
21 unsigned char traffic_class; /* traffic class (ATM_UBR, ...) */
22 int max_pcr; /* maximum PCR in cells per second */
23 @@ -155,6 +161,9 @@ struct atm_trafprm {
24 unsigned int adtf :10; /* ACR Decrease Time Factor (10-bit) */
25 unsigned int cdf :3; /* Cutoff Decrease Factor (3-bit) */
26 unsigned int spare :9; /* spare bits */
27 + int scr; /* sustained rate in cells per second */
28 + int mbs; /* maximum burst size (MBS) in cells */
29 + int cdv; /* Cell delay variation */
30 };
31
32 struct atm_qos {
33 --- a/net/atm/proc.c
34 +++ b/net/atm/proc.c
35 @@ -141,7 +141,7 @@ static void *vcc_seq_next(struct seq_fil
36 static void pvc_info(struct seq_file *seq, struct atm_vcc *vcc)
37 {
38 static const char *const class_name[] = {
39 - "off", "UBR", "CBR", "VBR", "ABR"};
40 + "off","UBR","CBR","NTR-VBR","ABR","ANY","RT-VBR","UBR+","GFR"};
41 static const char *const aal_name[] = {
42 "---", "1", "2", "3/4", /* 0- 3 */
43 "???", "5", "???", "???", /* 4- 7 */