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 AACECA0588; Thu, 16 Apr 2020 13:09:14 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 869BE1D683; Thu, 16 Apr 2020 13:09:14 +0200 (CEST) Received: from alln-iport-4.cisco.com (alln-iport-4.cisco.com [173.37.142.91]) by dpdk.org (Postfix) with ESMTP id 9B2321D65E for ; Thu, 16 Apr 2020 13:09:12 +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=1587035352; x=1588244952; h=from:to:cc:subject:date:message-id:mime-version; bh=3YQRC21Y1LJ/XCU+aGyXsbvKwiUPlrJwRmtlH48PEGM=; b=RB5yctWf9wYVrBLJykPI4sWy9JsuWKMcrKkBfsw4EQEZO7jIvu6w3UNJ o7ycXPtbiWfRkz6BDfvhYWMAMRUNGvsKNcGstKB1hnQD3DLUOSCuqI0fN YUU0Ea6gDFG01hFuPzhOpZKKVhvCjRXf41Lv9Ekv1FrOFXhQHjPHYJDpl I=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0BNAAA1PJhe/4sNJK1mHQEBAQkBEQU?= =?us-ascii?q?FAYFnCAELAYIogUEBATAqCow0kmaPU4F7CgEBAQwBAS8EAQGERIIMJDQJDgI?= =?us-ascii?q?DAQELAQEFAQEBAgEFBG2FYoYfUoE+DgWDJoJYJa5WgXQzhU+DTIFAgTgBh1C?= =?us-ascii?q?EZRqBQT+EX4UbhSQEsWqCTpdTDB2CQ5lyrEQCERWBUjmBV00jFYMkUBgNoCI?= =?us-ascii?q?/AQExjjYBgQ8BAQ?= X-IronPort-AV: E=Sophos;i="5.72,390,1580774400"; d="scan'208";a="464234714" Received: from alln-core-6.cisco.com ([173.36.13.139]) by alln-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 16 Apr 2020 11:09:11 +0000 Received: from XCH-RCD-001.cisco.com (xch-rcd-001.cisco.com [173.37.102.11]) by alln-core-6.cisco.com (8.15.2/8.15.2) with ESMTPS id 03GB9BHa022313 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL) for ; Thu, 16 Apr 2020 11:09:11 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:09:10 -0500 From: Jakub Grajciar To: CC: Jakub Grajciar Date: Thu, 16 Apr 2020 13:08:56 +0200 Message-ID: <20200416110856.3671-1-jgrajcia@cisco.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.61.86.203] X-ClientProxiedBy: xch-rcd-003.cisco.com (173.37.102.13) 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-6.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 --- 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; -- 2.17.1