From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com [209.85.217.176]) by dpdk.org (Postfix) with ESMTP id CC4F9567D for ; Sat, 10 Jan 2015 02:20:26 +0100 (CET) Received: by mail-lb0-f176.google.com with SMTP id p9so10798495lbv.7 for ; Fri, 09 Jan 2015 17:20:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=9oiorkTJhQ91mGG8KCCUXoTxVGi3nu8GoGFON+0rK7I=; b=jyJLlaRWDL4drJVghNLWZnJXdHkLYoMRIiNqP0+LRCov4Vq7yc3UmyVwCCHPuAkZtF IVSRM8grrn5FGiMTv7aFccpd0RWYksxHoxbG1ZEZvFS2aL7MHE3bH1kbfF1NIart9rfT buYkJduGlPauHYYVkD6ZdBjOHIgkMZd1u5KSaHpQCKHTMsZkmoGmKUQUHjKK1TaywAf0 Uk+bgNQ+84KuAk9zFPNTgbZafMxI30dNnisQX/ssebQPXehj+EPcLI2KgbtqYPVaKePN 2VJMST1c1GD8UbguDpTk+Z855BWaOgHY3NEtmSZWWNiKweH3Egl0rqFNO/Ub1Mh+xykN K07g== X-Gm-Message-State: ALoCoQnbeWttn78ydYmJYiCX8VXn0SHOstNuMzQtpcYRRbzuOEUvPJqDKqW3aB4/5u+RphDhzWrk MIME-Version: 1.0 X-Received: by 10.152.2.8 with SMTP id 8mr24035389laq.97.1420852826375; Fri, 09 Jan 2015 17:20:26 -0800 (PST) Received: by 10.112.26.136 with HTTP; Fri, 9 Jan 2015 17:20:26 -0800 (PST) Date: Fri, 9 Jan 2015 17:20:26 -0800 Message-ID: From: Aziz Hajee To: "dev@dpdk.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] KNI interface operational state UP issue X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jan 2015 01:20:27 -0000 I am using the dpdk1.6.0r1 The rte_kni.lo is loaded: lsmod | grep kni rte_kni 279134 1 however, the ifconfig vEth0, and vEth1 does not show link up ? How do i get the operational state up for these interfaces. $ sudo tcpdump -i vEth0 tcpdump: vEth0: That device is not up ifconfig vEth0 vEth0 Link encap:Ethernet HWaddr 00:00:00:00:00:00 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:12 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:3388 (3.3 KB) TX bytes:0 (0.0 B) ifconfig vEth1 vEth1 Link encap:Ethernet HWaddr 00:00:00:00:00:00 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:60 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:10252 (10.2 KB) TX bytes:0 (0.0 B) These KNI interfaces are created as per dmeg below from the CREATE IOCTL. sudo ifconfig vEth0 192.168.0.11 netmask 255.255.0.0 SIOCSIFFLAGS: Timer expired aziz@fast-1:~/stm15-0108/stm/dpdk/dpdk-1.6.0r1_ss/lib/librte_eal/linuxapp/kni$ ifconfig vEth0 vEth0 Link encap:Ethernet HWaddr 90:e2:ba:5f:1a:64 inet addr:192.168.0.11 Bcast:192.168.255.255 Mask:255.255.0.0 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:50 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:14488 (14.4 KB) TX bytes:0 (0.0 B) Trying to set the vEth0 up, looks like it is doing the callback in the dpdk to the corresponding PMD NIC interface, and not the vEth0 kernel interface. Thanks, -aziz =========================================== dmesg shows the KNI module driver and creating the KNI interfaces: [ 1349.192958] KNI: ######## DPDK kni module loading ######## [ 1349.193003] KNI: loopback disabled [ 1349.193004] KNI: ######## DPDK kni module loaded ######## ..... [ 1503.695034] KNI: Single kernel thread for all KNI devices [ 1503.695109] KNI: /dev/kni opened [ 1503.695122] KNI: IOCTL num=0xc0880002 param=0x7f76c77fcb10 [ 1503.695123] KNI: Creating kni... [ 1503.695128] KNI: kni_net_init ...... ... [ 1503.695139] KNI: PCI: 06:00.00 8086:10fb [ 1503.695142] KNI: pci_bus: 06:00:00 [ 1503.734041] igb_uio 0000:06:00.0: (PCI Express:5.0GT/s:Width x8) [ 1503.734046] 90:e2:ba:5f:1a:64 [ 1503.734138] igb_uio 0000:06:00.0 (unregistered net_device): MAC: 2, PHY: 0, PBA No: E68793-006 [ 1503.734197] igb_uio 0000:06:00.0 (unregistered net_device): Enabled Features: RxQ: 1 TxQ: 1 [ 1503.734226] igb_uio 0000:06:00.0 (unregistered net_device): Intel(R) 10 Gigabit Network Connection [ 1503.734228] KNI: PCI found: pci=0xffff882ff99db000, lad_dev=0xffff882ff33c0000 [ 1503.734674] KNI: IOCTL num=0xc0880002 param=0x7f76c77fcb10 [ 1503.734675] KNI: Creating kni... [ 1503.734680] KNI: kni_net_init ....... [ 1503.734690] KNI: PCI: 06:00.01 8086:10fb [ 1503.734693] KNI: pci_bus: 06:00:00 [ 1503.734694] KNI: pci_bus: 06:00:01 [ 1503.774033] igb_uio 0000:06:00.1: (PCI Express:5.0GT/s:Width x8) [ 1503.774038] 90:e2:ba:5f:1a:65 [ 1503.774129] igb_uio 0000:06:00.1 (unregistered net_device): MAC: 2, PHY: 0, PBA No: E68793-006 [ 1503.774154] igb_uio 0000:06:00.1 (unregistered net_device): Enabled Features: RxQ: 1 TxQ: 1 [ 1503.774169] igb_uio 0000:06:00.1 (unregistered net_device): Intel(R) 10 Gigabit Network Connection [ 1503.774184] KNI: PCI found: pci=0xffff882ff99dc000, lad_dev=0xffff882ff3870000