| From: |
| Florian Fainelli <florian.fainelli-AT-broadcom.com> |
| To: |
| netdev-AT-vger.kernel.org |
| Subject: |
| [PATCH net-next 0/5] WAKE_FILTER for Broadcom PHY (v2) |
| Date: |
| Wed, 25 Oct 2023 10:32:55 -0700 |
| Message-ID: |
| <20231025173300.1776832-1-florian.fainelli@broadcom.com> |
| Cc: |
| Florian Fainelli <florian.fainelli-AT-broadcom.com>, Doug Berger <opendmb-AT-gmail.com>, Broadcom internal kernel review list <bcm-kernel-feedback-list-AT-broadcom.com>, "David S. Miller" <davem-AT-davemloft.net>, Eric Dumazet <edumazet-AT-google.com>, Jakub Kicinski <kuba-AT-kernel.org>, Paolo Abeni <pabeni-AT-redhat.com>, Andrew Lunn <andrew-AT-lunn.ch>, Heiner Kallweit <hkallweit1-AT-gmail.com>, Russell King <linux-AT-armlinux.org.uk>, Vladimir Oltean <vladimir.oltean-AT-nxp.com>, Tariq Toukan <tariqt-AT-nvidia.com>, Gal Pressman <gal-AT-nvidia.com>, Willem de Bruijn <willemb-AT-google.com>, Daniil Tatianin <d-tatianin-AT-yandex-team.ru>, Simon Horman <horms-AT-kernel.org>, Justin Chen <justin.chen-AT-broadcom.com>, Ratheesh Kannoth <rkannoth-AT-marvell.com>, Joe Damato <jdamato-AT-fastly.com>, Vincent Mailhol <mailhol.vincent-AT-wanadoo.fr>, Jiri Pirko <jiri-AT-resnulli.us>, linux-kernel-AT-vger.kernel.org (open list) |
| Archive-link: |
| Article |
This is a re-submission of the series that was submitted before:
https://lore.kernel.org/all/20230516231713.2882879-1-flor...
A number of things have changed:
- there is proper fallback between the PHY and the MAC now, whereas
before we would abort right away due to -EOPNOTSUPP
- added support for programming the Ethernet type for matching
- fixed reporting of masks via ethtool
- added proper validation of RX_CLS_LOC_ANY/RX_CLS_LOC_FIRST and
location
- addressed feedback given by Andrew by validating that we have at least
one RX_CLS_FLOW_WAKE filter programmed to allow enabling WAKE_FILTER
via ethtool, otherwise we will not wake-up from WAKE_FILTER
- use a PHY register as a scratchpad to accurately report whether a
custom filter was installed, before that we would falsely report
WAKE_UCAST/BCAST/MCAST but not WAKE_FILTER upon cold boot
- corrected commit message to be accurate (MAC address did not match the
IPv4 address in the example)
Florian Fainelli (5):
net: ethtool: Make RXNFC walking code accept a callback
net: ethtool: Add validation for WAKE_FILTER
net: phy: Add pluming for ethtool_{get,set}_rxnfc
net: phy: broadcom: Add support for WAKE_FILTER
net: bcmgenet: Interrogate PHY for WAKE_FILTER programming
.../net/ethernet/broadcom/genet/bcmgenet.c | 16 ++
drivers/net/phy/bcm-phy-lib.c | 205 +++++++++++++++++-
drivers/net/phy/bcm-phy-lib.h | 5 +
drivers/net/phy/broadcom.c | 2 +
drivers/net/phy/phy.c | 19 ++
include/linux/phy.h | 8 +
net/ethtool/common.c | 96 +++++++-
net/ethtool/common.h | 3 +
net/ethtool/ioctl.c | 3 +
net/ethtool/wol.c | 3 +
10 files changed, 350 insertions(+), 10 deletions(-)
--
2.34.1