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 $0 remove-all Remove all virtual functions from device . -$0 remove-all +$0 create Create virtual functions on device. __EOF__ }