extras/scripts: update vfctl script
Change-Id: I49cb5863237e4f9d2ac94879577d5d011e3bfe97 Signed-off-by: Damjan Marion <damarion@cisco.com>
This commit is contained in:
Damjan Marion
committed by
Damjan Marion
parent
6c892301e2
commit
539e637cce
@ -90,6 +90,8 @@ function create () {
|
||||
vfid=$(basename ${vf_path//virtfn/})
|
||||
mac="${mac_prefix}:$(printf "%02x" ${vfid})"
|
||||
sudo ip link set dev ${netdev} vf ${vfid} mac ${mac}
|
||||
sudo ip link set dev ${netdev} vf ${vfid} trust on
|
||||
sudo ip link set dev ${netdev} vf ${vfid} spoofchk off
|
||||
done
|
||||
|
||||
[ $(cat ${path}/sriov_numvfs) -gt 0 ] && show_vfs ${path} ${netdev}
|
||||
@ -106,7 +108,7 @@ $0 show <dev>
|
||||
$0 remove-all <dev>
|
||||
Remove all virtual functions from device <dev>.
|
||||
|
||||
$0 remove-all <dev> <num>
|
||||
$0 create <dev> <num>
|
||||
Create <num> virtual functions on device<dev>.
|
||||
__EOF__
|
||||
}
|
||||
|
Reference in New Issue
Block a user