Revert "Merge branch 'mlxsw-line-card-model'"
Subsystems (6)
Jakub Kicinski
maintainerPATCH 1/1 Revert "Merge branch 'mlxsw-line-card-model'"
This reverts commit 5e927a9f4b9f29d78a7c7d66ea717bb5c8bbad8e, reversing changes made to cfc1d91a7d78cf9de25b043d81efcc16966d55b3.
The discussion is still ongoing so let's remove the uAPI until the discussion settles.
--- .../networking/devlink/devlink-linecard.rst | 4 - Documentation/networking/devlink/mlxsw.rst | 33 -- drivers/net/ethernet/mellanox/mlxsw/core.h | 1 - .../ethernet/mellanox/mlxsw/core_linecards.c | 237 +------------- drivers/net/ethernet/mellanox/mlxsw/reg.h | 87 +---- include/net/devlink.h | 18 +- include/uapi/linux/devlink.h | 5 - net/core/devlink.c | 303 +----------------- .../drivers/net/mlxsw/devlink_linecard.sh | 61 ---- 9 files changed, 10 insertions(+), 739 deletions(-)
Documentation/networking/devlink/devlink-linecard.rst +0 -4
@@ -14,7 +14,6 @@ line cards that serve as a detachable PHY modules for modular switch * Get a list of supported line card types. * Provision of a slot with specific line card type. * Get and monitor of line card state and its change. - * Get information about line card versions and devices. Line card according to the type may contain one or more gearboxes to mux the lanes with certain speed to multiple ports with lanes
@@ -121,6 +120,3 @@ Example usage # Set slot 8 to be unprovisioned: $ devlink lc set pci/0000:01:00.0 lc 8 notype - - # Set info for slot 8: - $ devlink lc info pci/0000:01:00.0 lc 8
Documentation/networking/devlink/mlxsw.rst +0 -33
@@ -58,39 +58,6 @@ The ``mlxsw`` driver reports the following versions - running - Three digit firmware version -Line card info versions -======================= - -The ``mlxsw`` driver reports the following versions for line cards - -.. list-table:: devlink line card info versions implemented - :widths: 5 5 90 - - * - Name - - Type - - Description - * - ``hw.revision`` - - fixed - - The hardware revision for this line card - * - ``ini.version`` - - running - - Version of line card INI loaded - -Line card device info versions -============================== - -The ``mlxsw`` driver reports the following versions for line card devices - -.. list-table:: devlink line card device info versions implemented - :widths: 5 5 90 - - * - Name - - Type - - Description - * - ``fw.version`` - - running - - Three digit firmware version - Driver-specific Traps =====================
drivers/net/ethernet/mellanox/mlxsw/core.h +0 -1
@@ -581,7 +581,6 @@ struct mlxsw_linecard { active:1 ;u16 hw_revision;u16 ini_version; -struct list_head device_list; };struct mlxsw_linecard_types_info ;
drivers/net/ethernet/mellanox/mlxsw/core_linecards.c +3 -234
306 lines not on this page · raw message
drivers/net/ethernet/mellanox/mlxsw/reg.h +1 -86
105 lines not on this page · raw message
include/net/devlink.h +1 -17
@@ -150,9 +150,6 @@ struct devlink_port_new_attrs { sfnum_valid:1 ; }; -struct devlink_info_req ; -struct devlink_linecard_device ; -/** * struct devlink_linecard_ops - Linecard operations * @provision: callback to provision the linecard slot with certain
@@ -171,8 +168,6 @@ struct devlink_linecard_device;* provisioned. * @types_count: callback to get number of supported types * @types_get: callback to get next type in list -* @info_get: callback to get linecard info -* @device_info_get: callback to get linecard device info */ struct devlink_linecard_ops { int (*provision)(struct devlink_linecard *linecard, void *priv,
@@ -187,12 +182,6 @@ struct devlink_linecard_ops {void (*types_get)(struct devlink_linecard *linecard,void *priv,unsigned int index,const char **type,const void **type_priv); -int (*info_get)(struct devlink_linecard *linecard,void *priv, -struct devlink_info_req *req, -struct netlink_ext_ack *extack); -int (*device_info_get)(struct devlink_linecard_device *device, -void *priv,struct devlink_info_req *req, -struct netlink_ext_ack *extack); };struct devlink_sb_pool_info {
@@ -639,6 +628,7 @@ struct devlink_flash_update_params {#define DEVLINK_SUPPORT_FLASH_UPDATE_OVERWRITE_MASK BIT(1)struct devlink_region ; +struct devlink_info_req ;/** * struct devlink_region_ops - Region operations
@@ -1588,12 +1578,6 @@ struct devlink_linecard * devlink_linecard_create(struct devlink *devlink, unsigned int linecard_index, const struct devlink_linecard_ops *ops, void *priv);void devlink_linecard_destroy (struct devlink_linecard *linecard); -struct devlink_linecard_device * -devlink_linecard_device_create (struct devlink_linecard *linecard, -unsigned int device_index,void *priv); -void -devlink_linecard_device_destroy (struct devlink_linecard *linecard, -struct devlink_linecard_device *linecard_device);void devlink_linecard_provision_set (struct devlink_linecard *linecard,const char *type);void devlink_linecard_provision_clear (struct devlink_linecard *linecard);
include/uapi/linux/devlink.h +0 -5
@@ -136,8 +136,6 @@ enum devlink_command {DEVLINK_CMD_LINECARD_NEW ,DEVLINK_CMD_LINECARD_DEL , -DEVLINK_CMD_LINECARD_INFO_GET ,/* can dump */ -/* add new commands above here */ __DEVLINK_CMD_MAX,DEVLINK_CMD_MAX = __DEVLINK_CMD_MAX -1
@@ -577,9 +575,6 @@ enum devlink_attr {DEVLINK_ATTR_LINECARD_STATE ,/* u8 */ DEVLINK_ATTR_LINECARD_TYPE ,/* string */ DEVLINK_ATTR_LINECARD_SUPPORTED_TYPES, /* nested */ -DEVLINK_ATTR_LINECARD_DEVICE_LIST ,/* nested */ -DEVLINK_ATTR_LINECARD_DEVICE ,/* nested */ -DEVLINK_ATTR_LINECARD_DEVICE_INDEX ,/* u32 */ /* add new attributes above here, update the policy in devlink.c */
net/core/devlink.c +5 -298
372 lines not on this page · raw message
tools/testing/selftests/drivers/net/mlxsw/devlink_linecard.sh +0 -61
91 lines not on this page · raw message
Signature · 1 line
2.34.1
Quoted 8 lines · Jakub Kicinski
This reverts commit
5e927a9f4b9f29d78a7c7d66ea717bb5c8bbad8e, reversing changes made tocfc1d91a7d78cf9de25b043d81efcc16966d55b3.The discussion is still ongoing so let's remove the uAPI until the discussion settles.
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Quoted 10 lines · On Wed, 4 May 2022 08:40:37 -0700 you wrote:
This reverts commit
5e927a9f4b9f29d78a7c7d66ea717bb5c8bbad8e, reversing changes made tocfc1d91a7d78cf9de25b043d81efcc16966d55b3.The discussion is still ongoing so let's remove the uAPI until the discussion settles.
Signed-off-by Jakub Kicinski <[email protected]>[...]
Here is the summary with links:
- [net-next] Revert "Merge branch 'mlxsw-line-card-model'"
https://git.kernel.org/netdev/net-next/c/c4a67a21a6d2
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html