1. 25 Sep, 2019 1 commit
  2. 22 Sep, 2019 1 commit
    • Arnd Bergmann's avatar
      net: stmmac: selftest: avoid large stack usage · b6b6cc9a
      Arnd Bergmann authored
      Putting a struct stmmac_rss object on the stack is a bad idea,
      as it exceeds the warning limit for a stack frame on 32-bit architectures:
      drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1221:12: error: stack frame size of 1208 bytes in function '__stmmac_test_l3filt' [-Werror,-Wframe-larger-than=]
      drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1338:12: error: stack frame size of 1208 bytes in function '__stmmac_test_l4filt' [-Werror,-Wframe-larger-than=]
      As the object is the trivial empty case, change the called function
      to accept a NULL pointer to mean the same thing and remove the
      large variable in the two callers.
      Fixes: 4647e021
       ("net: stmmac: selftests: Add selftest for L3/L4 Filters")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarJose Abreu <joabreu@synopsys.com>
      Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
  3. 07 Sep, 2019 3 commits
  4. 05 Sep, 2019 4 commits
  5. 17 Aug, 2019 2 commits
  6. 09 Aug, 2019 3 commits
  7. 30 May, 2019 2 commits
  8. 24 May, 2019 1 commit
    • Jose Abreu's avatar
      net: stmmac: Introduce selftests support · 091810db
      Jose Abreu authored
      We add support for selftests on stmmac driver with 9 basic sanity checks
      for now:
      	- MAC Loopback
      	- PHY Loopback
      	- MMC Counters
      	- EEE
      	- Hash Filter Multicast
      	- Perfect Filter Unicast
      	- Multicast Filter All
      	- Unicast Filter All
      	- Flow Control
      This allows for fast tracking of regressions in the driver and helps in
      spotting mis-configuration of HW.
      Changes from v1:
      	- Fix build error as module (David)
      	- Check for link status before running tests
      Changes from RFC v2:
      	- Return proper error code in stmmac_test_mmc (Corentin)
      	- Use only 1 MMC counter in stmmac_test_mmc (Alexandre)
      Changes from RFC v1:
      	- Change test_loopback to test_mac_loopback (Andrew)
      	- Change timeout to retries (Andrew)
      	- Add MC/UC filter tests (Andrew)
      	- Only test in offline mode (Andrew)
      	- Do not call phy_loopback twice (Alexandre)
      Signed-off-by: default avatarJose Abreu <joabreu@synopsys.com>
      Cc: Joao Pinto <jpinto@synopsys.com>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
      Cc: Alexandre Torgue <alexandre.torgue@st.com>
      Cc: Corentin Labbe <clabbe.montjoie@gmail.com>
      Cc: Andrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>