diff options
author | Eli Cohen | 2021-10-26 20:55:18 +0300 |
---|---|---|
committer | Michael S. Tsirkin | 2021-11-01 05:26:49 -0400 |
commit | a007d940040c0b3d1fcb5f39159c2b141b85eae0 (patch) | |
tree | 1c987639247f8733409a3ef22d216bea1ad3b559 /init | |
parent | ef76eb83a17e803a66b64ac95b36ae48b3d17c22 (diff) |
vdpa/mlx5: Support configuration of MAC
Add code to accept MAC configuration through vdpa tool. The MAC is
written into the config struct and later can be retrieved through
get_config().
Examples:
1. Configure MAC while adding a device:
$ vdpa dev add mgmtdev pci/0000:06:00.2 name vdpa0 mac 00:11:22:33:44:55
2. Show configured params:
$ vdpa dev config show
vdpa0: mac 00:11:22:33:44:55 link down link_announce false max_vq_pairs 8 mtu 1500
Signed-off-by: Eli Cohen <elic@nvidia.com>
Reviewed-by: Parav Pandit <parav@nvidia.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20211026175519.87795-8-parav@nvidia.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions