diff options
author | Matthew Smith <mgsmith@netgate.com> | 2022-03-23 22:11:32 +0000 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2022-03-29 15:12:21 +0000 |
commit | bf82a66de7653921e3c25ae444d372d2eddeee9f (patch) | |
tree | 6737ba94e3fa18ae4bc907ba2f1528cf7e68c7b1 /src/vnet | |
parent | 720820e64bf733fa0742fdf93da1e21b41db45c5 (diff) |
vnet: set frame overhead at interface registration
Type: fix
Fixes: 1cd0e5dd533f
In vnet_eth_register_interface(), max frame size was being used where
frame overhead was intended.
Change-Id: I6e6de25e2d616caaf35730ab3d15235ec679ebdd
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
Diffstat (limited to 'src/vnet')
-rw-r--r-- | src/vnet/ethernet/interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/ethernet/interface.c b/src/vnet/ethernet/interface.c index a0ad7989867..46d4203cda1 100644 --- a/src/vnet/ethernet/interface.c +++ b/src/vnet/ethernet/interface.c @@ -384,8 +384,8 @@ vnet_eth_register_interface (vnet_main_t *vnm, hi->min_frame_size = ETHERNET_MIN_PACKET_BYTES; hi->frame_overhead = r->frame_overhead ? - r->max_frame_size : - sizeof (ethernet_header_t) + 2 * sizeof (ethernet_vlan_header_t); + r->frame_overhead : + sizeof (ethernet_header_t) + 2 * sizeof (ethernet_vlan_header_t); hi->max_frame_size = r->max_frame_size ? r->max_frame_size : ethernet_main.default_mtu + hi->frame_overhead; |