Huisong Li b8a67b10ee net/hns3: validate requested maximum Rx frame length
When jumbo frame is enabled, the MTU size needs to be modified
based on 'max_rx_pkt_len'. Driver needs to check the validity
of 'max_rx_pkt_len'. And it should be in the range of
HNS3_DEFAULT_FRAME_LEN and HNS3_MAX_FRAME_LEN. Otherwise, it may
cause that the MTU size is inconsistent with jumbo frame offload.

Fixes: 19a3ca4c99cf ("net/hns3: add start/stop and configure operations")
Cc: stable@dpdk.org

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
2021-02-04 18:19:37 +01:00
..
2021-02-04 18:19:37 +01:00
2021-02-04 18:19:37 +01:00
2020-11-03 23:35:07 +01:00
2021-02-04 18:19:37 +01:00
2020-10-16 19:48:19 +02:00
2021-02-04 18:19:37 +01:00
2021-02-04 18:19:37 +01:00
2021-01-19 03:30:32 +01:00