> -----Original Message-----
> From: Amber, Kumar <[email protected]>
> Sent: Tuesday, May 31, 2022 3:01 PM
> To: [email protected]
> Cc: [email protected]; [email protected]; Ferriter, Cian
> <[email protected]>; Stokes, Ian <[email protected]>;
> [email protected]; [email protected]; Van Haaren, Harry
> <[email protected]>; Amber, Kumar <[email protected]>
> Subject: [PATCH v10 2/4] mfex_avx512: Calculate miniflow_bits at compile time.
> 
> The patch removes magic numbers from miniflow_bits
> and calculates the bits at compile time. This also
> makes it easier to handle any ABI changes.
> 
> Signed-off-by: Kumar Amber <[email protected]>

<snip>

> -        .mf_bits = { 0x18a0000000000000, 0x0000000000040401},
> +        .mf_bits = { MF_ETH, MF_IPV4_UDP},
>          .dp_pkt_offs = {
>              0, UINT16_MAX, PKT_OFFSET_L3, PKT_OFFSET_IPV4_L4,
>          },

New #define names are much clearer here, and reflect the dp-packet
variable names that they're written into, good improvement.

Acked-by: Harry van Haaren <[email protected]>

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to