]> git.proxmox.com Git - mirror_iproute2.git/commit
devlink: Support setting port function hardware address
authorParav Pandit <parav@mellanox.com>
Tue, 23 Jun 2020 10:44:25 +0000 (10:44 +0000)
committerDavid Ahern <dsahern@kernel.org>
Sun, 5 Jul 2020 14:49:32 +0000 (14:49 +0000)
commit4dca81e9a8f81e7e1994de4d2e7a09b28aae28b4
tree3eec27989fb1d7ef5c3de286b3c4fe841be50b93
parentb3adafd15431bf57269d8f1c30bba03885ff5ab2
devlink: Support setting port function hardware address

Support setting devlink port function hardware address.

Example of a PCI VF port which supports a port function:
Set hardware address of the VF's port function.

$ devlink port show pci/0000:06:00.0/2
pci/0000:06:00.0/2: type eth netdev enp6s0pf0vf1 flavour pcivf pfnum 0 vfnum 1
  function:
    hw_addr 00:00:00:00:00:00

$ devlink port function set pci/0000:06:00.0/2 hw_addr 00:11:22:33:44:55

$ devlink port show pci/0000:06:00.0/2
pci/0000:06:00.0/2: type eth netdev enp6s0pf0vf1 flavour pcivf pfnum 0 vfnum 1
  function:
    hw_addr 00:11:22:33:44:55

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
devlink/devlink.c