[PATCH v5 1/2] kni: use dedicated function to set random MAC address
Ferruh Yigit
ferruh.yigit at xilinx.com
Wed Jun 8 14:52:40 CEST 2022
On 6/8/2022 1:11 PM, Andrew Rybchenko wrote:
> From: Ke Zhang <ke1x.zhang at intel.com>
>
> eth_hw_addr_random() sets address type correctly.
>
> eth_hw_addr_random() is available since Linux v3.4, so
> no compat is required.
>
> Also fix the warning:
> warning: passing argument 1 of ‘memcpy’ discards ‘const’
> qualifier from pointer target type
>
> Variable dev_addr is done const intentionally in Linux v5.17 to
> prevent using it directly.
>
> Fixes: ea6b39b5b847 ("kni: remove ethtool support")
> Cc: stable at dpdk.org
>
> Signed-off-by: Ke Zhang <ke1x.zhang at intel.com>
> Signed-off-by: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>
Acked-by: Ferruh Yigit <ferruh.yigit at xilinx.com>
More information about the stable
mailing list