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 84F47A0350; Thu, 25 Jun 2020 04:57:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BD5932B9C; Thu, 25 Jun 2020 04:57:09 +0200 (CEST) Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) by dpdk.org (Postfix) with ESMTP id 204642B96 for ; Thu, 25 Jun 2020 04:57:08 +0200 (CEST) Received: by mail-lj1-f179.google.com with SMTP id 9so4817665ljv.5 for ; Wed, 24 Jun 2020 19:57:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=K57fr2Bv3neTxJ7Mxq4UodfLKb0vldvUI/LkFk3M5oo=; b=QmyfQNsqovHcWJcPyGbfd6EVoj9U7/hW8JDgTJlWTyo3d0Z9KzCgJkbA+FZi9jN4q/ LkSitlq0BSZCyVNHk5NQqbwdajXc1Tfw14NYc1LyyEiS/IP7XoqRpe2n944gGxK/LPsN VlLn9ZekYGHM2+sKcxZstzeCQcE3ilzhqIUpwFiMyuU1qKB/HJRJTWyQQPTRE0tOpVCM M1SRwD6UST1qRbMjm2q1mvDJYiAU1qFQGd9/gS886H674lvHuc96it1NJLEvjPQYs6sq DumtLwj+XnqnDDl1MmItH4eKjO43s+4RJlLYLnEYW+fHclVTOk0qU9mP59/kILZwX4mX 13nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=K57fr2Bv3neTxJ7Mxq4UodfLKb0vldvUI/LkFk3M5oo=; b=NQjQ0E9IDqS+2PtbqyTVcPyfBLN74cC/O2uGpROCb7zkOVybOZjxsK/0dYekBsLvRF eBwMXczrIJW2KxV/V6D3VB+TrSjlMXamSEfcAUqHZT6pv4pxsNfWu5Lf5RjSR6iPRfHt GM8pMtVVbRwG+p60AoyTsdLwo9HKEqql2Jt73PhpwpqURocQnlYz7FVGL68OnXucxQwi +kScfUHoUs4De+f543cLwommTpgQZeBdaB1LjWWsSLipMOsdxDcRRONfLDIVBp6CS98S g72uEpMFoNL6eEx+aqVMmvtYyB7YGzJSKEo+EoSHksonUPWFhsG8AHWNF0Fo7Xmljyq7 6gsw== X-Gm-Message-State: AOAM531T0uLNflVVsG2woA6nP1zEhrSHkB/grFQnjKIH0wt1srtU2iwW 2daP+EvTCNMYVSc0juJ3n/gJHSRVuzSVUAtM1aH1Ny/uA3c= X-Google-Smtp-Source: ABdhPJw0OmuusEjBcP+ccWjSLb0zOc6DxouYDo8ij4IBFe0Cdaqkwfz8tCmFr+xDq26hO5vQ3sE2G5JTGglNS9is9lg= X-Received: by 2002:a2e:750c:: with SMTP id q12mr15612056ljc.142.1593053827081; Wed, 24 Jun 2020 19:57:07 -0700 (PDT) MIME-Version: 1.0 From: Ravi Kerur Date: Wed, 24 Jun 2020 19:57:19 -0700 Message-ID: To: dpdk-dev Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Q on IXGBE (dpdk 19.11) 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" DPDK team, I have a use-case for multicast and wanted to know the current behavior of ixgbe pf and vf driver so my understanding is correct. use-case: 2 VF's (vf1 and vf2 ) from ixgbe is assigned to 2 VM's (vm1 and vm2) vf1 -- registers to mcast 01:00:5e:00:00:01, 01:00:5e:00:00:0a vf2 -- registers to mcast 01:00:5e:00:00:0a Flow: ixgbe_update_mc_addr_list_vf creates a vector based on bits to be used. /* use bits [47:36] of the address */ /* use bits [46:35] of the address */ /* use bits [45:34] of the address */ /* use bits [43:32] of the address */ VFs (vf1 and vf2) sends IXGBE_VF_SET_MULTICAST to PF PF processes IXGBE_VF_SET_MULTICAST in ixgbe_vf_set_multicast Reads IXGBE_READ_REG(hw, IXGBE_VMOLR(vf)); Updates IXGBE_READ_REG(hw, IXGBE_MTA(mta_idx)); with the corresponding bit associated with mcast mac address Updates ROMPE bit which allows PF to use MTA for mcast packets. vmolr |= IXGBE_VMOLR_ROMPE; IXGBE_WRITE_REG(hw, IXGBE_VMOLR(vf), vmolr); IXGBE_READ_REG(hw, IXGBE_MTA(mta_idx)); Both vf1 and vf2 have indicated to use MTA for mcast packets. When packets with dst mac 01:00:5e:00:00:01 arrives, PF checks for MTA bit associated with the mcast mac, which will be set. Since both vf1 and vf2 have indicated to use MTA, packets will be delivered to both vm1 and vm2. vm1 never intended to receive mcast packets for that mac. Let me know if this is correct? Thanks, Ravi