diff options
author | 2017-10-11 14:49:43 -0700 | |
---|---|---|
committer | 2017-10-13 14:27:13 -0700 | |
commit | 17a9422de78c3a59b490b400f555635c477f1476 (patch) | |
tree | 0ff591f465bceac88b9a28bc499253ea0d70189e /net/lapb/lapb_timer.c | |
parent | i40e: fix link reporting (diff) | |
download | wireguard-linux-17a9422de78c3a59b490b400f555635c477f1476.tar.xz wireguard-linux-17a9422de78c3a59b490b400f555635c477f1476.zip |
i40e/i40evf: don't trust VF to reset itself
When using 'ethtool -L' on a VF to change number of requested queues
from PF, we shouldn't trust the VF to reset itself after making the
request. Doing it that way opens the door for a potentially malicious
VF to do nasty things to the PF which should never be the case.
This makes it such that after VF makes a successful request, PF will
then reset the VF to institute required changes. Only if the request
fails will PF send a message back to VF letting it know the request was
unsuccessful.
Testing-hints:
There should be no real functional changes. This is simply hardening
against a potentially malicious VF.
Signed-off-by: Alan Brady <alan.brady@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions