summaryrefslogtreecommitdiff
path: root/bfdd/bfd.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2025-02-05 08:42:00 -0500
committerDonald Sharp <sharpd@nvidia.com>2025-02-05 08:42:00 -0500
commit6d80d0c595fd073c56f4fc5b3cd5568ef8a9d5ae (patch)
treec278ae214133e23f4b67ad6fa45b6e3d16ce09c0 /bfdd/bfd.h
parent3fabd4f4f97630ef911a83712eef4ac515a76a42 (diff)
bfdd: Use pass by reference instead of pass by value for a struct
The function bfd_key_lookup is currently sending by value for a now very large structure. Let's convert this over to pass by reference. This is noticed by coverity. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'bfdd/bfd.h')
-rw-r--r--bfdd/bfd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfdd/bfd.h b/bfdd/bfd.h
index d9119d16c2..ea8ed03ff9 100644
--- a/bfdd/bfd.h
+++ b/bfdd/bfd.h
@@ -698,7 +698,7 @@ void bfd_vrf_init(void);
void bfd_vrf_terminate(void);
struct bfd_vrf_global *bfd_vrf_look_by_session(struct bfd_session *bfd);
struct bfd_session *bfd_id_lookup(uint32_t id);
-struct bfd_session *bfd_key_lookup(struct bfd_key key);
+struct bfd_session *bfd_key_lookup(struct bfd_key *key);
struct sbfd_reflector *sbfd_discr_lookup(uint32_t discr);
struct bfd_session *bfd_id_delete(uint32_t id);
struct bfd_session *bfd_key_delete(struct bfd_key key);