On Mon, 23 Nov 2020 18:58:41 -0500 Dany Madden wrote: > Currently ibmvnic does not support the "Disable vNIC" command from > the Hardware Management Console. The HMC uses this command to disconnect > the adapter from the network if the adapter is misbehaving or sending > malicious traffic. The effect of this command is equivalent to setting > the link to the "down" state on the linux client. > > Enable support in ibmvnic driver for the Disable vNIC command. > > Signed-off-by: Dany Madden <d...@linux.ibm.com>
It seems that (a) user looking at the system where NIC was disabled has no idea why netdev is not working even tho it's UP, and (b) AFAICT nothing prevents the user from bringing the device down and back up again. You said this is to disable misbehaving and/or sending malicious vnic, obviously the guest can ignore the command so it's not very dependable, anyway. Would it not be sufficient to mark the carrier state as down to cut the vnic off?