Re: [PATCH v3 15/50] net/ntnic: add hasher (HSH) flow module

2024-11-13 Thread Stephen Hemminger
On Thu, 10 Oct 2024 16:13:30 +0200 Serhii Iliushyk wrote: > + > +void hsh_nthw_delete(struct hsh_nthw *p) > +{ > + if (p) { > + (void)memset(p, 0, sizeof(*p)); > + free(p); > + } > +} This pattern of memset before free is repeated many times in ntnic and is probl

[PATCH v3 15/50] net/ntnic: add hasher (HSH) flow module

2024-10-10 Thread Serhii Iliushyk
From: Oleksandr Kolomeiets The Hasher module calculates a configurable hash value to be used internally by the FPGA. The module support both Toeplitz and NT-hash. Signed-off-by: Oleksandr Kolomeiets --- v3 * Remove newline characters from logs. --- drivers/net/ntnic/include/hw_mod_backend.h