summaryrefslogtreecommitdiff
path: root/zebra/dplane_fpm_nl.c
diff options
context:
space:
mode:
authorSharath Ramamurthy <sramamurthy@nvidia.com>2021-07-27 13:22:11 +0530
committerStephen Worley <sworley@nvidia.com>2023-02-13 18:12:04 -0500
commitb95ce8fadbceea40639224d59bfcc0a2679f5604 (patch)
tree77baf12b6777643344377e0798bc1d461c8bb307 /zebra/dplane_fpm_nl.c
parent784d88aa14c115411ed21f6ac518ab1a8f9d27b7 (diff)
zebra: single vxlan device dataplace vni update changes
dplane_mac_info and dplane_neigh_info is modified to be vni aware. dplane_rem_mac_add/del dplane_mac_init is modified to be vni aware. During dplane context update (mac and neigh), we use the vni information and if set, corresponding netlink attribute NDA_SRC_VNI is set and passed to the dplane. Signed-off-by: Sharath Ramamurthy <sramamurthy@nvidia.com>
Diffstat (limited to 'zebra/dplane_fpm_nl.c')
-rw-r--r--zebra/dplane_fpm_nl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/zebra/dplane_fpm_nl.c b/zebra/dplane_fpm_nl.c
index 8fb230ffa7..6a0f02bab4 100644
--- a/zebra/dplane_fpm_nl.c
+++ b/zebra/dplane_fpm_nl.c
@@ -1208,9 +1208,9 @@ static void fpm_enqueue_rmac_table(struct hash_bucket *bucket, void *arg)
dplane_ctx_reset(fra->ctx);
dplane_ctx_set_op(fra->ctx, DPLANE_OP_MAC_INSTALL);
dplane_mac_init(fra->ctx, fra->zl3vni->vxlan_if,
- zif->brslave_info.br_if, vid,
- &zrmac->macaddr, zrmac->fwd_info.r_vtep_ip, sticky,
- 0 /*nhg*/, 0 /*update_flags*/);
+ zif->brslave_info.br_if, vid, &zrmac->macaddr, vni->vni,
+ zrmac->fwd_info.r_vtep_ip, sticky, 0 /*nhg*/,
+ 0 /*update_flags*/);
if (fpm_nl_enqueue(fra->fnc, fra->ctx) == -1) {
thread_add_timer(zrouter.master, fpm_rmac_send,
fra->fnc, 1, &fra->fnc->t_rmacwalk);