lkml.org 
[lkml]   [2021]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH net-next 0/3] net: add support for an offset of a nvmem provided MAC address
Date
Boards with multiple ethernet ports might store their MAC addresses not
individually per port but just store one base MAC address. To get the
MAC address of a specific network port we have to add an offset.

This series adds a new device tree property "nvmem-mac-address-offset".

Michael Walle (3):
dt-bindings: net: add nvmem-mac-address-offset property
net: add helper eth_addr_add()
net: implement nvmem-mac-address-offset DT property

.../bindings/net/ethernet-controller.yaml | 6 ++++++
drivers/of/of_net.c | 4 ++++
include/linux/etherdevice.h | 14 ++++++++++++++
net/ethernet/eth.c | 5 +++++
4 files changed, 29 insertions(+)

--
2.20.1

\
 
 \ /
  Last update: 2021-04-14 17:28    [W:0.627 / U:1.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site