Re: [PATCH v7 1/3] vdpa: support set mac address from vdpa tool

2024-07-29 Thread Cindy Lu
On Tue, 30 Jul 2024 at 03:13, Andrew Lunn wrote: > > > +static int vdpa_dev_net_device_attr_set(struct vdpa_device *vdev, > > + struct genl_info *info) > > +{ > > + struct vdpa_dev_set_config set_config = {}; > > + struct vdpa_mgmt_dev *mdev = vdev->mdev

Re: [PATCH v7 1/3] vdpa: support set mac address from vdpa tool

2024-07-29 Thread Andrew Lunn
> +static int vdpa_dev_net_device_attr_set(struct vdpa_device *vdev, > + struct genl_info *info) > +{ > + struct vdpa_dev_set_config set_config = {}; > + struct vdpa_mgmt_dev *mdev = vdev->mdev; > + struct nlattr **nl_attrs = info->attrs; > + cons

[PATCH v7 1/3] vdpa: support set mac address from vdpa tool

2024-07-28 Thread Cindy Lu
Add new UAPI to support the mac address from vdpa tool Function vdpa_nl_cmd_dev_attr_set_doit() will get the new MAC address from the vdpa tool and then set it to the device. The usage is: vdpa dev set name vdpa_name mac **:**:**:**:**:** Here is example: root@L1# vdpa -jp dev config show vdpa0 {