From: Raslan Darawsheh <rasland@nvidia.com>
To: Itai Sharoni <isharoni@nvidia.com>, dev@dpdk.org
Cc: mkashani@nvidia.com, stable@dpdk.org,
Bing Zhao <bingz@nvidia.com>,
Dariusz Sosnowski <dsosnowski@nvidia.com>,
Viacheslav Ovsiienko <viacheslavo@nvidia.com>,
Ori Kam <orika@nvidia.com>, Suanming Mou <suanmingm@nvidia.com>,
Matan Azrad <matan@nvidia.com>, Gavin Li <gavinl@nvidia.com>
Subject: Re: [PATCH] net/mlx5/windows: fix MAC address ownership tracking
Date: Thu, 5 Feb 2026 10:10:20 +0200 [thread overview]
Message-ID: <114f247b-9460-4217-bb16-cffabd2208e8@nvidia.com> (raw)
In-Reply-To: <20251209122406.3364-1-isharoni@nvidia.com>
Hi,
On 09/12/2025 2:24 PM, Itai Sharoni wrote:
> The Windows implementation was not properly tracking MAC address
> ownership via the mac_own bitfield, unlike the Linux implementation.
> This caused issues with control flow creation for MAC addresses.
>
> Commit 8c06434cd9e4 ("net/mlx5: fix multicast") added a check to skip
> creating control flows for MAC addresses where the mac_own bit is not
> set. Since Windows never set these bits, the primary MAC address flow
> was skipped, resulting in packet drops when promiscuous mode is
> disabled.
>
> Update all three MAC address ownership functions to properly manage
> the mac_own bitfield:
>
> - mlx5_os_mac_addr_add: Set mac_own bit when adding the device's
> primary MAC address (the only MAC that Windows supports)
>
> - mlx5_os_mac_addr_remove: Clear mac_own bit for the specified index
> to maintain internal tracking consistency
>
> - mlx5_os_mac_addr_flush: Iterate and clear all mac_own bits during
> device cleanup
>
> While Windows cannot add or remove MAC addresses from hardware (no
> Netlink equivalent), proper bitfield tracking is essential for internal
> state consistency and correct control flow management.
>
> Fixes: 8c06434cd9e4 ("net/mlx5: fix multicast")
> Cc: stable@dpdk.org
>
> Signed-off-by: Itai Sharoni <isharoni@nvidia.com>
> Acked-by: Bing Zhao <bingz@nvidia.com>
Patch applied to next-net-mlx,
Kindest regards
Raslan Darawsheh
prev parent reply other threads:[~2026-02-05 8:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-09 12:24 [PATCH] net/mlx5/windows: fix MAC address ownership tracking Itai Sharoni
2026-02-05 8:10 ` Raslan Darawsheh [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=114f247b-9460-4217-bb16-cffabd2208e8@nvidia.com \
--to=rasland@nvidia.com \
--cc=bingz@nvidia.com \
--cc=dev@dpdk.org \
--cc=dsosnowski@nvidia.com \
--cc=gavinl@nvidia.com \
--cc=isharoni@nvidia.com \
--cc=matan@nvidia.com \
--cc=mkashani@nvidia.com \
--cc=orika@nvidia.com \
--cc=stable@dpdk.org \
--cc=suanmingm@nvidia.com \
--cc=viacheslavo@nvidia.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