[dpdk-dev] [PATCH v8 1/2] app/testpmd: fix max rx packet length for VLAN packets

Lance Richardson lance.richardson at broadcom.com
Thu Nov 5 17:23:39 CET 2020


> First the code cause problem in the driver looks in another place, following in
> 'bnxt_mtu_set_op()':
>
>            if (new_mtu > RTE_ETHER_MTU) {
>                    bp->flags |= BNXT_FLAG_JUMBO;
>                    bp->eth_dev->data->dev_conf.rxmode.offloads |=
>                            DEV_RX_OFFLOAD_JUMBO_FRAME;
>            } else {
>                    bp->eth_dev->data->dev_conf.rxmode.offloads &=
>                            ~DEV_RX_OFFLOAD_JUMBO_FRAME;
>                    bp->flags &= ~BNXT_FLAG_JUMBO;
>            }
>

You're correct, the issue in this case is definitely in bnxt_mtu_set_op(),
not the similar code that is executed for the start op.

+1 to the idea of removing DEV_RX_OFFLOAD_JUMBO_FRAME.


More information about the dev mailing list