mbox series

[net-next,0/2] net: add helper eth_hw_addr_crc

Message ID 329df165-a6a3-3c3b-cbb3-ea77ce2ea672@gmail.com
Headers show
Series net: add helper eth_hw_addr_crc | expand

Message

Heiner Kallweit May 4, 2020, 5:25 p.m. UTC
Several drivers use the same code as basis for filter hashes. Therefore
let's factor it out to a helper. This way drivers don't have to access
struct netdev_hw_addr internals.

First user is r8169.

Heiner Kallweit (2):
  net: add helper eth_hw_addr_crc
  r8169: use new helper eth_hw_addr_crc

 drivers/net/ethernet/realtek/r8169_main.c |  3 +--
 include/linux/etherdevice.h               | 12 ++++++++++++
 2 files changed, 13 insertions(+), 2 deletions(-)