network/netdev: introduce netdev_can_set_mac/mtu() helper functions
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 29 Oct 2024 17:01:59 +0000 (02:01 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 30 Oct 2024 16:06:25 +0000 (01:06 +0900)
commit17c5337f7b2993619d84acc2088b2ba1789e6477
tree18b70ccb288f31f84e93c719751bee5567932fe0
parent58ada3eab2b51fd238b48842e7c77aaa4e9fcbf2
network/netdev: introduce netdev_can_set_mac/mtu() helper functions

Several netdevs cannot set IFLA_ADDRESS or IFLA_MTU attribute on update.
Currently, the vtable field is unused, as we do not support updating
existing netdevs. Preparation for later commits.
src/network/netdev/netdev.c
src/network/netdev/netdev.h