aboutsummaryrefslogtreecommitdiffstats
path: root/examples/l4fwd/port.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/l4fwd/port.h')
-rw-r--r--examples/l4fwd/port.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/l4fwd/port.h b/examples/l4fwd/port.h
index ce730dd..2c84e3e 100644
--- a/examples/l4fwd/port.h
+++ b/examples/l4fwd/port.h
@@ -182,9 +182,7 @@ port_init(struct netbe_port *uprt, uint32_t proto)
__func__, uprt->id);
port_conf.rxmode.offloads |= uprt->rx_offload & RX_CSUM_OFFLOAD;
}
- port_conf.rxmode.max_rx_pkt_len = uprt->mtu + RTE_ETHER_CRC_LEN;
- if (port_conf.rxmode.max_rx_pkt_len > RTE_ETHER_MAX_LEN)
- port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_JUMBO_FRAME;
+ port_conf.rxmode.mtu = uprt->mtu - RTE_ETHER_HDR_LEN;
rc = update_rss_conf(uprt, &dev_info, &port_conf, proto);
if (rc != 0)