git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d1daae
)
net/axgbe: fix jumbo setting overwritten
author
Ravi Kumar
<ravi1.kumar@amd.com>
Wed, 2 May 2018 08:47:24 +0000
(
04:47
-0400)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Wed, 2 May 2018 17:28:48 +0000
(19:28 +0200)
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 <ravi1.kumar@amd.com>
drivers/net/axgbe/axgbe_dev.c
patch
|
blob
|
history
diff --git
a/drivers/net/axgbe/axgbe_dev.c
b/drivers/net/axgbe/axgbe_dev.c
index
d05f9c8
..
707f1ee
100644
(file)
--- 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);
}