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)
commit5079b853b221005ac06192265c917ea79c11c0e2
tree1e561fe91d0b2195157a703b1e6c3bfa26032757
parentacd1751a3988e45e3464c9405dc5b95deb55865d
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