summaryrefslogtreecommitdiff
path: root/lib/if.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@users.noreply.github.com>2020-05-19 13:29:00 -0400
committerGitHub <noreply@github.com>2020-05-19 13:29:00 -0400
commit55add95cd7353adec9b46e61b93172d2030a6faa (patch)
tree77ba9fd06936de116a542e8d12e7f3e3fdcfd174 /lib/if.c
parent3f2e6c01fa25b32dc3db74ea42f2c01440ba5db8 (diff)
parent5eb567edc8980ef8a9a70e12bdfce2d5b3b09374 (diff)
Merge pull request #6428 from volta-networks/fix_mpls_te_bw
lib: fix bandwidth multiplier for link param
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/if.c b/lib/if.c
index 5c0f5e61aa..a1e02f4f30 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -1274,7 +1274,7 @@ struct if_link_params *if_link_params_get(struct interface *ifp)
/* Compute default bandwidth based on interface */
iflp->default_bw =
((ifp->bandwidth ? ifp->bandwidth : DEFAULT_BANDWIDTH)
- * TE_KILO_BIT / TE_BYTE);
+ * TE_MEGA_BIT / TE_BYTE);
/* Set Max, Reservable and Unreserved Bandwidth */
iflp->max_bw = iflp->default_bw;