kni: update kernel API to set random MAC address
authorFerruh Yigit <ferruh.yigit@intel.com>
Wed, 3 Nov 2021 12:59:50 +0000 (12:59 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 8 Nov 2021 10:51:39 +0000 (11:51 +0100)
commite6cbfd9bf30bbc4170fe8c7c04a16d9cf795fb90
treeca163ae1c7bdd301603299f17a5f1161e0ab7a81
parentfda3750de619617a258da4281de7535b4bad7401
kni: update kernel API to set random MAC address

Previously used 'random_ether_addr()' API is removed in upstream kernel
with commit
Commit ba530fea8ca1 ("ethernet: remove random_ether_addr()")

Replacement API 'eth_random_addr()' is around since v3.6 [1], so
simply switching to this API without any version checks.

[1]
0a4dd594982a ("etherdevice: Rename random_ether_addr to eth_random_addr")

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
kernel/linux/kni/kni_misc.c