summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/ethernet/interface.c4
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;