Hi

So here is output of show int and int creation of rdma mellanox nic

ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: ens2f0np0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether 04:3f:72:dc:36:9c brd ff:ff:ff:ff:ff:ff
    altname enp101s0f0np0
3: ens2f1np1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether 04:3f:72:dc:36:9d brd ff:ff:ff:ff:ff:ff
    altname enp101s0f1np1
4: ens1f0np0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 04:3f:72:dc:1e:84 brd ff:ff:ff:ff:ff:ff
    altname enp179s0f0np0
    inet6 fe80::63f:72ff:fedc:1e84/64 scope link
       valid_lft forever preferred_lft forever
5: ens1f1np1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 04:3f:72:dc:1e:85 brd ff:ff:ff:ff:ff:ff
    altname enp179s0f1np1
    inet6 fe80::63f:72ff:fedc:1e85/64 scope link
       valid_lft forever preferred_lft forever

Create rdma interface:

vppctl create int rdma host-if ens1f1np1 name rdma-1

Show int from vpp:

vppctl show int
              Name               Idx    State  MTU (L3/IP4/IP6/MPLS)     Counter          Count
local0                            0     down 0/0/0/0
loop0                             1      up 9000/0/0/0     tx packets                    18                                                                     tx bytes                    2164
drops                          9
ip6                            9
rdma-1                            3     down 9000/0/0/0
tap1                              2      up 9000/0/0/0     rx packets                     8                                                                     rx bytes                     952
ip6                            8


And some lcp create commands that fails

~/src/vpp# vppctl lcp create M1 host-if e1
lcp create: unknown input `'
~/src/vpp# vppctl lcp create M1 host-if rdma-1
lcp create: unknown input `'
~/src/vpp#




On 9/8/22 3:03 PM, Matthew Smith via lists.fd.io wrote:
Hi,

The help text can be displayed with '?' rather than 'help':
vpp# lcp create ?
  lcp create                               lcp create <sw_if_index>|<if-name> host-if <host-if-name> netns <namespace> [tun]

When you ran 'lcp create 1', you got a different error message than you did with the rest of your commands. That suggests that 1 is a valid sw_if_index. The command 'lcp create 1 host-if ens1f1np1' may work. Since you got an error when you tried other commands using 'e0', e0 is probably not a valid interface in your VPP instance. What interfaces are displayed by 'show interface'?

Thanks,
-Matt


On Wed, Sep 7, 2022 at 5:32 PM Paweł Staszewski <pstaszew...@itcare.pl <mailto:pstaszew...@itcare.pl>> wrote:

    Hi


    Was trying linux-cp vpp and the problem is that i cant create any
    interface with lcp because any command is like this:

    vpp# lcp create
    vpp# lcp create help
    lcp create: unknown input `'
    vpp# lcp create default
    lcp create: unknown input `'
    vpp# lcp create
    vpp# lcp create1
    lcp: unknown input `create1'
    vpp# lcp create
    vpp# lcp create  1
    lcp create: host interface name required
    vpp# lcp create  e0 host-if ens1f1np1
    lcp create: unknown input `'
    vpp# lcp create  e0 host-if
    lcp create: unknown input `'
    vpp# lcp create  e0 host-if
    lcp create: unknown input `'
    vpp# lcp create  e0  host-if
    lcp create: unknown input `'
    vpp# lcp create  e0  host-if
    lcp create: unknown input `'
    vpp# lcp create  e0  host-if
    lcp create: unknown input `'
    vpp# lcp create "e0"
    lcp create: unknown input `'
    vpp# lcp create 'e0'
    lcp create: unknown input `'
    vpp# lcp create 'e0' host-if 'abc'
    lcp create: unknown input `'
    vpp# lcp create  e0 host-if ens1f1np1
    lcp create: unknown input `'







--
Paweł Staszewski
CEO at ITCare

Cell:    +48 609911040
pstaszew...@itcare.pl

This message (including any attachments) contains confidential information 
intended
for a specific individual and purpose, and is protected by law.  If you are not 
the
intended recipient, you should delete this message.  Any disclosure, copying, or
distribution of this message, or the taking of any action based on it, is 
strictly
prohibited.

-------------------------------------------------------------------------------------

Wiadomość ta jest przeznaczona jedynie dla osoby lub podmiotu będącego jej 
adresatem i
może zawierać poufne lub uprzywilejowane informacje. Zakazane jest przeglądanie,
przesyłanie, rozpowszechnianie lub inne wykorzystywanie tych informacji, jak 
również
podejmowanie działań na ich podstawie, przez osoby lub podmioty inne niż 
zamierzony
adresat. Jeśli otrzymali Państwo tę wiadomość przez pomyłkę, prosimy o 
poinformowanie
nadawcy i usunięcie jej z komputera.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21863): https://lists.fd.io/g/vpp-dev/message/21863
Mute This Topic: https://lists.fd.io/mt/93536468/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to