summaryrefslogtreecommitdiff
path: root/include/net/devlink.h
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2022-05-04 18:40:37 +0300
committerJakub Kicinski <kuba@kernel.org>2022-05-06 01:47:23 +0300
commitc4a67a21a6d255ddcbaa076c0412aad73c7e0c02 (patch)
tree84afb52dffbb084537ad79f9a497a2fda29e6d67 /include/net/devlink.h
parentc8227d568ddf2f38a8806fdcd2e20b9e11747d9a (diff)
downloadlinux-c4a67a21a6d255ddcbaa076c0412aad73c7e0c02.tar.xz
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. Link: https://lore.kernel.org/all/20220425090021.32e9a98f@kernel.org/ Reviewed-by: Ido Schimmel <idosch@nvidia.com> Link: https://lore.kernel.org/r/20220504154037.539442-1-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/devlink.h')
-rw-r--r--include/net/devlink.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/include/net/devlink.h b/include/net/devlink.h
index 062895973656..2a2a2a0c93f7 100644
--- a/include/net/devlink.h
+++ b/include/net/devlink.h
@@ -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);