Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
; Refer to default.ini for the full list of available PMD features.
;
[Features]
+Jumbo frame = Y
MTU update = Y
ARMv8 = Y
Usage doc = Y
if (mtu < ETHER_MIN_MTU)
return -EINVAL;
if (mtu > ETHER_MAX_LEN)
- return -1;
+ dev->data->dev_conf.rxmode.jumbo_frame = 1;
+ else
+ dev->data->dev_conf.rxmode.jumbo_frame = 0;
- dev->data->dev_conf.rxmode.jumbo_frame = 0;
dev->data->dev_conf.rxmode.max_rx_pkt_len = mtu;
fman_if_set_maxfrm(dpaa_intf->fif, mtu);
{
PMD_INIT_FUNC_TRACE();
+ if (dev->data->dev_conf.rxmode.jumbo_frame == 1) {
+ if (dev->data->dev_conf.rxmode.max_rx_pkt_len <=
+ DPAA_MAX_RX_PKT_LEN)
+ return dpaa_mtu_set(dev,
+ dev->data->dev_conf.rxmode.max_rx_pkt_len);
+ else
+ return -1;
+ }
return 0;
}