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 <vpp-dev@lists.fd.io> on behalf of hemant via 
lists.fd.io <hemant=mnkcg....@lists.fd.io>
Date: Friday, 16 April 2021 at 19:18
To: hem...@mnkcg.com <hem...@mnkcg.com>, vpp-dev@lists.fd.io 
<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 <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
Subject: [vpp-dev] dst mac-address look up?

I read this link:  
https://fdio-vpp.readthedocs.io/en/latest/gettingstarted/developers/fib20/arpentries.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
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19232): https://lists.fd.io/g/vpp-dev/message/19232
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]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to