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(-) -- 2.26.2