]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Fix issue when adding more than allowed VLANs
authorAkeem G Abodunrin <akeem.g.abodunrin@intel.com>
Thu, 28 Feb 2019 23:25:57 +0000 (15:25 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 2 May 2019 08:17:37 +0000 (01:17 -0700)
commit961c48b47954d5a121cc7822d3537886c8051848
tree1e561fe91d0b2195157a703b1e6c3bfa26032757
parent85ebfd59dc99912c014f97f0d52ebaf970b9efc1
ice: Fix issue when adding more than allowed VLANs

This patch fixes issue with non trusted VFs being able to add more than
permitted number of VLANs by adding a check in ice_vc_process_vlan_msg.
Also don't return an error in this case as the VF does not need to know
that it is not trusted.

Also rework ice_vsi_kill_vlan to use the right types.

Signed-off-by: Akeem G Abodunrin <akeem.g.abodunrin@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
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c