mirror of https://github.com/vishvananda/netlink
Corrected library function to have Vf prefix
Corrected function signature to have correct name LinkSetVfTrust instead of LinkSetTrust. This aligns with code comment and rest of the other VF functions. Signed-off-by: Parav Pandit <parav@mellanox.com>
This commit is contained in:
parent
70cf3c74a8
commit
06ccf872a2
|
@ -415,7 +415,7 @@ func (h *Handle) LinkSetVfSpoofchk(link Link, vf int, check bool) error {
|
|||
|
||||
// LinkSetVfTrust enables/disables trust state on a vf for the link.
|
||||
// Equivalent to: `ip link set $link vf $vf trust $state`
|
||||
func LinkSetTrust(link Link, vf int, state bool) error {
|
||||
func LinkSetVfTrust(link Link, vf int, state bool) error {
|
||||
return pkgHandle.LinkSetVfTrust(link, vf, state)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue