Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update forwarding parameter attribute max #105

Merged
merged 1 commit into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/genl_bar.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ enum gtp5g_bar_attrs {

__GTP5G_BAR_ATTR_MAX,
};
#define GTP5G_BAR_ATTR_MAX (__GTP5G_BAR_ATTR_MAX - 1)
#define GTP5G_BAR_ATTR_MAX 16

struct buffer_action {
u64 seid;
Expand Down
6 changes: 3 additions & 3 deletions include/genl_far.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ enum gtp5g_far_attrs {
GTP5G_FAR_BAR_ID,
__GTP5G_FAR_ATTR_MAX,
};
#define GTP5G_FAR_ATTR_MAX (__GTP5G_FAR_ATTR_MAX - 1)
#define GTP5G_FAR_ATTR_MAX 16

/* Nest in GTP5G_FAR_FORWARDING_PARAMETER */
enum gtp5g_forwarding_parameter_attrs {
Expand All @@ -27,7 +27,7 @@ enum gtp5g_forwarding_parameter_attrs {

__GTP5G_FORWARDING_PARAMETER_ATTR_MAX,
};
#define GTP5G_FORWARDING_PARAMETER_ATTR_MAX (__GTP5G_FORWARDING_PARAMETER_ATTR_MAX - 1)
#define GTP5G_FORWARDING_PARAMETER_ATTR_MAX 16

/* Nest in GTP5G_FORWARDING_PARAMETER_OUTER_HEADER_CREATION */
enum gtp5g_outer_header_creation_attrs {
Expand All @@ -38,7 +38,7 @@ enum gtp5g_outer_header_creation_attrs {

__GTP5G_OUTER_HEADER_CREATION_ATTR_MAX,
};
#define GTP5G_OUTER_HEADER_CREATION_ATTR_MAX (__GTP5G_OUTER_HEADER_CREATION_ATTR_MAX - 1)
#define GTP5G_OUTER_HEADER_CREATION_ATTR_MAX 16

extern int gtp5g_genl_add_far(struct sk_buff *, struct genl_info *);
extern int gtp5g_genl_del_far(struct sk_buff *, struct genl_info *);
Expand Down
10 changes: 5 additions & 5 deletions include/genl_pdr.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ enum gtp5g_pdr_attrs {

__GTP5G_PDR_ATTR_MAX,
};
#define GTP5G_PDR_ATTR_MAX (__GTP5G_PDR_ATTR_MAX - 1)
#define GTP5G_PDR_ATTR_MAX 16

/* Nest in GTP5G_PDR_PDI */
enum gtp5g_pdi_attrs {
Expand All @@ -39,7 +39,7 @@ enum gtp5g_pdi_attrs {
GTP5G_PDI_SDF_FILTER,
__GTP5G_PDI_ATTR_MAX,
};
#define GTP5G_PDI_ATTR_MAX (__GTP5G_PDI_ATTR_MAX - 1)
#define GTP5G_PDI_ATTR_MAX 16

/* Nest in GTP5G_PDI_F_TEID */
enum gtp5g_f_teid_attrs {
Expand All @@ -48,7 +48,7 @@ enum gtp5g_f_teid_attrs {
GTP5G_F_TEID_GTPU_ADDR_IPV4,
__GTP5G_F_TEID_ATTR_MAX,
};
#define GTP5G_F_TEID_ATTR_MAX (__GTP5G_F_TEID_ATTR_MAX - 1)
#define GTP5G_F_TEID_ATTR_MAX 8

/* Nest in GTP5G_PDI_SDF_FILTER */
enum gtp5g_sdf_filter_attrs {
Expand All @@ -60,7 +60,7 @@ enum gtp5g_sdf_filter_attrs {

__GTP5G_SDF_FILTER_ATTR_MAX,
};
#define GTP5G_SDF_FILTER_ATTR_MAX (__GTP5G_SDF_FILTER_ATTR_MAX - 1)
#define GTP5G_SDF_FILTER_ATTR_MAX 16

/* Nest in GTP5G_SDF_FILTER_FLOW_DESCRIPTION */
enum gtp5g_flow_description_attrs {
Expand Down Expand Up @@ -98,4 +98,4 @@ extern int gtp5g_genl_del_pdr(struct sk_buff *, struct genl_info *);
extern int gtp5g_genl_get_pdr(struct sk_buff *, struct genl_info *);
extern int gtp5g_genl_dump_pdr(struct sk_buff *, struct netlink_callback *);

#endif // __GENL_PDR_H__
#endif // __GENL_PDR_H__
4 changes: 2 additions & 2 deletions include/genl_qer.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ enum gtp5g_qer_attrs {
GTP5G_QER_SEID,
__GTP5G_QER_ATTR_MAX,
};
#define GTP5G_QER_ATTR_MAX (__GTP5G_QER_ATTR_MAX - 1)
#define GTP5G_QER_ATTR_MAX 16

/* Nest in GTP5G_QER_MBR */
enum gtp5g_mbr_attrs {
Expand Down Expand Up @@ -51,4 +51,4 @@ extern int gtp5g_genl_del_qer(struct sk_buff *, struct genl_info *);
extern int gtp5g_genl_get_qer(struct sk_buff *, struct genl_info *);
extern int gtp5g_genl_dump_qer(struct sk_buff *, struct netlink_callback *);

#endif // __GENL_QER_H__
#endif // __GENL_QER_H__
2 changes: 1 addition & 1 deletion include/genl_report.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ enum gtp5g_usage_report_attrs {

__GTP5G_UR_ATTR_MAX,
};
#define GTP5G_UR_ATTR_MAX (__GTP5G_UR_ATTR_MAX - 1)
#define GTP5G_UR_ATTR_MAX 16

enum gtp5g_multi_usage_report_attrs {
GTP5G_UR = 5,
Expand Down
2 changes: 1 addition & 1 deletion include/genl_urr.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ enum gtp5g_urr_attrs {

__GTP5G_URR_ATTR_MAX,
};
#define GTP5G_URR_ATTR_MAX (__GTP5G_URR_ATTR_MAX - 1)
#define GTP5G_URR_ATTR_MAX 16

/* Nest in GTP5G_URR_VOL_THRESHOLD */
enum gtp5g_urr_volume_threshold_attrs {
Expand Down