diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2018-08-20 18:32:39 +0200 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2018-09-10 12:38:30 +0000 |
commit | 61b94c6bc417dbcb11323962b40493e6f7ec2f7e (patch) | |
tree | aa10b1e25de448b4ea13eaf00c4f3e1e98833dc6 /src/plugins/gbp/gbp_contract.c | |
parent | b414d0d23aff66f793c018a75d83af4d29fb1bd4 (diff) |
vxlan-gbp: Add support for vxlan gbp
This patch implements vxlan with extension of group based
policy support.
Change-Id: I70405bf7332c02867286da8958d9652837edd3c2
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/plugins/gbp/gbp_contract.c')
-rw-r--r-- | src/plugins/gbp/gbp_contract.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/gbp/gbp_contract.c b/src/plugins/gbp/gbp_contract.c index a536f89e5fe..32dd94441db 100644 --- a/src/plugins/gbp/gbp_contract.c +++ b/src/plugins/gbp/gbp_contract.c @@ -45,7 +45,7 @@ gbp_contract_update (epg_id_t src_epg, epg_id_t dst_epg, u32 acl_index) gm->acl_plugin.register_user_module ("GBP ACL", "src-epg", "dst-epg"); } - p = hash_get (gbp_contract_db.gc_hash, key.as_u64); + p = hash_get (gbp_contract_db.gc_hash, key.as_u32); if (p != NULL) { value.as_u64 = p[0]; @@ -56,7 +56,7 @@ gbp_contract_update (epg_id_t src_epg, epg_id_t dst_epg, u32 acl_index) gm->acl_plugin.get_lookup_context_index (gm->gbp_acl_user_id, src_epg, dst_epg); value.gc_acl_index = acl_index; - hash_set (gbp_contract_db.gc_hash, key.as_u64, value.as_u64); + hash_set (gbp_contract_db.gc_hash, key.as_u32, value.as_u64); } if (value.gc_lc_index == ~0) @@ -77,13 +77,13 @@ gbp_contract_delete (epg_id_t src_epg, epg_id_t dst_epg) .gck_dst = dst_epg, }; - p = hash_get (gbp_contract_db.gc_hash, key.as_u64); + p = hash_get (gbp_contract_db.gc_hash, key.as_u32); if (p != NULL) { value.as_u64 = p[0]; gm->acl_plugin.put_lookup_context_index (value.gc_lc_index); } - hash_unset (gbp_contract_db.gc_hash, key.as_u64); + hash_unset (gbp_contract_db.gc_hash, key.as_u32); } void @@ -93,7 +93,7 @@ gbp_contract_walk (gbp_contract_cb_t cb, void *ctx) gbp_contract_value_t value; /* *INDENT-OFF* */ - hash_foreach(key.as_u64, value.as_u64, gbp_contract_db.gc_hash, + hash_foreach(key.as_u32, value.as_u64, gbp_contract_db.gc_hash, ({ gbp_contract_t gbpc = { .gc_key = key, @@ -174,7 +174,7 @@ gbp_contract_show (vlib_main_t * vm, vlib_cli_output (vm, "Contracts:"); /* *INDENT-OFF* */ - hash_foreach (key.as_u64, value.as_u64, gbp_contract_db.gc_hash, + hash_foreach (key.as_u32, value.as_u64, gbp_contract_db.gc_hash, { vlib_cli_output (vm, " {%d,%d} -> %d", key.gck_src, key.gck_dst, value.gc_acl_index); |