From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ernst.netinsight.se (ernst.netinsight.se [194.16.221.21]) by dpdk.org (Postfix) with SMTP id BE3932A07 for ; Thu, 28 May 2015 11:11:38 +0200 (CEST) Received: from [10.100.1.152] (unverified [10.100.1.152]) by ernst.netinsight.se (EMWAC SMTPRS 0.83) with SMTP id ; Thu, 28 May 2015 11:11:34 +0200 Message-ID: <5566DBC7.4090409@netinsight.net> Date: Thu, 28 May 2015 11:11:35 +0200 From: =?windows-1252?Q?Simon_K=E5gstr=F6m?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: dev@dpdk.org, helin.zhang@intel.com, stephen@networkplumber.org References: <20150507151754.1620c4cb@miho> In-Reply-To: <20150507151754.1620c4cb@miho> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH / RFC] kni: Add set_rx_mode callback to handle multicast groups 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: Thu, 28 May 2015 09:11:39 -0000 Stephen, Helin, perhaps you have some comment about this patch? // Simon On 2015-05-07 15:17, Simon Kagstrom wrote: > This is needed to add / remove interfaces in multicast groups via the > ip tool. > > The callback does nothing - the same as the kernel tun.c. > > Signed-off-by: Simon Kagstrom > --- > Marked RFC since I'm by no means an expert on this. We noticed this > when playing with KNI and IGMP handling. > > lib/librte_eal/linuxapp/kni/kni_net.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/lib/librte_eal/linuxapp/kni/kni_net.c > b/lib/librte_eal/linuxapp/kni/kni_net.c index dd95db5..cf93c4b 100644 > --- a/lib/librte_eal/linuxapp/kni/kni_net.c > +++ b/lib/librte_eal/linuxapp/kni/kni_net.c > @@ -495,6 +495,11 @@ kni_net_ioctl(struct net_device *dev, struct ifreq > *rq, int cmd) return 0; > } > > +static void > +kni_net_set_rx_mode(struct net_device *dev) > +{ > +} > + > static int > kni_net_change_mtu(struct net_device *dev, int new_mtu) > { > @@ -645,6 +650,7 @@ static const struct net_device_ops > kni_net_netdev_ops = { .ndo_start_xmit = kni_net_tx, > .ndo_change_mtu = kni_net_change_mtu, > .ndo_do_ioctl = kni_net_ioctl, > + .ndo_set_rx_mode = kni_net_set_rx_mode, > .ndo_get_stats = kni_net_stats, > .ndo_tx_timeout = kni_net_tx_timeout, > .ndo_set_mac_address = kni_net_set_mac, >