projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
octeontx2-pf: Fix otx2_get_fecparam()
[linux-2.6-microblaze.git]
/
drivers
/
net
/
ethernet
/
marvell
/
octeontx2
/
nic
/
otx2_ethtool.c
diff --git
a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c
b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c
index
5fe7403
..
f4962a9
100644
(file)
--- a/
drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c
+++ b/
drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c
@@
-968,7
+968,7
@@
static int otx2_get_fecparam(struct net_device *netdev,
if (!rsp->fwdata.supported_fec)
fecparam->fec = ETHTOOL_FEC_NONE;
else
- fecparam->fec = fec[rsp->fwdata.supported_fec
- 1
];
+ fecparam->fec = fec[rsp->fwdata.supported_fec];
}
return 0;
}