<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 8/14/2025 10:05 PM, Thomas Monjalon
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:3720215.hdfAi7Kttb@thomas">
      <pre wrap="" class="moz-quote-pre">14/08/2025 12:08, Gavin Li:
</pre>
      <blockquote type="cite">
        <pre wrap="" class="moz-quote-pre">Rules for multicast MAC addresses are intended to filter multicast traffic
and are managed through multicast MAC add/remove APIs. In mlx5_dev_spawn
function, devices (PF, VFs, and SFs) retrieve the netdev-configured MAC
addresses via netlink and store them in the PMD device data, which
includes multicast MAC addresses.

To update multicast MAC address rules, create them within
mlx5_traffic_enable.
</pre>
      </blockquote>
      <pre wrap="" class="moz-quote-pre">
Sorry this is not clear.
Please explain what was the previous behaviour with a past tense,
and what is the new changed behaviour.
</pre>
    </blockquote>
    ACK<br>
    <blockquote type="cite" cite="mid:3720215.hdfAi7Kttb@thomas">
      <pre wrap="" class="moz-quote-pre">
</pre>
      <blockquote type="cite">
        <pre wrap="" class="moz-quote-pre">   BITFIELD_DECLARE(mac_own, uint64_t, MLX5_MAX_MAC_ADDRESSES);
+       BITFIELD_DECLARE(mac_pmd, uint64_t, MLX5_MAX_MAC_ADDRESSES);
</pre>
      </blockquote>
      <pre wrap="" class="moz-quote-pre">
Not sure about the naming.
What is the difference between mac_own and mac_pmd?
</pre>
    </blockquote>
    <pre wrap="" class="moz-quote-pre"><span style="color: rgb(36, 36, 36); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">mac_own serves as a flag for MAC addresses, indicating that they were added for VF by pmd. 
This flag is useful for the flush API, which can clear flows associated with VF MAC addresses. 
Similarly, mac_pmd is used to show that a MAC address was added by pmd for PF, VF, and SFs.
It helps differentiate MAC addresses that have been synchronized from the kernel driver.</span></pre>
    <blockquote type="cite" cite="mid:3720215.hdfAi7Kttb@thomas">
      <pre wrap="" class="moz-quote-pre">

</pre>
    </blockquote>
  </body>
</html>