diff options
author | 2019-04-16 10:21:17 -0700 | |
---|---|---|
committer | 2019-05-04 14:18:27 -0700 | |
commit | ba0db585bdb696d28bd6ec3ae9908d45c0bdeb37 (patch) | |
tree | 78d346d9c441410208743fab4037f99c44d633e9 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
parent | ice: Don't remove VLAN filters that were never programmed (diff) | |
download | wireguard-linux-ba0db585bdb696d28bd6ec3ae9908d45c0bdeb37.tar.xz wireguard-linux-ba0db585bdb696d28bd6ec3ae9908d45c0bdeb37.zip |
ice: Add more validation in ice_vc_cfg_irq_map_msg
Add few checks to validate msg from iavf driver.
Test if we have got enough q_vectors allocated in VSI connected with VF.
Add masks for itr_indx and msix_indx to avoid writing to reserved fieldi
of QINT. Clear q_vector->num_ring_rx/tx, without it we can increment this
value every time we send irq map msg from VF. So after second call this
value will be incorrect.
Decrement num_vectors from msg, because last vector in iavf msg is misc
vector (we don't set map for it).
Signed-off-by: Michal Swiatkowski <michal.swiatkowski@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions