summaryrefslogtreecommitdiffstats
path: root/pbrd/pbr_nht.h
diff options
context:
space:
mode:
authorStephen Worley <sworley@nvidia.com>2022-01-27 18:41:49 +0100
committerStephen Worley <sworley@nvidia.com>2022-01-27 18:47:00 +0100
commit9a7ea213c072a24aa2059e04cb51502a3e956705 (patch)
tree8d1e367e3baad902f68bcfbc0e3664628ae118d4 /pbrd/pbr_nht.h
parentMerge pull request #9880 from louis-oui/maximum-prefix-out (diff)
downloadfrr-9a7ea213c072a24aa2059e04cb51502a3e956705.tar.xz
frr-9a7ea213c072a24aa2059e04cb51502a3e956705.zip
pbrd: pbr route maps get addr family of nhgs
When adding a nhg to a route map, make sure to specify the `family` of the rm by looking at the contents of the nhg. Installation in the kernel (for DSCP rules in particular) relies on this being specified in the netlink message. Signed-off-by: Wesley Coakley <wcoakley@nvidia.com> Signed-off-by: Stephen Worley <sworley@nvidia.com>
Diffstat (limited to 'pbrd/pbr_nht.h')
-rw-r--r--pbrd/pbr_nht.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/pbrd/pbr_nht.h b/pbrd/pbr_nht.h
index 8d9edc633..ecc92cc05 100644
--- a/pbrd/pbr_nht.h
+++ b/pbrd/pbr_nht.h
@@ -109,6 +109,11 @@ extern struct pbr_nexthop_group_cache *pbr_nht_add_group(const char *name);
extern void pbr_nht_change_group(const char *name);
extern void pbr_nht_delete_group(const char *name);
+extern void pbr_nht_set_seq_nhg_data(struct pbr_map_sequence *pbrms,
+ const struct nexthop_group_cmd *nhgc);
+extern void pbr_nht_set_seq_nhg(struct pbr_map_sequence *pbrms,
+ const char *name);
+
extern void pbr_nht_add_individual_nexthop(struct pbr_map_sequence *pbrms,
const struct nexthop *nhop);
extern void pbr_nht_delete_individual_nexthop(struct pbr_map_sequence *pbrms);