Thank you John
On Mon, Mar 12, 2018 at 9:11 PM, John Lo (loj) <l...@cisco.com> wrote:
> The functions in the area you are interested may be the unformat functions
> unformat_vnet_sw_interface(), unformat_vnet_hw_interface() in
> src/vnet/interface_format.c used by VPP CLI to get sw_if_index or hw_if_index
> from user specified interface name. -John
> -----Original Message-----
> From: email@example.com [mailto:firstname.lastname@example.org] On Behalf Of Sara
> Sent: Monday, March 12, 2018 11:22 AM
> To: email@example.com
> Subject: Re: [vpp-dev] VPP As A Router Between Namespaces - 10ms latency
> btw - is there (like in linux) a vpp function helper
> "interface-name-to-if-index" - which its input is interface-name and output
> is vpp-if-index ?
> Thank you
> On Mon, Mar 12, 2018 at 5:16 PM, Sara Gittlin <sara.gitt...@gmail.com> wrote:
>> Thank you Jon
>> This indeed very helpful !
>> On Mon, Mar 12, 2018 at 5:01 PM, Jon Loeliger <j...@netgate.com> wrote:
>>> On Mon, Mar 12, 2018 at 3:57 AM, Sara Gittlin
>>>> Dear Florin,
>>>> When using the command " create tap rx-ring-size 4096 tx-ring-size 4096 "
>>>> VPP create the devices with default names tap0, tap1, ..tapn.
>>>> Is it possible for the user to set the name in the 'create' command line ?
>>>> Thank you in advance
>>> Hi Sara,
>>> Welcome to my battle!
>>> Luckily, there is a way to do as you wish! If you set the "instance"
>>> value <n> during the tap_create API call, or use "id <n>" during the
>>> "create tap ..." CLI command, you will create an interface of the
>>> name "tap<n>". You may not use a different prefix than "tap", but at
>>> least you can know what the name will be when it is created.
You receive all messages sent to this group.
View/Reply Online (#8515): https://lists.fd.io/g/vpp-dev/message/8515
View All Messages In Topic (15): https://lists.fd.io/g/vpp-dev/topic/14091118
Mute This Topic: https://lists.fd.io/mt/14091118/21656
New Topic: https://lists.fd.io/g/vpp-dev/post
Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos