Merge branch 'am65-cpsw-ethtool-mac-stats'
authorDavid S. Miller <davem@davemloft.net>
Sun, 19 Nov 2023 19:46:40 +0000 (19:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Nov 2023 19:46:40 +0000 (19:46 +0000)
commit69d5ee8c1291c3e45ef12d531f28907bfbdbd9da
treea17804ae22b65155f935196e42bcdc13b24a903f
parentac40916a3f7243efbe6e129ebf495b5c33a3adfe
parentebd7bf60e21c567a7fbe0e2a7bc4be8406ff8093
Merge branch 'am65-cpsw-ethtool-mac-stats'

Roger Quadros says:

===================
net: eth: am65-cpsw: add ethtool MAC stats

Gets 'ethtool -S eth0 --groups eth-mac' command to work.

Also set default TX channels to maximum available and does
cleanup in am65_cpsw_nuss_common_open() error path.

Changelog:
v2:
- add __iomem to *stats, to prevent sparse warning
- clean up RX descriptors and free up SKB in error handling of
  am65_cpsw_nuss_common_open()
- Re-arrange some funcitons to avoid forward declaration
====================

Signed-off-by: David S. Miller <davem@davemloft.net>