On 10/26/2021 9:47 PM, Stephen Hemminger wrote:
On Tue, 26 Oct 2021 16:38:01 +0100
Ferruh Yigit <ferruh.yi...@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?


ack.

I will send a new version to remove the cast, since touching those lines.

Reply via email to