[PATCH v2 07/15] net/intel: use function callback for lldp

Loftus, Ciara ciara.loftus at intel.com
Wed Sep 16 10:56:45 CEST 2026


> Subject: [PATCH v2 07/15] net/intel: use function callback for lldp
> 
> Limit LLDP support for iavf drivers for now, by using a callback to
> handle its processing. Drivers not supporting this pass a NULL pointer
> and the compiler will optimize away the branches. For iavf, the compiler
> can inline the subfunction directly as it's known at compile-time.
> 
> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>

Acked-by: Ciara Loftus <ciara.loftus at intel.com>

> ---
>  drivers/net/intel/common/tx_vec_x86.h         | 42 +++++++++++--------
>  drivers/net/intel/iavf/iavf_rxtx_vec_avx2.c   | 16 +++++--
>  drivers/net/intel/iavf/iavf_rxtx_vec_avx512.c | 17 +++++---
>  3 files changed, 48 insertions(+), 27 deletions(-)
> 



More information about the dev mailing list