Brett Creeley b093841f9a ice: Refactor port vlan configuration for the VF
Currently ice_vsi_manage_pvid() calls
ice_vsi_[set|kill]_pvid_fill_ctxt() when enabling/disabling a port VLAN
on a VSI respectively. These two functions have some duplication so just
move their unique pieces inline in ice_vsi_manage_pvid() and then the
duplicate code can be reused for both the enabling/disabling paths.

Before this patch the info.pvid field was not being written
correctly via ice_vsi_kill_pvid_fill_ctxt() so it was being hard coded
to 0 in ice_set_vf_port_vlan(). Fix this by setting the info.pvid field
to 0 before calling ice_vsi_update() in ice_vsi_manage_pvid().

We currently use vf->port_vlan_id to keep track of the port VLAN
ID and QoS, which is a bit misleading. Fix this by renaming it to
vf->port_vlan_info. Also change the name of the argument for
ice_vsi_manage_pvid() from vid to pvid_info.

In ice_vsi_manage_pvid() only save the fields that were modified
in the VSI properties structure on success instead of the entire thing.

Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2020-02-15 16:27:17 -08:00
..
2020-02-12 11:49:12 -08:00
2020-02-12 11:49:12 -08:00
2020-02-12 11:49:12 -08:00
2019-11-08 12:02:14 -08:00
2020-02-12 11:49:12 -08:00
2020-02-12 11:49:12 -08:00
2020-01-25 21:42:50 -08:00
2020-01-25 21:42:50 -08:00
2020-01-24 16:06:32 -08:00
2020-02-15 16:24:33 -08:00
2020-02-15 16:24:33 -08:00
2020-02-15 16:24:33 -08:00
2020-01-03 16:08:33 -08:00
2018-03-26 09:59:08 -07:00
2019-01-15 12:38:44 -08:00
2020-01-24 16:06:32 -08:00
2020-02-12 11:49:12 -08:00
2020-02-12 11:49:12 -08:00
2020-02-12 11:49:12 -08:00
2019-11-04 12:01:55 -08:00