summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorOlivier Dugeon <olivier.dugeon@orange.com>2022-10-28 09:29:12 +0200
committerGitHub <noreply@github.com>2022-10-28 09:29:12 +0200
commitd36cd5663802d5cccf5725f61bcd362d4c9ba27f (patch)
tree1d090d589fa27739cbcc59c306bd62748025b85e /lib
parent70bf68c7b05275ada16f1c2033267fac3cb314d6 (diff)
parent4b8daf6b819f73f89956931039030363a99dfa92 (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.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/if.h b/lib/if.h
index 478a90d63a..91dcd46247 100644
--- a/lib/if.h
+++ b/lib/if.h
@@ -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