Message ID | cover.1568126224.git.joabreu@synopsys.com (mailing list archive) |
---|---|
Headers | show |
Series | net: stmmac: Improvements for -next | expand |
From: Jose Abreu <joabreu@synopsys.com> Date: Sep/10/2019, 15:41:21 (UTC+00:00) > Misc patches for -next. It includes: > - Two fixes for features in -next only > - New features support for GMAC cores (which includes GMAC4 and GMAC5) BTW, just for reference (and because I forgot to attach it earlier), this is the selftests output for GMAC5.10 after this patchset: # ethtool -t ens4 The test result is PASS The test extra info: 1. MAC Loopback 0 2. PHY Loopback 0 3. MMC Counters 0 4. EEE -95 5. Hash Filter MC 0 6. Perfect Filter UC 0 7. MC Filter 0 8. UC Filter 0 9. Flow Control 0 10. RSS -95 11. VLAN Filtering 0 12. Double VLAN Filtering 0 13. Flexible RX Parser 0 14. SA Insertion (desc) 0 15. SA Replacement (desc) 0 16. SA Insertion (reg) 0 17. SA Replacement (reg) 0 18. VLAN TX Insertion 0 19. SVLAN TX Insertion 0 20. L3 DA Filtering -95 21. L3 SA Filtering -95 22. L4 DA TCP Filtering -95 23. L4 SA TCP Filtering -95 24. L4 DA UDP Filtering -95 25. L4 SA UDP Filtering -95 26. ARP Offload 0 27. Jumbo Frame 0 28. Multichannel Jumbo 0 29. Split Header -95 --- Thanks, Jose Miguel Abreu
On Tue, 10 Sep 2019 16:41:21 +0200 Jose wrote: > Misc patches for -next. It includes: > - Two fixes for features in -next only > - New features support for GMAC cores (which includes GMAC4 and GMAC5) > > --- > Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com> > Cc: Alexandre Torgue <alexandre.torgue@st.com> > Cc: Jose Abreu <joabreu@synopsys.com> > Cc: "David S. Miller" <davem@davemloft.net> > Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com> > Cc: netdev@vger.kernel.org > Cc: linux-stm32@st-md-mailman.stormreply.com > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-kernel@vger.kernel.org > --- > > Jose Abreu (6): > net: stmmac: Prevent divide-by-zero > net: stmmac: Add VLAN HASH filtering support in GMAC4+ > net: stmmac: xgmac: Reinitialize correctly a variable > net: stmmac: Add support for SA Insertion/Replacement in GMAC4+ > net: stmmac: Add support for VLAN Insertion Offload in GMAC4+ > net: stmmac: ARP Offload for GMAC4+ Cores For the series, looks good to me. Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
From: Jose Abreu <Jose.Abreu@synopsys.com> Date: Tue, 10 Sep 2019 16:41:21 +0200 > Misc patches for -next. It includes: > - Two fixes for features in -next only > - New features support for GMAC cores (which includes GMAC4 and GMAC5) Series applied, but what exactly does "ARP offload" even do?
From: David Miller <davem@davemloft.net> Date: Sep/11/2019, 09:21:55 (UTC+00:00) > From: Jose Abreu <Jose.Abreu@synopsys.com> > Date: Tue, 10 Sep 2019 16:41:21 +0200 > > > Misc patches for -next. It includes: > > - Two fixes for features in -next only > > - New features support for GMAC cores (which includes GMAC4 and GMAC5) > > Series applied, but what exactly does "ARP offload" even do? ARP Offload allows the IP to reply to ARP_REQUEST packets automatically without passing by the application. As net doesn't support this offloading I'm currently using this feature to test endianness issues in the IP and check if MAC Address is correctly configured, the logic is as follows: - MAC is set in loopback mode and ARP offload is activated - selftests create a dummy ARP_REQUEST packet and send it out - IP will detect the ARP_REQUEST packet and generate an ARP_REPLY packet - As MAC is in loopback mode then selftests will receive the ARP_REPLY packet - selftests logic will check if ARP_REPLY packet is correct (i.e. MAC address and packet type) This way if this test fails it probably indicates that MAC address of IP is not correctly configured or that endianness of the IP was changed from default setting (which is LE). By default the feature is off because user may not want to reply to ARP_REQUEST and I'm more using it as a diagnose facility. Let me know if you agree with this approach. --- Thanks, Jose Miguel Abreu