OSDN Git Service

ice: Validate ring existence and its q_vector per VSI
authorMaciej Fijalkowski <maciej.fijalkowski@intel.com>
Thu, 28 Feb 2019 23:25:52 +0000 (15:25 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 2 May 2019 08:08:00 +0000 (01:08 -0700)
commita92e1bb6ade7526f0c2b7b462516b1941e965504
tree39049c0d49109cc6fb8cac6c566b0847f2629fee
parent1553f4f77a495b4e78f7083f1f8341bef6dbe9c7
ice: Validate ring existence and its q_vector per VSI

When stopping Tx rings, we use 'i' as an ring array index for looking up
whether the ice_ring exists and have assigned a q_vector. This checks
rings only within a given TC and we need to go through every ring in
VSI. Use 'q_idx' instead.

Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@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>
drivers/net/ethernet/intel/ice/ice_lib.c