Skip to content

Commit

Permalink
fsl/fman: include IPSEC SPI in the Keygen extraction
Browse files Browse the repository at this point in the history
The keygen extracted fields are used as input for the hash that
determines the incoming frames distribution. Adding IPSEC SPI so
different IPSEC flows can be distributed to different CPUs.

Signed-off-by: Madalin Bucur <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
madalinbucur authored and davem330 committed May 28, 2019
1 parent 7af5b07 commit c7ae092
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/ethernet/freescale/fman/fman_keygen.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@
/* Hash Key extraction fields: */
#define DEFAULT_HASH_KEY_EXTRACT_FIELDS \
(KG_SCH_KN_IPSRC1 | KG_SCH_KN_IPDST1 | \
KG_SCH_KN_L4PSRC | KG_SCH_KN_L4PDST)
KG_SCH_KN_L4PSRC | KG_SCH_KN_L4PDST | \
KG_SCH_KN_IPSEC_SPI)

/* Default values to be used as hash key in case IPv4 or L4 (TCP, UDP)
* don't exist in the frame
Expand Down

0 comments on commit c7ae092

Please sign in to comment.