diff options
| author | Russell King <[email protected]> | 2023-05-19 13:03:59 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2023-05-22 10:21:48 +0000 |
| commit | 4b159f5048b90844679dad08afb3240c1957aba1 (patch) | |
| tree | 51ccfbf4150eb0ed08c0ce77ef33c28591b0355d /net/ipv6/tcp_ipv6.c | |
| parent | net: altera: tse: remove mac_an_restart() function (diff) | |
| download | kernel-4b159f5048b90844679dad08afb3240c1957aba1.tar.gz kernel-4b159f5048b90844679dad08afb3240c1957aba1.zip | |
net: phy: add helpers for comparing phy IDs
There are several places which open code comparing PHY IDs. Provide a
couple of helpers to assist with this, using a slightly simpler test
than the original:
- phy_id_compare() compares two arbitary PHY IDs and a mask of the
significant bits in the ID.
- phydev_id_compare() compares the bound phydev with the specified
PHY ID, using the bound driver's mask.
Signed-off-by: Russell King <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
0 files changed, 0 insertions, 0 deletions
