lkl: add lkl_if_set_mac to support set MAC address on the interface#624
lkl: add lkl_if_set_mac to support set MAC address on the interface#624clingfei wants to merge 1 commit intolkl:masterfrom
Conversation
Currently, we can only set the MAC address when using `lkl_netdev_add` to add a new network device. Otherwise, it will generate a random one through `eth_hw_addr_random`. It would be more flexible to support dynamically MAC address configuration. Signed-off-by: Cheng Lingfei <1599101385@qq.com>
|
Thanks for your review @tavip! The previous commit caused checkpatch.sh to fail, and I have fixed this issue in the latest commit. |
|
thanks @clingfei for the patch. I was wondering if we can change an interface created with dpdk device, which has a configuration to the underlying part. https://github.com/lkl/linux/blob/master/tools/lkl/lib/virtio_net_dpdk.c#L452 |
Currently, we can only change the LKL guest interface, not the DPDK device. If we want to change the interface for the backend, maybe we should add a set_mac for lkl_dev_net_ops and call some DPDK setter function. Moreover, in the current DPDK config path, the auto-detected DPDK MAC takes precedence over |
Currently, we can only set the MAC address when using
lkl_netdev_addto add a new network device. Otherwise, it will generate a random one througheth_hw_addr_random.It would be more flexible to support dynamically MAC address configuration.