From: "Zhao1, Wei" <wei.zhao1@intel.com>
To: Ravi Kerur <rkerur@gmail.com>, dpdk-dev <dev@dpdk.org>
Subject: Re: [dpdk-dev] Q on IXGBE (dpdk 19.11)
Date: Sun, 28 Jun 2020 01:23:25 +0000 [thread overview]
Message-ID: <MWHPR11MB1391C0AFD2097A5A2F4112DDB7910@MWHPR11MB1391.namprd11.prod.outlook.com> (raw)
In-Reply-To: <CAFb4SLDa_TZryrkWqr6OH5o6p75SVpiN3FOzAtcadsurLRqtmA@mail.gmail.com>
Hi,
> -----Original Message-----
> From: dev <dev-bounces@dpdk.org> On Behalf Of Ravi Kerur
> Sent: Thursday, June 25, 2020 10:57 AM
> To: dpdk-dev <dev@dpdk.org>
> Subject: [dpdk-dev] Q on IXGBE (dpdk 19.11)
>
> 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?
It is normal behavior for ixgbe, all vf use the same MAT.
>
>
> Thanks,
>
> Ravi
prev parent reply other threads:[~2020-06-28 1:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-25 2:57 Ravi Kerur
2020-06-28 1:23 ` Zhao1, Wei [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=MWHPR11MB1391C0AFD2097A5A2F4112DDB7910@MWHPR11MB1391.namprd11.prod.outlook.com \
--to=wei.zhao1@intel.com \
--cc=dev@dpdk.org \
--cc=rkerur@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).