# Re: \[PATCH v3 06/11\] net: phylink: Add some helpers for working with mac caps

- From: Vladimir Oltean \<olteanv@gmail.com\>
- Date: 2022-07-25 15:41:39 
- List: netdev
- Page: https://ratatoskr.run/netdev/2022/07/1871667
- Thread: https://ratatoskr.run/netdev/2022/07/1871654/t.md

```text
On Mon, Jul 25, 2022 at 11:37:24AM -0400, Sean Anderson wrote:
> This adds a table for converting between speed/duplex and mac
> capabilities. It also adds a helper for getting the max speed/duplex
> from some caps. It is intended to be used by Russell King's DSA phylink
> series. The table will be used directly later in this series.
> 
> Co-developed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
> Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
> Co-developed-by: Russell King (Oracle) <redacted>
> Signed-off-by: Russell King (Oracle) <redacted>
> [ adapted to live in phylink.c ]
> Signed-off-by: Sean Anderson <redacted>
> ---
> This is adapted from [1].
> 
> [1] https://lore.kernel.org/netdev/E1oCNlE-006e3z-3T@rmk-PC.armlinux.org.uk/

I did not write even one line of code from this patch, please drop my
name from the next revision when there will be one.
```
