From: Ravi Kumar Date: Wed, 2 May 2018 08:47:24 +0000 (-0400) Subject: net/axgbe: fix jumbo setting overwritten X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=95b08d94ee4bc4e58687b5fb1fa7807b48343dd0;p=dpdk.git net/axgbe: fix jumbo setting overwritten Stored register value to enable jumbo frame was always overwritten. Assigning value based on rx_buf_size. Coverity issue: 277239 Fixes: 7c4158a5b592 ("net/axgbe: add DMA programming and start/stop") Signed-off-by: Ravi Kumar --- diff --git a/drivers/net/axgbe/axgbe_dev.c b/drivers/net/axgbe/axgbe_dev.c index d05f9c8ec8..707f1ee9d5 100644 --- a/drivers/net/axgbe/axgbe_dev.c +++ b/drivers/net/axgbe/axgbe_dev.c @@ -1019,7 +1019,6 @@ static void axgbe_config_jumbo_enable(struct axgbe_port *pdata) unsigned int val; val = (pdata->rx_buf_size > AXGMAC_STD_PACKET_MTU) ? 1 : 0; - val = 1; AXGMAC_IOWRITE_BITS(pdata, MAC_RCR, JE, val); }