|
@@ -29,6 +29,7 @@ struct devlink {
|
|
|
struct list_head resource_list;
|
|
|
struct list_head param_list;
|
|
|
struct list_head region_list;
|
|
|
+ u32 snapshot_id;
|
|
|
struct devlink_dpipe_headers *dpipe_headers;
|
|
|
const struct devlink_ops *ops;
|
|
|
struct device *dev;
|
|
@@ -551,6 +552,7 @@ struct devlink_region *devlink_region_create(struct devlink *devlink,
|
|
|
u32 region_max_snapshots,
|
|
|
u64 region_size);
|
|
|
void devlink_region_destroy(struct devlink_region *region);
|
|
|
+u32 devlink_region_shapshot_id_get(struct devlink *devlink);
|
|
|
|
|
|
#else
|
|
|
|
|
@@ -792,6 +794,12 @@ devlink_region_destroy(struct devlink_region *region)
|
|
|
{
|
|
|
}
|
|
|
|
|
|
+static inline u32
|
|
|
+devlink_region_shapshot_id_get(struct devlink *devlink)
|
|
|
+{
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
#endif
|
|
|
|
|
|
#endif /* _NET_DEVLINK_H_ */
|