From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f47.google.com (mail-oi0-f47.google.com [209.85.218.47]) by dpdk.org (Postfix) with ESMTP id 6D06B5694 for ; Sat, 19 Nov 2016 06:25:12 +0100 (CET) Received: by mail-oi0-f47.google.com with SMTP id 128so110725326oih.0 for ; Fri, 18 Nov 2016 21:25:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=yoVD3KThaPFSskKktzYW/2pgwOnSy4SKnshW0VpRLQw=; b=ifZX2YlrvPrHOWsxmzJVQjlrFxhqoAGI5Mbrc5X3E1O/5eC/bJYBKc7ikT/mfn3dZK zADZJ9amZ2wOhqpJfxDQmvXLzkofT2PzYgowpxDszvI3XoklVzA7COeOJvccXoO+NoI3 ZKzyhqSXH9QH+oVEaQYQFZpGZ60WlIxfU0JkQJAlp0d9w7oEY6neWrbyKitcu+f8r9IO zLnNxXPEYpyK8W5Yw3Rh3mP3EGRsInsfuCuuWYmMJ6eFAfmrwVwWxEhlzycVQptz3Z4U B40qJTlM7M5CHZcJfKwcT1ozpc2j4GBbvLWYCVBmexQA7DSeM2KrhoBym5rf4wZ936FS sE/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=yoVD3KThaPFSskKktzYW/2pgwOnSy4SKnshW0VpRLQw=; b=j3P3ggweVdZXXiV0zmh+IuRoHjAp9Ho/Ci6bGFc4JbJt+VIJBX95Ue5rdyCOlcVzvw WeCOc00EUgz+J56fBjfjCskondcQoZhpyaDJmXb2b60EMDkVNFFHoQkCdPFVPGjWEMjD 9EE/b6l9ZrTqFTvXQdxHGLl2rwmx0XA9YDkT9HbUpK5Rbe0Q8hUgzhA0RFUhA51POjPe WTzWw9iQhJK1kfGTxXS5Ltgp6uca39tL4nsCnnwAqBD4B+mSlkxk5Mx2KVQEYeXOHcEn SdXBs5mvEwarEVq03fYljrndB6bO0d+myI6G19yCdKW1yeByzJYajgAvlwNJ6D3SOr5c lAKw== X-Gm-Message-State: AKaTC01Zc4f5EuN3uu9jivF/Ms6G5snxS4sNJ1nQkfjW7OeuFHGGBR0cbzhmlbi8+bI9egVD7nPVTlpGAJyp7w== X-Received: by 10.202.204.66 with SMTP id c63mr1975730oig.4.1479533111604; Fri, 18 Nov 2016 21:25:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.202.3.3 with HTTP; Fri, 18 Nov 2016 21:25:11 -0800 (PST) From: John Pearson Date: Fri, 18 Nov 2016 21:25:11 -0800 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] KNI Integration X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Nov 2016 05:25:12 -0000 Hi, I have a DPDK application with two interfaces acting as a load balancer. On one of the interfaces, I am allocating a KNI interface so that certain packets can be processed by the kernel. To test I have a DHCP server connected to the physical port to which KNI is bound. I'm having 3 issues: 1. kni_config_network_interface function set on the rte_kni_ops struct when allocating the port is called multiple times when run "ifconfig vEth0 up". This function is called 2 or 3 times every time. 2. After I receive DHCP, when I ping google.com to test, I get multiple packets that are duplicates, which are repeats of the same ICMP Sequence and with message "DUP!" attached (http://unix.stackexchange.com/a/13256) 3. After a while of running the interface KNI and using it process packets, usually after transmitting 200-300 Pings, the interface "dies out" and stops reading or sending packets to the kernel. The statistics for ping: --- google.com ping statistics --- 302 packets transmitted, 198 received, +95 duplicates, +49 errors, 34% packet loss, time 310119ms