Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eth_hw_addr_set #49

Open
lglgdouble opened this issue Oct 31, 2023 · 1 comment
Open

eth_hw_addr_set #49

lglgdouble opened this issue Oct 31, 2023 · 1 comment

Comments

@lglgdouble
Copy link

/data/open-nic/dpdk/open-nic-driver/onic_netdev.c: In function ‘onic_set_mac_address’:
/data/open-nic/dpdk/open-nic-driver/onic_netdev.c:755:2: error: implicit declaration of function ‘eth_hw_addr_set’; did you mean ‘eth_addr_dec’? [-Werror=implicit-function-declaration]
eth_hw_addr_set(dev, dev_addr);
^~~~~~~~~~~~~~~
eth_addr_dec

@slahmer97
Copy link

your $(uname -r) < 5.15
you can get around it by adding the following into onic_netdev.c

#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0)
static inline void eth_hw_addr_set(struct net_device *dev, const u8 *addr)
{
    memcpy(dev->dev_addr, addr, ETH_ALEN);
}
#endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants