]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'eth_hw_addr_gen-for-switches'
authorDavid S. Miller <davem@davemloft.net>
Tue, 19 Oct 2021 11:46:25 +0000 (12:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Oct 2021 11:46:25 +0000 (12:46 +0100)
commit21fbc3ef616935712f0a48e4f1771c0551ab456c
tree6245a606738a864d83b1175b7458d0a6dce61844
parenta4b2d2471fc07e9e6484b680044ffdacbf3eda0f
parentb402b15eea09dc0611123f25f467fc08b46465b1
Merge branch 'eth_hw_addr_gen-for-switches'

Jakub Kicinski says:

====================
ethernet: add eth_hw_addr_gen() for switches

While doing the last polishing of the drivers/ethernet
changes I realized we have a handful of drivers offsetting
some base MAC addr by an id. So I decided to add a helper
for it. The helper takes care of wrapping which is probably
not 100% necessary but seems like a good idea. And it saves
driver side LoC (the diffstat is actually negative if we
compare against the changes I'd have to make if I was to
convert all these drivers to not operate directly on
netdev->dev_addr).
====================

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