summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale/sdk_dpaa
AgeCommit message (Collapse)Author
2017-12-12net: ethernet: Rename PHY_INTERFACE_MODE_SGMII_2500Bhaskar Upadhaya
Rename PHY_INTERFACE_MODE_SGMII_2500 to PHY_INTERFACE_MODE_2500SGMII Convention is to put the number(2500) first and then the interface mode(SGMII) Signed-off-by: Bhaskar Upadhaya <Bhaskar.Upadhaya@nxp.com>
2017-12-12sdk_dpaa: ceetm: increment the interface's ern counters when neededCamelia Groza
Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
2017-12-12sdk_dpaa: ceetm: coding style fixes and added commentsCamelia Groza
Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
2017-12-12sdk_dpaa: ceetm: stop transmitting frames when the CQ is congestedCamelia Groza
When the egress CQ is congested, drop the frames instead of enqueueing them. This is more efficient than enqueueing and receiving them back on the ERN queue. We also can't stop the netdev queues because that would affect all the CQs and would hinder prioritization. Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
2017-12-12sdk_dpaa: ceetm: add independent CEETM congestion thresholdsCamelia Groza
Configure the CEETM egress congestion thresholds independently from the default Ethernet driver's Work Queues. Allow the user to edit the thresholds through menuconfig. Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
2017-12-12sdk_dpaa: ls1043a errata: stop advertising S/G and GSO supportCamelia Groza
The errata prevents us from transmitting S/G frames. Instead of linearizing them ourselves, stop advertising S/G support and have the stack do it for us. Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
2017-12-12Added MII IOCTL support for SIOCGMIIREGVicentiu Galanopulo
Signed-off-by: Vicentiu Galanopulo <vicentiu.galanopulo@nxp.com>
2017-12-12sdk: dpa: use netdev dev for DMA mappingMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
2017-12-12sdk_dpaa: accept frames on RX even if larger than MTUCamelia Groza
Documentation/networking/netdevices.txt mentions that interfaces must be able to receive frames at least the size of the configured MTU. The behavior for received frames larger than the MTU is unspecified. We have been dropping these frames in software. Remove this behavior and accept them. Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
2017-09-25sdk_dpaa: ls1043a errata: restrict the max mtuCamelia Groza
We can not allow for Jumbo frames and large MTU values on LS1043A due to the A-010022 FMan errata. All outgoing frames larger than 4K bytes are dropped. Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
2017-09-25sdk_dpaa: ls1043a errata: maintain timestamp infoCamelia Groza
When creating a new skb for the errata workaround, maintain the socket and timestamp configurations for timestamp hardware offloading. Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
2017-09-25sdk_dpaa: update the xmit timestamp to avoid watchdog timeoutsCamelia Groza
[dpaa part] Update txq0's trans_start in order to prevent the netdev watchdog from triggering too quickly. Since we set the LLTX flag, the stack won't update the jiffies for other tx queues. Prevent the watchdog from checking the other tx queues by adding the NETIF_HW_ACCEL_MQ flag. Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
2017-09-25dpaa_eth: ls1043a errata: check if the skb is linear after 4k splittingCamelia Groza
Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
2017-09-25sdk_dpaa: ls1043a errata: fix arm32 buildCamelia Groza
Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
2017-09-25sdk_dpaa: ls1043a errata: do not recycle the realigned buffersCamelia Groza
Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
2017-09-25sdk_dpaa: ls1043a errata: verify and resize headroom alignmentCamelia Groza
If the skb's headroom isn't aligned to 16 bytes, reallocate the entire skb and resize its headroom to priv->tx_headroom. Update the pointers to the network and transport headers accordingly. Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
2017-09-25sdk_dpaa: ls1043a errata: realign skb in place if neededCamelia Groza
Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
2017-09-25sdk_dpaa: ls1043a errata: realign and linearize egress skbsCamelia Groza
Allocate a new page and copy the skb's contents to it in order to guarantee that 4k boundary crossings do not occur. Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
2017-09-25sdk_dpaa: ls1043a errata: resplit the skb after copyCamelia Groza
Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
2017-09-25dpaa_eth: ceetm: update include paths for tc filtersCamelia Groza
The tcf_destroy_chain call prototype has been moved. Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
2017-09-25dpaa_eth: ceetm: adapt to the new gnet stats APICamelia Groza
Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
2017-09-25dpaa_eth: ceetm: adapt to net/sched API changesCamelia Groza
The tc_classify and tc_classify_compat calls have been merged. Adapt to the new API. Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
2017-09-25dpaa_eth: move global variable 'clock' into ptp_priv_s structYangbo Lu
This patch is to move global variable 'clock' for DPAA PTP clock pointer into ptp_priv_s struct. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2017-09-25dpaa_eth: use ptp-timer phandle instead of ptimer-handleYangbo Lu
Layerscape DPAA platforms have updated dts to use ptp-timer phandle instead of ptimer-handle for Fman RTC node. This patch is to update it in driver. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2017-09-25dpaa_eth: memac: set adjust_link callback for fixed link interfacesZhang Ying-22455
Signed-off-by: Camelia Groza camelia.groza@nxp.com
2017-09-25sdk_dpaa: avoid crashing on OOMMadalin Bucur
Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
2017-09-25dpa_eth: remove unused codeMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
2017-09-25dpa: SDK DPAA 1.x Ethernet driverMadalin Bucur
commit 3399e34ee929b3498b7ae53181e29c4000e2dfa7 [sdk_dpaa part] Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com> Integrated-by: Zhao Qiang <qiang.zhao@nxp.com>