diff options
| author | Olivier Dugeon <olivier.dugeon@orange.com> | 2022-10-28 09:29:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-28 09:29:12 +0200 |
| commit | d36cd5663802d5cccf5725f61bcd362d4c9ba27f (patch) | |
| tree | 1d090d589fa27739cbcc59c306bd62748025b85e /lib | |
| parent | 70bf68c7b05275ada16f1c2033267fac3cb314d6 (diff) | |
| parent | 4b8daf6b819f73f89956931039030363a99dfa92 (diff) | |
Merge pull request #12154 from louis-6wind/fix-te-default-bandwidth
lib: fix the default TE bandwidth
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/if.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -143,9 +143,13 @@ struct if_stats { #define TE_EXT_MASK 0x0FFFFFFF #define TE_EXT_ANORMAL 0x80000000 #define LOSS_PRECISION 0.000003 +/* TE_MEGA_BIT and TE_BYTE are utilized to convert TE bandwidth */ #define TE_MEGA_BIT 1000000 #define TE_BYTE 8 -#define DEFAULT_BANDWIDTH 10000 +/* Default TE bandwidth when no value in config. + * The value is in Mbps (will be multiplied by TE_BYTE) + */ +#define DEFAULT_BANDWIDTH 10 #define MAX_CLASS_TYPE 8 #define MAX_PKT_LOSS 50.331642 |
