Skip to content

Commit

Permalink
Fix build issue
Browse files Browse the repository at this point in the history
Signed-off-by: bingwang <[email protected]>
  • Loading branch information
bingwang-ms committed Mar 28, 2022
1 parent 2db29d1 commit edf56ec
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/sai_redis.h
Original file line number Diff line number Diff line change
Expand Up @@ -415,3 +415,15 @@ PRIVATE extern std::shared_ptr<sairedis::SaiInterface> redis_sai;
redis_bulk_remove_ ## ot, \
redis_bulk_set_ ## ot, \
redis_bulk_get_ ## ot,

// BULK set/get DECLARE

#define REDIS_BULK_SET_GET(OT,ot) \
REDIS_BULK_SET(OT,ot); \
REDIS_BULK_GET(OT,ot);

// BULK set/get API

#define REDIS_BULK_SET_GET_API(ot) \
redis_bulk_set_ ## ot, \
redis_bulk_get_ ## ot,
2 changes: 2 additions & 0 deletions lib/sai_redis_tunnel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ REDIS_GENERIC_QUAD(TUNNEL,tunnel);
REDIS_GENERIC_QUAD(TUNNEL_TERM_TABLE_ENTRY,tunnel_term_table_entry);
REDIS_GENERIC_QUAD(TUNNEL_MAP_ENTRY,tunnel_map_entry);
REDIS_GENERIC_STATS(TUNNEL,tunnel);
REDIS_BULK_SET_GET(TUNNEL,tunnels);

const sai_tunnel_api_t redis_tunnel_api = {

Expand All @@ -13,4 +14,5 @@ const sai_tunnel_api_t redis_tunnel_api = {
REDIS_GENERIC_STATS_API(tunnel)
REDIS_GENERIC_QUAD_API(tunnel_term_table_entry)
REDIS_GENERIC_QUAD_API(tunnel_map_entry)
REDIS_BULK_SET_GET_API(tunnels)
};

0 comments on commit edf56ec

Please sign in to comment.