Skip to content

Commit 2f97eaa

Browse files
committed
Merge: CNB101: devlink: add kabi padding
MR: https://gitlab.com/redhat/rhel/src/kernel/rhel-10/-/merge_requests/340 JIRA: https://issues.redhat.com/browse/RHEL-111907 Upstream Status: mostly RHEL-only patches This series adds reserved fields to devlink structs. These reserved fields are only needed during backports to z-stream. Signed-off-by: Ivan Vecera <[email protected]> Approved-by: Michal Schmidt <[email protected]> Approved-by: Davide Caratti <[email protected]> Approved-by: CKI KWF Bot <[email protected]> Merged-by: Jan Stancek <[email protected]>
2 parents 189d8e6 + 0a7a309 commit 2f97eaa

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

include/net/devlink.h

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
#include <linux/xarray.h>
2222
#include <linux/firmware.h>
2323

24+
#include <linux/rh_kabi.h>
25+
2426
struct devlink;
2527
struct devlink_linecard;
2628

@@ -156,6 +158,23 @@ struct devlink_port {
156158
struct devlink_rate *devlink_rate;
157159
struct devlink_linecard *linecard;
158160
u32 rel_index;
161+
162+
RH_KABI_RESERVE(1)
163+
RH_KABI_RESERVE(2)
164+
RH_KABI_RESERVE(3)
165+
RH_KABI_RESERVE(4)
166+
RH_KABI_RESERVE(5)
167+
RH_KABI_RESERVE(6)
168+
RH_KABI_RESERVE(7)
169+
RH_KABI_RESERVE(8)
170+
RH_KABI_RESERVE(9)
171+
RH_KABI_RESERVE(10)
172+
RH_KABI_RESERVE(11)
173+
RH_KABI_RESERVE(12)
174+
RH_KABI_RESERVE(13)
175+
RH_KABI_RESERVE(14)
176+
RH_KABI_RESERVE(15)
177+
RH_KABI_RESERVE(16)
159178
};
160179

161180
struct devlink_port_new_attrs {
@@ -201,6 +220,9 @@ struct devlink_linecard_ops {
201220
void (*types_get)(struct devlink_linecard *linecard,
202221
void *priv, unsigned int index, const char **type,
203222
const void **type_priv);
223+
224+
RH_KABI_RESERVE(1)
225+
RH_KABI_RESERVE(2)
204226
};
205227

206228
struct devlink_sb_pool_info {
@@ -378,6 +400,9 @@ struct devlink_dpipe_table_ops {
378400
struct devlink_dpipe_dump_ctx *dump_ctx);
379401
int (*counters_set_update)(void *priv, bool enable);
380402
u64 (*size_get)(void *priv);
403+
404+
RH_KABI_RESERVE(1)
405+
RH_KABI_RESERVE(2)
381406
};
382407

383408
/**
@@ -495,6 +520,9 @@ struct devlink_param {
495520
int (*validate)(struct devlink *devlink, u32 id,
496521
union devlink_param_value val,
497522
struct netlink_ext_ack *extack);
523+
524+
RH_KABI_RESERVE(1)
525+
RH_KABI_RESERVE(2)
498526
};
499527

500528
struct devlink_param_item {
@@ -697,6 +725,9 @@ struct devlink_region_ops {
697725
struct netlink_ext_ack *extack,
698726
u64 offset, u32 size, u8 *data);
699727
void *priv;
728+
729+
RH_KABI_RESERVE(1)
730+
RH_KABI_RESERVE(2)
700731
};
701732

702733
/**
@@ -725,6 +756,9 @@ struct devlink_port_region_ops {
725756
struct netlink_ext_ack *extack,
726757
u64 offset, u32 size, u8 *data);
727758
void *priv;
759+
760+
RH_KABI_RESERVE(1)
761+
RH_KABI_RESERVE(2)
728762
};
729763

730764
struct devlink_fmsg;
@@ -758,6 +792,9 @@ struct devlink_health_reporter_ops {
758792
struct netlink_ext_ack *extack);
759793
int (*test)(struct devlink_health_reporter *reporter,
760794
struct netlink_ext_ack *extack);
795+
796+
RH_KABI_RESERVE(1)
797+
RH_KABI_RESERVE(2)
761798
};
762799

763800
/**
@@ -1537,6 +1574,15 @@ struct devlink_ops {
15371574
enum devlink_selftest_status
15381575
(*selftest_run)(struct devlink *devlink, unsigned int id,
15391576
struct netlink_ext_ack *extack);
1577+
1578+
RH_KABI_RESERVE(1)
1579+
RH_KABI_RESERVE(2)
1580+
RH_KABI_RESERVE(3)
1581+
RH_KABI_RESERVE(4)
1582+
RH_KABI_RESERVE(5)
1583+
RH_KABI_RESERVE(6)
1584+
RH_KABI_RESERVE(7)
1585+
RH_KABI_RESERVE(8)
15401586
};
15411587

15421588
void *devlink_priv(struct devlink *devlink);
@@ -1696,6 +1742,15 @@ struct devlink_port_ops {
16961742
int (*port_fn_max_io_eqs_set)(struct devlink_port *devlink_port,
16971743
u32 max_eqs,
16981744
struct netlink_ext_ack *extack);
1745+
1746+
RH_KABI_RESERVE(1)
1747+
RH_KABI_RESERVE(2)
1748+
RH_KABI_RESERVE(3)
1749+
RH_KABI_RESERVE(4)
1750+
RH_KABI_RESERVE(5)
1751+
RH_KABI_RESERVE(6)
1752+
RH_KABI_RESERVE(7)
1753+
RH_KABI_RESERVE(8)
16991754
};
17001755

17011756
void devlink_port_init(struct devlink *devlink,

0 commit comments

Comments
 (0)