OSDN Git Service

net: add helper eth_hw_addr_crc
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 4 May 2020 17:27:00 +0000 (19:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 May 2020 18:19:58 +0000 (11:19 -0700)
commitb86cd700edd3bfe27f631649727b7796067bb3fd
tree2028744da8ab5a83af51cde011c3acec1ac0e5d4
parente90c9fcedc087c8ba1d34da88381838ed68bfb1c
net: add helper eth_hw_addr_crc

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.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/etherdevice.h