aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-10-26 13:43:43 +0200
committerDamjan Marion <dmarion@me.com>2018-10-26 19:30:18 +0000
commit539e637ccee4171954f2fffa5516c45a388c8a3e (patch)
tree6dfd2de588a71594df32652391813223927a07b4
parent6c892301e24a9904841b0969330d6d220b5f83b2 (diff)
extras/scripts: update vfctl script
Change-Id: I49cb5863237e4f9d2ac94879577d5d011e3bfe97 Signed-off-by: Damjan Marion <damarion@cisco.com>
-rwxr-xr-xextras/scripts/vfctl4
1 files changed, 3 insertions, 1 deletions
diff --git a/extras/scripts/vfctl b/extras/scripts/vfctl
index 8942a9cfe60..21868b021bb 100755
--- a/extras/scripts/vfctl
+++ b/extras/scripts/vfctl
@@ -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__
}