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 6B257A0350; Thu, 25 Jun 2020 22:23:20 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 04D7429CB; Thu, 25 Jun 2020 22:23:20 +0200 (CEST) Received: from mail-ot1-f42.google.com (mail-ot1-f42.google.com [209.85.210.42]) by dpdk.org (Postfix) with ESMTP id 76D5029CB for ; Thu, 25 Jun 2020 22:23:17 +0200 (CEST) Received: by mail-ot1-f42.google.com with SMTP id m2so6499583otr.12 for ; Thu, 25 Jun 2020 13:23:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=al3SoIxj7glWPfRXEmvxoOEcisiERlymGcfr/BgRrYw=; b=BDyicMBdZlI03w0zmXmFz9oqO4OfzSOzuelb6BnCmP0Rz2mZX4AgtKHMyzwH7/vHT3 4KFl42sIQ7U5ASJ6ChTUJBf399i+otCbs18kE1HfIuLyvbzR9Q4lihxG8c2Qg/8LdRHZ OjX2Mg0RhlX5fJRZxPKc+/dCodiZK9C3Dp/MI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=al3SoIxj7glWPfRXEmvxoOEcisiERlymGcfr/BgRrYw=; b=mSyRtE15tie13gR2vxqzjp10Wz91HGkETndnjZ5Q+LNIf+i5FuZHfisqmINxaBm2bY AUXMEk0lBvBMoPoG7UBQbTAVJeWGmsEuZZq1hvOkyxT90OK7uspx5sp8u+Hi92FgiZgl P2E0zPuq/38Q5AnBdEzeS3CZbZt1JiG63ph5FZIysXr0GgLXGj/q6++bIFDxuUGgjeMF alT43juMJEmLNggM0/bxoeN2IuGs7+U1x0Oc9JKPEu0sligExsS+3NLYNWIcczIIwnTX UCQcdbEgbMtCPAoA3Kz45JRQ329ABThxCiHCWKLoR9TrY0KBMqhEsU6x6Mzp//3uJFfI mGeQ== X-Gm-Message-State: AOAM531Sjcn7Bjm5UjEt7v93rPmvwhY34uxMZLdzZjZBZlsdu90+5N+A FN+tKW7217VZqPaDmV13SsTU+tCRnQCUCGyBjV79hQ== X-Google-Smtp-Source: ABdhPJxV8swib0reun3PfchJ3Zfad0iheGbWcLGpybOTeWMscfT/udP1i8EfJ8GKQGk9LSRDtC70ePwDpi+xtl/JRMk= X-Received: by 2002:a05:6830:10c8:: with SMTP id z8mr26432050oto.95.1593116596424; Thu, 25 Jun 2020 13:23:16 -0700 (PDT) MIME-Version: 1.0 References: <4869615.bvJKNRufO7@thomas> In-Reply-To: <4869615.bvJKNRufO7@thomas> From: Ajit Khaparde Date: Thu, 25 Jun 2020 13:23:00 -0700 Message-ID: To: Thomas Monjalon Cc: David Liu , dpdk-dev , dts@dpdk.org, Lincoln Lavoie , David Marchand , Ferruh Yigit , Andrew Rybchenko , Ori Kam , Ciara Power , Ivan Ilchenko , Hemant Agrawal , Stephen Hemminger , Raslan Darawsheh , j.hendergart@f5.com, grive@u256.net Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] Promiscuous Mode Feature 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" On Wed, Jun 24, 2020 at 1:03 PM Thomas Monjalon wrote: > Hi, > > A bit of context: David is going to implement a test in DTS > for promiscuous mode: > http://doc.dpdk.org/guides/nics/features.html#promiscuous-mode > > 24/06/2020 18:18, David Liu: > > Hi all, > > > > From my understanding, the promiscuous mode feature will verify the > > functionality of promiscuous mode when it is on or off. > > You need to check in which condition the promiscuous mode can be enabled. > Some contexts may forbid this mode. untrusted VF? flow isolation mode? > But there is no way other than some logs to indicate these. Maybe we should add some state in port info to indicate this? > > > The plan for testing this feature is as follows: > > > > Sending over a packet to verify the ports are working properly before any > > testing. First to verify the promiscuous mode is enabled. With the > > promiscuous being enabled, send over a packet and check if the packet > will > > be received when sending it to a different destination mac address than > the > > host/card. Then disable the promiscuous mode. The packet will only be > > received if the mac address is the destination mac address. Otherwise, > the > > test case will be considered a failure. > > I assume you will test positive and negative in both on/off cases. > > > Please let me know if there is anything I need to add on or if there are > > certain cases I need to be aware of. > > Anyone else has ideas about what to test and corner cases? > > > > > Thanks, > > David Liu > > UNH Interoperability Lab > > >