summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarian Rotariu <marian.rotariu@freescale.com>2014-05-05 10:59:43 (GMT)
committerJose Rivera <German.Rivera@freescale.com>2014-05-12 15:00:56 (GMT)
commit90a10eadd810121e9a4dca811b9ca232937e9ff2 (patch)
tree7a1e2486a8663ffc39abd697ee1e88d4598e4c35
parentf663fb7bf50ecbc5378a999f8cb31c11f98fd91b (diff)
downloadlinux-fsl-qoriq-90a10eadd810121e9a4dca811b9ca232937e9ff2.tar.xz
onic: fix MTU handling
The MTU known by the network device driver was initialized with a default value (1500) and could not be validated in accordance with DPAA values. This patch initializes the MTU with proper values and adds the posibility to be changed and validated at run-time. Signed-off-by: Marian Rotariu <marian.rotariu@freescale.com> Change-Id: I44b9a9e18dbb45669e16913f0f5bdc290ec3e6b2 Reviewed-on: http://git.am.freescale.net:8181/11833 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
-rw-r--r--drivers/net/ethernet/freescale/dpa/dpaa_eth_generic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth_generic.c b/drivers/net/ethernet/freescale/dpa/dpaa_eth_generic.c
index 456c856..534b283 100644
--- a/drivers/net/ethernet/freescale/dpa/dpaa_eth_generic.c
+++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth_generic.c
@@ -100,6 +100,8 @@ static const struct net_device_ops dpa_generic_ops = {
.ndo_init = dpa_ndo_init,
.ndo_set_features = dpa_set_features,
.ndo_fix_features = dpa_fix_features,
+ .ndo_init = dpa_ndo_init,
+ .ndo_change_mtu = dpa_change_mtu,
};
struct rtnl_link_stats64 *__cold