linux/drivers/net/ethernet/intel/ice
Jacob Keller 1adf7ead82 ice: enable initial devlink support
Begin implementing support for the devlink interface with the ice
driver.

The pf structure is currently memory managed through devres, via
a devm_alloc. To mimic this behavior, after allocating the devlink
pointer, use devm_add_action to add a teardown action for releasing the
devlink memory on exit.

The ice hardware is a multi-function PCIe device. Thus, each physical
function will get its own devlink instance. This means that each
function will be treated independently, with its own parameters and
configuration. This is done because the ice driver loads a separate
instance for each function.

Due to this, the implementation does not enable devlink to manage
device-wide resources or configuration, as each physical function will
be treated independently. This is done for simplicity, as managing
a devlink instance across multiple driver instances would significantly
increase the complexity for minimal gain.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2020-03-21 00:55:42 -07:00
..
ice.h ice: enable initial devlink support 2020-03-21 00:55:42 -07:00
ice_adminq_cmd.h ice: discover and store size of available flash 2020-03-21 00:29:10 -07:00
ice_base.c ice: add backslash-n to strings 2020-02-19 13:26:45 -08:00
ice_base.h ice: Add support to enable/disable all Rx queues before waiting 2020-02-15 16:39:55 -08:00
ice_common.c ice: store NVM version info in extracted format 2020-03-21 00:28:18 -07:00
ice_common.h ice: implement full NVM read from ETHTOOL_GEEPROM 2020-03-21 00:31:17 -07:00
ice_controlq.c
ice_controlq.h
ice_dcb.c ice: Trivial fixes 2020-02-12 11:49:12 -08:00
ice_dcb.h
ice_dcb_lib.c ice: use variable name more descriptive than type 2020-03-10 13:10:58 -07:00
ice_dcb_lib.h ice: Validate config for SW DCB map 2020-02-19 12:12:27 -08:00
ice_dcb_nl.c ice: SW DCB, report correct max TC value 2020-02-19 13:09:20 -08:00
ice_dcb_nl.h
ice_devids.h ice: fix define for E822 backplane device 2020-02-19 13:39:33 -08:00
ice_devlink.c ice: enable initial devlink support 2020-03-21 00:55:42 -07:00
ice_devlink.h ice: enable initial devlink support 2020-03-21 00:55:42 -07:00
ice_ethtool.c ice: implement full NVM read from ETHTOOL_GEEPROM 2020-03-21 00:31:17 -07:00
ice_flex_pipe.c ice: Fix for TCAM entry management 2020-02-19 12:59:37 -08:00
ice_flex_pipe.h ice: Optimize table usage 2020-01-25 21:42:50 -08:00
ice_flex_type.h ice: Enable writing filtering tables 2020-01-25 21:38:32 -08:00
ice_flow.c ice: use variable name more descriptive than type 2020-03-10 13:10:58 -07:00
ice_flow.h ice: Implement ethtool get/set rx-flow-hash 2020-01-25 21:47:28 -08:00
ice_hw_autogen.h ice: Always clear the QRXFLXP_CNTXT register for VF Rx queues 2020-02-19 13:01:51 -08:00
ice_lan_tx_rx.h
ice_lib.c ice: use variable name more descriptive than type 2020-03-10 13:10:58 -07:00
ice_lib.h ice: use variable name more descriptive than type 2020-03-10 13:10:58 -07:00
ice_main.c ice: enable initial devlink support 2020-03-21 00:55:42 -07:00
ice_nvm.c ice: implement full NVM read from ETHTOOL_GEEPROM 2020-03-21 00:31:17 -07:00
ice_nvm.h ice: implement full NVM read from ETHTOOL_GEEPROM 2020-03-21 00:31:17 -07:00
ice_osdep.h
ice_protocol_type.h ice: Initilialize VF RSS tables 2020-01-25 21:45:19 -08:00
ice_sched.c
ice_sched.h
ice_sriov.c ice: remove unnecessary fallthrough comments 2020-02-15 16:56:48 -08:00
ice_sriov.h
ice_status.h
ice_switch.c ice: use variable name more descriptive than type 2020-03-10 13:10:58 -07:00
ice_switch.h
ice_txrx.c ice: replace "fallthrough" comments with fallthrough reserved word 2020-02-15 17:03:12 -08:00
ice_txrx.h ice: Don't reject odd values of usecs set by user 2020-02-19 11:50:41 -08:00
ice_txrx_lib.c ice: Don't allow same value for Rx tail to be written twice 2020-02-12 11:48:22 -08:00
ice_txrx_lib.h
ice_type.h ice: discover and store size of available flash 2020-03-21 00:29:10 -07:00
ice_virtchnl_pf.c ice: Use EOPNOTSUPP instead of ENOTSUPP 2020-03-10 13:10:53 -07:00
ice_virtchnl_pf.h ice: allow bigger VFs 2020-03-10 13:09:52 -07:00
ice_xsk.c ice: add backslash-n to strings 2020-02-19 13:26:45 -08:00
ice_xsk.h ice: Use EOPNOTSUPP instead of ENOTSUPP 2020-03-10 13:10:53 -07:00
Makefile ice: enable initial devlink support 2020-03-21 00:55:42 -07:00