[Intel-wired-lan] [PATCH S32 v3 01/15] ice: Use ice_ena_vsi and ice_dis_vsi in DCB configuration flow
Bowers, AndrewX
andrewx.bowers at intel.com
Thu Nov 7 18:34:16 UTC 2019
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Tony Nguyen
> Sent: Wednesday, November 6, 2019 2:05 AM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH S32 v3 01/15] ice: Use ice_ena_vsi and
> ice_dis_vsi in DCB configuration flow
>
> From: Anirudh Venkataramanan <anirudh.venkataramanan at intel.com>
>
> DCB configuration flow needs to disable and enable only the PF (main) VSI,
> so use ice_ena_vsi and ice_dis_vsi. To avoid the use of ifdef to control the
> staticness of these functions, move them to ice_lib.c.
>
> Also replace the allocate and copy of old_cfg to kmemdup() in
> ice_pf_dcb_cfg().
>
> Signed-off-by: Anirudh Venkataramanan
> <anirudh.venkataramanan at intel.com>
> Signed-off-by: Tony Nguyen <anthony.l.nguyen at intel.com>
> ---
> v3:
> - Use kmemdup instead of kzalloc + memcpy
> v2:
> - Add null check after allocation of old_cfg
> ---
> drivers/net/ethernet/intel/ice/ice.h | 4 -
> drivers/net/ethernet/intel/ice/ice_dcb_lib.c | 31 ++++++--
> drivers/net/ethernet/intel/ice/ice_lib.c | 56 ++++++++++++++
> drivers/net/ethernet/intel/ice/ice_lib.h | 4 +
> drivers/net/ethernet/intel/ice/ice_main.c | 79 --------------------
> 5 files changed, 84 insertions(+), 90 deletions(-)
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list