fsl/fman: include IPSEC SPI in the Keygen extraction
authorMadalin Bucur <madalin.bucur@nxp.com>
Mon, 27 May 2019 12:32:12 +0000 (15:32 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 May 2019 18:21:03 +0000 (11:21 -0700)
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 <madalin.bucur@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fman/fman_keygen.c

index f54da3c684d0711aeb14da33aa6dd8399954045f..e1bdfed1613448d19a2b1142bd1777de95fb6d09 100644 (file)
 /* 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