998-lantiq-atm-hacks.patch 1.5 KB

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