Re: [PATCH] net: ___neigh_lookup_noref(): remove redundant parameters

From: Eric Dumazet
Date: Mon Dec 04 2023 - 14:54:36 EST


On Mon, Dec 4, 2023 at 7:59 PM YangXin <yx.0xffff@xxxxxxxxx> wrote:
>
> key_eq() and hash() are functions of struct neigh_table, so we just need to call tbl->key_eq() and tbl->hash(), instead of passing them in as parameters.
>
> Signed-off-by: YangXin <yx.0xffff@xxxxxxxxx>

Not sure, this might defeat inlining.