Neale,
I updated the code catering to your comments. https://gerrit.fd.io/r/c/vpp/+/32018 Also, at the end of the link below, there is a "key" mentioned. This is the key I am trying to support, but if an API already exists to serve such a key, I'd like to know and cancel my code changes. https://fdio-vpp.readthedocs.io/en/latest/gettingstarted/developers/fib20/ar pentries.html I have tested the changes with my private VPP plugin. Thanks, Hemant From: Neale Ranns <ne...@graphiant.com> Sent: Friday, April 16, 2021 2:54 PM To: hem...@mnkcg.com; vpp-dev@lists.fd.io Subject: Re: [vpp-dev] dst mac-address look up? Please don't change the semantics of existing APIs. Add a ip_neighbor_find API if you need one. But what is it you are trying to do? Why are you searching the neighbour table and in what context; main or worker thread? /neale From: vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io> <vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io> > on behalf of hemant via lists.fd.io <hemant=mnkcg....@lists.fd.io <mailto:hemant=mnkcg....@lists.fd.io> > Date: Friday, 16 April 2021 at 19:18 To: hem...@mnkcg.com <mailto:hem...@mnkcg.com> <hem...@mnkcg.com <mailto:hem...@mnkcg.com> >, vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io> <vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io> > Subject: Re: [vpp-dev] dst mac-address look up? In vpp/src/vnet/ip-neighbor/ip_neighbor.api, I don't see any API to find the ip-neighbor entry to serve the purpose below. So, first the doc at the link below should change because the API does not exist. Second, I changed, ip_neighbor_get_mac() as follows and now I have an API to help me get the next-hop mac-address if I have the next-hop IP address and link-type. Unless, I missed something, should we consider the code changes below? https://gerrit.fd.io/r/c/vpp/+/32014 Thanks, Hemant From: vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io> <vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io> > On Behalf Of hemant via lists.fd.io Sent: Thursday, April 15, 2021 4:33 PM To: vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io> Subject: [vpp-dev] dst mac-address look up? I read this link: https://fdio-vpp.readthedocs.io/en/latest/gettingstarted/developers/fib20/ar pentries.html At the end of the page, I see text that says "key for which is {interface, next-hop, link-type}." I have the data for the above key, but what API do I use to find destination mac-address? Hemant
smime.p7s
Description: S/MIME cryptographic signature
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19234): https://lists.fd.io/g/vpp-dev/message/19234 Mute This Topic: https://lists.fd.io/mt/82127329/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-