diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-10-14 18:55:33 +0300 |
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-10-14 18:55:33 +0300 |
| commit | eb4135bad2f3dd633394ae7b4647168565c7b5b6 (patch) | |
| tree | f6224b39f939c1ade279fe9f694b8e610495ac1c /bfdd/bfd.h | |
| parent | 7b3e821076043c1f141e1235557344b9e0b345d4 (diff) | |
bfdd: cleanup vrf handling in packet receive
We get the pointer to the interface on which the packet was received
right at the beginning of bfd_recv_cb. So let's use this pointer and
don't perform additional interface lookups.
Also explain in more detail how we process VRF id with different
backends.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'bfdd/bfd.h')
| -rw-r--r-- | bfdd/bfd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfdd/bfd.h b/bfdd/bfd.h index 7d5b7887c7..dfe1a20303 100644 --- a/bfdd/bfd.h +++ b/bfdd/bfd.h @@ -600,7 +600,8 @@ void ptm_bfd_start_xmt_timer(struct bfd_session *bfd, bool is_echo); struct bfd_session *ptm_bfd_sess_find(struct bfd_pkt *cp, struct sockaddr_any *peer, struct sockaddr_any *local, - ifindex_t ifindex, vrf_id_t vrfid, + struct interface *ifp, + vrf_id_t vrfid, bool is_mhop); struct bfd_session *bs_peer_find(struct bfd_peer_cfg *bpc); |
