> 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 <[email protected]>
Acked-by: Ciara Loftus <[email protected]> > --- > 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(-) >

