diff options
author | Neale Ranns <neale.ranns@cisco.com> | 2018-02-09 06:05:16 -0800 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2018-02-12 11:23:33 +0000 |
commit | ffd78d1ef8fe80d1b756a71d42d5eadda60ae996 (patch) | |
tree | 99770e8773a7c3dd27c8b9b116edb6a39ace09ea /src/vnet/adj/rewrite.h | |
parent | 2d6f66e1748be190664cbd72c826db32616d759a (diff) |
Improve MTU handling
- setting MTU on an interface updates the L3 max bytes too
- value cached in the adjacency is also updated
- MTU exceeded generates ICMP to sender
Change-Id: I343ec71d8e903b529594c4bd0543f04bc7f370b3
Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Diffstat (limited to 'src/vnet/adj/rewrite.h')
-rw-r--r-- | src/vnet/adj/rewrite.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/adj/rewrite.h b/src/vnet/adj/rewrite.h index 1dea72f5ed8..005ac41fe72 100644 --- a/src/vnet/adj/rewrite.h +++ b/src/vnet/adj/rewrite.h @@ -328,6 +328,9 @@ void vnet_rewrite_init (struct vnet_main_t *vnm, u32 this_node, u32 next_node, vnet_rewrite_header_t * rw); +void vnet_rewrite_update_mtu (struct vnet_main_t *vnm, + vnet_rewrite_header_t * rw); + u8 *vnet_build_rewrite_for_sw_interface (struct vnet_main_t *vnm, u32 sw_if_index, vnet_link_t packet_type, |