Skip to contentSkip to conversation

net: ethernet: mediatek: add dts configuration to enable HW LRO

PATCH Nelson Chang 1 participant 1 message Sep 14, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

(resend)

The description of the property as you said is more precise. The property is a capability if the hardware supports LRO. I'll rephrase the property description in v2.

Thanks Florian!

-----Original Message-----
From: Florian Fainelli [mailto:[email protected]]
Sent: Wednesday, September 14, 2016 2:25 AM
To: Nelson Chang (張家祥); [email protected]; [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH net-next 3/3] net: ethernet: mediatek: add dts configuration to enable HW LRO

Quoted 14 lines · Nelson Chang

Add the configuration of HW LRO in the binding document.

---
 Documentation/devicetree/bindings/net/mediatek-net.txt | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/net/mediatek-net.txt +0 -0
index 32eaaca..f43c0d1 100644
@@ -20,6 +20,7 @@ Required properties:
 - mediatek,ethsys: phandle to the syscon node that handles the port 
Quoted 2 lines

setup
- mediatek,pctl: phandle to the syscon node that handles the ports

slew rate

Quoted 2 lines

and driver current
+- mediatek,hwlro: set to enable HW LRO functions of PDMA rx rings

That sounds like implementing a enable/disable policy in the Device Tree as opposed to providing an indication as to whether the HW supports LRO or not. If all versions of the hardware support LRO, then you would rather let the users change NETIF_F_LRO using ethtool features instead of having this be defined in the Device Tree.

If, on the other hand, not all version of the HW support LRO, then you would just want to rephrase the property description to say this describes a capability.