From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 70B3CA0537; Sat, 25 Jan 2020 03:09:51 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7F745DE3; Sat, 25 Jan 2020 03:09:50 +0100 (CET) Received: from mail-qk1-f193.google.com (mail-qk1-f193.google.com [209.85.222.193]) by dpdk.org (Postfix) with ESMTP id B44E43B5 for ; Sat, 25 Jan 2020 03:09:49 +0100 (CET) Received: by mail-qk1-f193.google.com with SMTP id x1so4037064qkl.12 for ; Fri, 24 Jan 2020 18:09:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=ttSCV7gd+2mhhz6qj4LnIx3AJXLWY8Mtcn4V3/4Ka/Y=; b=LL/bjJQBu/vw+ImvcnwIeU8d7uqiYNk6Rfn82+DNyaPVlCewFB4dbv0sfaLkOlssEQ l1UNU2qCvPE10/cwasJ/fdtvaMV3Fil9B2RnQWDFDIGTkhqWEyUJbFEQhsLJzBicxYuU kWcKdDOubjropAt13YdnBkwp+k8DqvtDJIhUwAUxGkXQCjJEi2MYU43dnQiyyU3ZmqHq rVUBvzM3Hlk1mrD0ud1mn3lPRQOObsViDRUtIs9TqQwG7ls6FRbVaVXlA8tLN8qfaoiI RrmKhtglQeyF12bC5FoVimHhNpkKsmFVn/KWMaVBW9LrJA9xu7b+wjoYLonosB2IDqL9 Oj9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=ttSCV7gd+2mhhz6qj4LnIx3AJXLWY8Mtcn4V3/4Ka/Y=; b=RSuvReS+DI+2E5PaxwakzM72fOS1bxkXVB3jVDNkNMxI6ZGs925fsSQ7KAxIn0VaD4 eM68NIVtzu5AgYytJqrFVEgQV53hwX2ZzedTXby89+42UFsQG5lOvGDzWp6QK84sELC5 TL8T5k+mUfFJ38lCq1VntkU3WZeEF+ZSMnzJphsz5JSXdmU4ZJPX8XmzBivXSotkb6K9 aVbw/aSqJBY8cWrQtUqhA4ECf5tlO3AE3QPVzjVNhRvWUUrblbKZFg0uELXV7sEZqf88 jRQNhqVajJ5x9U4Aii0SXEsZx/b13u6DPADTxRbST9eJhTPLt6RxRWJgsqT4nUDUFvDt Y/8Q== X-Gm-Message-State: APjAAAXYrGoSui20ktVgkdsd0FaX5EVRER5drYz6hvEJ7qaIJWyUqIks AsC/jmRscw95xF7IA3TFUtswgJLJ6+FnenfFQfZY5S/X X-Google-Smtp-Source: APXvYqw8lVcAnN2CeAZcJ2WOR4xYxQTy6WsmUjpZbXqXc/zaG5qEgcPoKVRbHnN2yh6EjfZ388p6iEqWbiUVQ3g2Qkg= X-Received: by 2002:a37:52d5:: with SMTP id g204mr6133134qkb.215.1579918188591; Fri, 24 Jan 2020 18:09:48 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Srinivasan J Date: Sat, 25 Jan 2020 07:39:37 +0530 Message-ID: To: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] Kni interface unable to receive ipv6 solicited node multicast addressed frames X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Calling rte_eth_allmulticast_enable() in the DPDK KNI sample app solved the issue. Sharing the fix so that it will be helpful for others facing similar issue. Regards, Srini /dpdk-stable-18.08.1/examples/kni/main.c @@ -618,8 +619,10 @@ rte_exit(EXIT_FAILURE, "Could not start port%u (%d)\n", (unsigned)port, ret); - if (promiscuous_on) + if (promiscuous_on) { + rte_eth_allmulticast_enable(port); rte_eth_promiscuous_enable(port); + } Corresponding flags/settings in the dVswitch post calling rte_eth_allmulticast_enable() in KNI app. /net/portsets/DvsPortset-0/ports/50331671/> cat status port { port index:23 portCfg: dvPortId:17 clientName:Ubuntu 18 64bit.eth1 clientType:port types: 5 -> VMM Virtual NIC clientSubType:port types: 9 -> Vmxnet3 Client world leader:180572 flags:port flags: 0xc01d3 -> IN_USE ENABLED WORLD_ASSOC RX_COALESCE TX_COALESCE TX_COMP_COALESCE CONNECTED MULTICAST_ROUTER Impl customized blocked flags:0x00000000 Passthru status:: 0x20 -> DISABLED_BY_PG fixed Hw Id:00:50:56:80:b3:6e: ethFRP:frame routing { requested:filter { flags:0x0000000d unicastAddr:00:50:56:80:b3:6e: numMulticastAddresses:0 multicastAddresses: LADRF:[0]: 0x0 [1]: 0x0 } accepted:filter { flags:0x0000000d unicastAddr:00:50:56:80:b3:6e: numMulticastAddresses:0 multicastAddresses: LADRF:[0]: 0x0 [1]: 0x0 } } filter supported features:features: 0 -> NONE filter properties:properties: 0 -> NONE rx mode:properties: 0 -> INLINE tune mode:Tuning mode: 0 -> default } On Thu, Jan 23, 2020 at 9:06 PM Srinivasan J wrote: > > On further investigation, it' seen that the dvSwitch does not have any > multicast MAC registered when using DPDK vmxnet3 poll mode driver > along with the KNI sample app post configuring IPv6 address on the > vEth0 KNI interface. The same interface when used with the kernel > driver works fine. Any help or pointers are really appreciated. > > Regards, > Srini > > Non Working case: Using DPDK sample KNI interface in the same Ubuntu > ================ > /net/portsets/DvsPortset-0/ports/50331667/> cat status > port { > port index:19 > portCfg: > dvPortId:17 > clientName:Ubuntu 18 64bit.eth1 > clientType:port types: 5 -> VMM Virtual NIC > clientSubType:port types: 9 -> Vmxnet3 Client > world leader:180572 > flags:port flags: 0x401d3 -> IN_USE ENABLED WORLD_ASSOC RX_COALESCE > TX_COALESCE TX_COMP_COALESCE CONNECTED > Impl customized blocked flags:0x00000000 > Passthru status:: 0x20 -> DISABLED_BY_PG > fixed Hw Id:00:50:56:80:b3:6e: > ethFRP:frame routing { > requested:filter { > flags:0x00000019 > unicastAddr:00:50:56:80:b3:6e: > numMulticastAddresses:0 > multicastAddresses: > LADRF:[0]: 0x0 > [1]: 0x0 > } > accepted:filter { > flags:0x00000009 > unicastAddr:00:50:56:80:b3:6e: > numMulticastAddresses:0 > multicastAddresses: > LADRF:[0]: 0x0 > [1]: 0x0 > } > } > filter supported features:features: 0 -> NONE > filter properties:properties: 0 -> NONE > rx mode:properties: 0 -> INLINE > tune mode:Tuning mode: 0 -> default > } > > Working case: Using Kernel interface in Ubuntu > =========== > /net/portsets/DvsPortset-0/ports/50331667/> cat status > port { > port index:19 > portCfg: > dvPortId:17 > clientName:Ubuntu 18 64bit.eth1 > clientType:port types: 5 -> VMM Virtual NIC > clientSubType:port types: 9 -> Vmxnet3 Client > world leader:180572 > flags:port flags: 0x401d3 -> IN_USE ENABLED WORLD_ASSOC RX_COALESCE > TX_COALESCE TX_COMP_COALESCE CONNECTED > Impl customized blocked flags:0x00000000 > Passthru status:: 0x20 -> DISABLED_BY_PG > fixed Hw Id:00:50:56:80:b3:6e: > ethFRP:frame routing { > requested:filter { > flags:0x0000000b > unicastAddr:00:50:56:80:b3:6e: > numMulticastAddresses:6 > multicastAddresses:01:00:5e:00:00:01,01:80:c2:00:00:00,01:80:c2:00:00:03,01:80:c2:00:00:0e,33:33:00:00:00:01,33:33:ff:80:b3:6e, > LADRF:[0]: 0x0 > [1]: 0x0 > } > accepted:filter { > flags:0x0000000b > unicastAddr:00:50:56:80:b3:6e: > numMulticastAddresses:6 > multicastAddresses:01:00:5e:00:00:01,01:80:c2:00:00:00,01:80:c2:00:00:03,01:80:c2:00:00:0e,33:33:00:00:00:01,33:33:ff:80:b3:6e, > LADRF:[0]: 0x0 > [1]: 0x0 > } > } > filter supported features:features: 0x1 -> LRO > filter properties:properties: 0 -> NONE > rx mode:properties: 0 -> INLINE > tune mode:Tuning mode: 0 -> default > } > > On Fri, Jan 17, 2020 at 10:56 PM Srinivasan J wrote: > > > > Hi, > > I observed that DPDK kni interface is not able to receive solicited > > node multicast addressed (derived from the IPv6 address configured on > > vEth0 interface) when the kni sample app is being run in Ubuntu VM on > > ESXI server. The only way to have the frames reach the kni interface > > is by setting the promiscuous mode in dvSwitch. However regular kernel > > interface with IPv6 address on the same vmxnet3 port works fine > > without having to set promiscuous mode in the dvSwitch. Has anyone > > seen this issue before? Any suggestions to have kni interface working > > with ipv6 addresses in non promiscuous mode of dvSwitch. > > > > Ubuntu version used = Ubuntu 18.04.3 LTS > > DPDK version: 18.08.1 > > VMware ESXI 6.5.0 > > > > auto@auto_ubuntu18:~/source/dpdk-stable-18.08.1/usertools$ uname -a > > Linux auto_ubuntu18 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 > > 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux > > > > sudo /tmp/kni -l 6-7 -- -P -p 0x1 --config="(0,6,7)" > > > > Thanks, > > Srini