From patchwork Thu Apr 16 11:10:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jakub Grajciar -X (jgrajcia - PANTHEON TECH SRO at Cisco)" X-Patchwork-Id: 68666 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 36BC9A0588; Thu, 16 Apr 2020 13:10:35 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1FF2C1D6BA; Thu, 16 Apr 2020 13:10:35 +0200 (CEST) Received: from alln-iport-5.cisco.com (alln-iport-5.cisco.com [173.37.142.92]) by dpdk.org (Postfix) with ESMTP id 06CDE1D693 for ; Thu, 16 Apr 2020 13:10:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=649; q=dns/txt; s=iport; t=1587035433; x=1588245033; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=3YQRC21Y1LJ/XCU+aGyXsbvKwiUPlrJwRmtlH48PEGM=; b=hTTRDG5A1DFimrTFsat6zWAEEzXI5hMkQZqUI543yXB5yTLzmYu5aAf6 TTqZ67wVmo1oQiV8TPTn5O9TWn8QB/8bCcuQgzq13WwQrPfjvmDQ4rZBi 97V2hhYOBoskIgrlDNThy8pYd1FcsOOWRix4PWXTPenh9qvpJl0TsXwwp s=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0A1AAC4O5he/4YNJK1mHAEBAQEBBwEBEQEEBAEBgWcHAQELAYIogUEBATAqCow0kmaPU4F7CgEBAQwBAS8EAQGERAKCCiQ0CQ4CAwEBCwEBBQEBAQIBBQRthWKFcgYnUhBRVwYOBYMmglglrlWBdDOFT4NMgUCBOAGHUIRlGoFBP4RfhRuFJASxaoJOl1MMHYJDmXKsRAIRFYFSOYFXTSMVgyRQGA2gIj8BATGONgGBDwEB X-IronPort-AV: E=Sophos;i="5.72,390,1580774400"; d="scan'208";a="473661640" Received: from alln-core-12.cisco.com ([173.36.13.134]) by alln-iport-5.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 16 Apr 2020 11:10:32 +0000 Received: from XCH-RCD-001.cisco.com (xch-rcd-001.cisco.com [173.37.102.11]) by alln-core-12.cisco.com (8.15.2/8.15.2) with ESMTPS id 03GBAVnu012546 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL) for ; Thu, 16 Apr 2020 11:10:32 GMT Received: from ja-VirtualBox.cisco.com (10.61.86.203) by XCH-RCD-001.cisco.com (173.37.102.11) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 16 Apr 2020 06:10:31 -0500 From: Jakub Grajciar To: CC: Jakub Grajciar Date: Thu, 16 Apr 2020 13:10:17 +0200 Message-ID: <20200416111017.3721-1-jgrajcia@cisco.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200416110706.3409-1-jgrajcia@cisco.com> References: <20200416110706.3409-1-jgrajcia@cisco.com> MIME-Version: 1.0 X-Originating-IP: [10.61.86.203] X-ClientProxiedBy: xch-rcd-001.cisco.com (173.37.102.11) To XCH-RCD-001.cisco.com (173.37.102.11) X-Outbound-SMTP-Client: 173.37.102.11, xch-rcd-001.cisco.com X-Outbound-Node: alln-core-12.cisco.com Subject: [dpdk-dev] [PATCH v2] net/memif: enable promisc mode 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" enable promisc mode Signed-off-by: Jakub Grajciar Reviewed-by: Ferruh Yigit --- drivers/net/memif/rte_eth_memif.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/memif/rte_eth_memif.c b/drivers/net/memif/rte_eth_memif.c index 81d71c53a..0ac38044e 100644 --- a/drivers/net/memif/rte_eth_memif.c +++ b/drivers/net/memif/rte_eth_memif.c @@ -1498,6 +1498,7 @@ memif_create(struct rte_vdev_device *vdev, enum memif_role_t role, data->numa_node = numa_node; data->dev_link = pmd_link; data->mac_addrs = ether_addr; + data->promiscuous = 1; eth_dev->dev_ops = &ops; eth_dev->device = &vdev->device;