[PATCH] net/crc: reduce usage of static arrays in net_crc_sse.c

Stephen Hemminger stephen at networkplumber.org
Mon Jun 8 19:16:20 CEST 2026


On Wed, 16 Jul 2025 16:04:39 +0530
Shreesh Adiga <16567adigashreesh at gmail.com> wrote:

> Replace the clearing of lower 32 bits of XMM register with blend of
> zero register.
> Replace the clearing of upper 64 bits of XMM register with _mm_move_epi64.
> Clang is able to optimize away the AND + memory operand with the
> above sequence, however GCC is still emitting the code for AND with
> memory operands which is being explicitly eliminated here.
> 
> Additionally replace the 48 byte crc_xmm_shift_tab with the contents of
> shf_table which is 32 bytes, achieving the same functionality.
> 
> Signed-off-by: Shreesh Adiga <16567adigashreesh at gmail.com>
> ---

Applied to net-next


More information about the dev mailing list