On Sun, Jan 29, 2017 at 7:57 AM, Vamsi Krishna <vamsi.attun...@gmail.com> wrote: > Hi, > > In the current ODP PKTIO APIs, there are calls to get mtu and mac > information of the pktio interfaces. I did not find any APIs to configure > the mtu and mac address of the pktio interface from the application. > > Could someone comment on the purpose of not having those routines along > with mtu_get and mac_get api. > > OR are there any APIs to serve these purpose, am I missing those. >
All ODP APIs are developed in response to use cases. While data planes need to query things like MTU and default MAC addresses, setting these are typically control plane functions so the expectation is that such items are set outside the scope of ODP and ODP applications. If you have a use-case for adding ODP APIs to cover these areas, please describe it and how they would work. Were ODP to add such a feature, it would likely show up as a new capability queried by odp_pktio_capability() similar to how the indication of whether the application can control loopback mode is communicated. > > > *Regards,* > > *A Vamsi*