aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2018-10-30 06:34:25 -0700
committerDave Barach <openvpp@barachs.net>2018-10-30 19:45:55 +0000
commit1bce5a92087fc0caffe7723d2f2de7f1bf296046 (patch)
treed8fdbb6462c70661efd40bede66d74e617a127a9 /src
parent5e36c3cd6b74d0b6adf483934eebbf50f5f570b2 (diff)
ADJ: init MTU to interface default
Change-Id: Iaecf8c060e1337d8c362ad9a9be2bb9701664397 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/adj/adj_nbr.c2
-rw-r--r--src/vnet/adj/rewrite.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/vnet/adj/adj_nbr.c b/src/vnet/adj/adj_nbr.c
index ff535295b4b..2fced18e9a2 100644
--- a/src/vnet/adj/adj_nbr.c
+++ b/src/vnet/adj/adj_nbr.c
@@ -195,6 +195,8 @@ adj_nbr_alloc (fib_protocol_t nh_proto,
adj->ia_link = link_type;
adj->ia_nh_proto = nh_proto;
adj->rewrite_header.sw_if_index = sw_if_index;
+ vnet_rewrite_update_mtu(vnet_get_main(), adj->ia_link,
+ &adj->rewrite_header);
adj_nbr_evaluate_feature (adj_get_index(adj));
return (adj);
diff --git a/src/vnet/adj/rewrite.c b/src/vnet/adj/rewrite.c
index 1a87793eb1c..975dc4ab817 100644
--- a/src/vnet/adj/rewrite.c
+++ b/src/vnet/adj/rewrite.c
@@ -166,7 +166,8 @@ vnet_rewrite_for_tunnel (vnet_main_t * vnm,
rw->sw_if_index = tx_sw_if_index;
rw->next_index = vlib_node_add_next (vnm->vlib_main, rewrite_node_index,
post_rewrite_node_index);
- rw->max_l3_packet_bytes = (u16) ~ 0; /* we can't know at this point */
+ /* we can't know at this point */
+ rw->max_l3_packet_bytes = (u16) ~ 0;
ASSERT (rewrite_length < sizeof (adj->rewrite_data));
/* Leave room for ethernet + VLAN tag */