From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <thomas.monjalon@6wind.com>
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 <dev@dpdk.org>; Mon, 15 Jun 2015 17:10:13 +0200 (CEST)
Received: by wgzl5 with SMTP id l5so46517401wgz.3
 for <dev@dpdk.org>; Mon, 15 Jun 2015 08:10:12 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:organization
 :user-agent:in-reply-to:references:mime-version
 :content-transfer-encoding:content-type;
 bh=94ZUsgrFEpQ72tiuz/zgc8/e/rEtG9XmC9UE8EXtoI8=;
 b=EwvpoaH2965Q7/EsDMVQSkRj9iN75RO9KlbfNaVXZlwGG/NPYjPGdrfWliMq39Avh8
 VhmyCQ7NdbBEnaDuzyVRiWz1h+QpIFLta2mTdZz8zzVnhHWBiN6pMkbiM6m3u77IskeC
 iC+754XO8PqTGgjMRQhTqF8ncKmzS/a52UlYuw5i96Vtx/XTCPNCavR0R+GrLmVL3pUL
 iJ9to4R6mpqGJekTw7A4bAXbxCiTFRgPuVRscDe5jJ3Vg19Z0xd4QvWH7uhIRMrDnK7a
 hzZrhRYKyoRM3cidFtECCBB4SxIJMFk6LqjRKGJSPyUfSuvJF86BZah9XnXPSOPvEj8r
 ylog==
X-Gm-Message-State: ALoCoQny3QwyDMdnryz/TyiQ/rieneWiyC0Ri2jFlzK2naOasLNfSKzD/xEwrNF35XspXCQd67os
X-Received: by 10.180.86.234 with SMTP id s10mr31929080wiz.50.1434381012024;
 Mon, 15 Jun 2015 08:10:12 -0700 (PDT)
Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136])
 by mx.google.com with ESMTPSA id m2sm16316623wiy.7.2015.06.15.08.10.10
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Mon, 15 Jun 2015 08:10:11 -0700 (PDT)
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: dev@dpdk.org
Date: Mon, 15 Jun 2015 17:09:14 +0200
Message-ID: <4826575.vIM4VYrcXt@xps13>
Organization: 6WIND
User-Agent: KMail/4.14.8 (Linux/4.0.4-2-ARCH; KDE/4.14.8; x86_64; ; )
In-Reply-To: <1432824407-11415-1-git-send-email-yury.kylulin@intel.com>
References: <1432824407-11415-1-git-send-email-yury.kylulin@intel.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
Subject: Re: [dpdk-dev] [PATCH] e1000: enable allmulticast support for VF
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches and discussions about DPDK <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Jun 2015 15:10:13 -0000

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 <yury.kylulin@intel.com>
[...]
> +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 */