[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c9f819da-61a6-ea8f-5e16-d9aad6634127@intel.com>
Date: Tue, 13 Jun 2023 17:10:50 +0200
From: Przemek Kitszel <przemyslaw.kitszel@...el.com>
To: Piotr Gardocki <piotrx.gardocki@...el.com>, <netdev@...r.kernel.org>
CC: <pmenzel@...gen.mpg.de>, <simon.horman@...igine.com>,
<anthony.l.nguyen@...el.com>, <kuba@...nel.org>,
<intel-wired-lan@...ts.osuosl.org>
Subject: Re: [Intel-wired-lan] [PATCH net-next v2 3/3] ice: remove unnecessary
check for old MAC == new MAC
On 6/13/23 16:02, Przemek Kitszel wrote:
> On 6/13/23 14:24, Piotr Gardocki wrote:
>> The check has been moved to core. The ndo_set_mac_address callback
>> is not being called with new MAC address equal to the old one anymore.
>>
>> Signed-off-by: Piotr Gardocki <piotrx.gardocki@...el.com>
>> ---
>> drivers/net/ethernet/intel/ice/ice_main.c | 5 -----
[...]
>
> I would expect one patch that adds check in the core, then one patch
> that removes it in all, incl non-intel, drivers; with CC to their
> respective maintainers (like Tony for intel, ./scripts/get_maintainer.pl
> will help)
I have checked, it's almost 200 handlers, which amounts to over 3500
lines of code (short-cutting analysis on eth_hw_addr_set()), what
probably could warrant more than one patch/person to spread the work
anybody willing to see the above code-to-look-at, or wants to re-run it
for their directory of interests, here is dirty bash script (which just
approximates what's to be done, but rather closely to reality):
grep -InrE '\.'ndo_set_mac_address'\s+=' |
awk '!/NULL/ {gsub(/,$/, ""); print $NF}' |
sort -u |
xargs -I% bash -c 'grep -ERwIl %'"'"'\(struct net_device.+\)$'"'"' |
xargs -I @ awk '"'"'/%\(struct net_device.+\)$/,
/^}|eth_hw_addr_set\(/ { print "@:" NR $0 }'"'"' @' |
cat -n
@Piotr, perhaps resolve all intel drivers in your series?
Powered by blists - more mailing lists