[dpdk-dev] [PATCH 2/2] net/memif: fix driver init with default MTU
Stephen Hemminger
stephen at networkplumber.org
Tue Oct 26 22:47:24 CEST 2021
On Tue, 26 Oct 2021 16:38:01 +0100
Ferruh Yigit <ferruh.yigit at intel.com> wrote:
> diff --git a/drivers/net/memif/rte_eth_memif.c b/drivers/net/memif/rte_eth_memif.c
> index 8cec493ffdb9..cbc99067c1c8 100644
> --- a/drivers/net/memif/rte_eth_memif.c
> +++ b/drivers/net/memif/rte_eth_memif.c
> @@ -195,7 +195,7 @@ static int
> memif_dev_info(struct rte_eth_dev *dev __rte_unused, struct rte_eth_dev_info *dev_info)
> {
> dev_info->max_mac_addrs = 1;
> - dev_info->max_rx_pktlen = (uint32_t)ETH_FRAME_LEN;
> + dev_info->max_rx_pktlen = (uint32_t)RTE_ETHER_MAX_LEN;
The cast is not necessary here. Not sure why the original code had it?
More information about the dev
mailing list