[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1633385931.433.1760614815573.JavaMail.zimbra@couthit.local>
Date: Thu, 16 Oct 2025 17:10:15 +0530 (IST)
From: Parvathi Pudi <parvathi@...thit.com>
To: Andrew Lunn <andrew@...n.ch>
Cc: parvathi <parvathi@...thit.com>, andrew+netdev <andrew+netdev@...n.ch>,
davem <davem@...emloft.net>, edumazet <edumazet@...gle.com>,
kuba <kuba@...nel.org>, pabeni <pabeni@...hat.com>,
danishanwar <danishanwar@...com>, rogerq <rogerq@...nel.org>,
pmohan <pmohan@...thit.com>, basharath <basharath@...thit.com>,
afd <afd@...com>, linux-kernel <linux-kernel@...r.kernel.org>,
netdev <netdev@...r.kernel.org>,
linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>,
pratheesh <pratheesh@...com>, Prajith Jayarajan <prajith@...com>,
Vignesh Raghavendra <vigneshr@...com>, praneeth <praneeth@...com>,
srk <srk@...com>, rogerq <rogerq@...com>,
krishna <krishna@...thit.com>, mohan <mohan@...thit.com>
Subject: Re: [PATCH net-next v3 1/3] net: ti: icssm-prueth: Adds helper
functions to configure and maintain FDB
Hi,
>> +/* 4 bytes */
>> +struct fdb_index_tbl_entry_t {
>> + /* Bucket Table index of first Bucket with this MAC address */
>> + u16 bucket_idx;
>> + u16 bucket_entries; /* Number of entries in this bucket */
>> +};
>
> Please drop the _t. That is normally used to indicate a type, but this
> is actually a struct
>
Sure. We will remove _t from the struct definitions.
>> +void icssm_prueth_sw_fdb_tbl_init(struct prueth *prueth)
>> +{
>> + struct fdb_tbl *t = prueth->fdb_tbl;
>> +
>> + t->index_a = (struct fdb_index_array_t *)((__force const void *)
>> + prueth->mem[V2_1_FDB_TBL_LOC].va +
>> + V2_1_FDB_TBL_OFFSET);
>
> You cast it to a const void * and then a non-const fdb_index_array_t *?
We will address this and remove the double casting completely.
Thanks and Regards,
Parvathi.
Powered by blists - more mailing lists