ice: refactor FC functions
authorPaul Greenwalt <paul.greenwalt@intel.com>
Thu, 9 Jul 2020 16:16:04 +0000 (09:16 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 23 Jul 2020 22:03:58 +0000 (15:03 -0700)
commit2ffb60856ac857ecae3e87a69c0a977e4a608ae0
treebc872e866e185b6fba11dcd035985120ac55e1c0
parent769c500dcc1edb6e65f84b2a7304589b748a3e35
ice: refactor FC functions

Create a helper function for configuring requested flow control so that it
can be utilized by other functions looking to configure flow control
settings. Utilize the existing helper ice_copy_phy_caps_to_cfg() to copy a
PHY capability to configuration instead duplicating the code for it.

Signed-off-by: Paul Greenwalt <paul.greenwalt@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_common.c