From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] e1000: enable allmulticast support for VF Date: Mon, 15 Jun 2015 17:09:14 +0200 Message-ID: <4826575.vIM4VYrcXt@xps13> References: <1432824407-11415-1-git-send-email-yury.kylulin@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit To: dev@dpdk.org Return-path: Received: from mail-wg0-f48.google.com (mail-wg0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id 8B456C310 for ; Mon, 15 Jun 2015 17:10:13 +0200 (CEST) Received: by wgzl5 with SMTP id l5so46517401wgz.3 for ; Mon, 15 Jun 2015 08:10:12 -0700 (PDT) In-Reply-To: <1432824407-11415-1-git-send-email-yury.kylulin@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" We still have no maintainer for e1000. Anyone to double-check this short patch? 2015-05-28 17:46, Yury Kylulin: > Add support to enable and disable reception of all multicast packets by the VF using standard API > rte_eth_allmulticast_enable()/rte_eth_allmulticast_disable(). > > Signed-off-by: Yury Kylulin [...] > +static void > +igbvf_allmulticast_enable(struct rte_eth_dev *dev) > +{ > + struct e1000_hw *hw = E1000_DEV_PRIVATE_TO_HW(dev->data->dev_private); > + > + e1000_promisc_set_vf(hw, e1000_promisc_multicast); > +} > + > +static void > +igbvf_allmulticast_disable(struct rte_eth_dev *dev) > +{ > + struct e1000_hw *hw = E1000_DEV_PRIVATE_TO_HW(dev->data->dev_private); > + > + e1000_promisc_set_vf(hw, e1000_promisc_disabled); > +} The values come from this enum: enum e1000_promisc_type { e1000_promisc_disabled = 0, /* all promisc modes disabled */ e1000_promisc_unicast = 1, /* unicast promiscuous enabled */ e1000_promisc_multicast = 2, /* multicast promiscuous enabled */ e1000_promisc_enabled = 3, /* both uni and multicast promisc */