[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID:
<PAXPR04MB8510638FA6F61973C620BEAE88D52@PAXPR04MB8510.eurprd04.prod.outlook.com>
Date: Fri, 7 Mar 2025 01:22:54 +0000
From: Wei Fang <wei.fang@....com>
To: Paolo Abeni <pabeni@...hat.com>, Claudiu Manoil <claudiu.manoil@....com>,
Vladimir Oltean <vladimir.oltean@....com>, Clark Wang
<xiaoning.wang@....com>, "andrew+netdev@...n.ch" <andrew+netdev@...n.ch>,
"davem@...emloft.net" <davem@...emloft.net>, "edumazet@...gle.com"
<edumazet@...gle.com>, "kuba@...nel.org" <kuba@...nel.org>
CC: "christophe.leroy@...roup.eu" <christophe.leroy@...roup.eu>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"imx@...ts.linux.dev" <imx@...ts.linux.dev>, "linuxppc-dev@...ts.ozlabs.org"
<linuxppc-dev@...ts.ozlabs.org>, "linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>
Subject: RE: [PATCH v3 net-next 04/13] net: enetc: add MAC filter for i.MX95
ENETC PF
> On 3/4/25 8:21 AM, Wei Fang wrote:
> > +static void enetc_mac_list_del_matched_entries(struct enetc_pf *pf, u16
> si_bit,
> > + struct enetc_mac_addr *mac,
> > + int mac_cnt)
> > +{
> > + struct enetc_mac_list_entry *entry;
> > + int i;
> > +
> > + for (i = 0; i < mac_cnt; i++) {
> > + entry = enetc_mac_list_lookup_entry(pf, mac[i].addr);
> > + if (entry) {
> > + entry->si_bitmap &= ~si_bit;
> > + if (!entry->si_bitmap) {
>
>
> Minor nit: here and elsewhere you could reduce the level of indentation
> restructoring the code as:
Okay, I will improve it, thanks.
>
> if (!entry)
> continue;
>
> entry->si_bitmap &= ~si_bit;
> if (entry->si_bitmap)
> continue;
> /P
Powered by blists - more mailing lists