diff options
author | Shannon Nelson <shannon.nelson@oracle.com> | 2018-05-31 14:12:18 -0700 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2018-06-04 10:31:22 -0700 |
commit | 9a75fa5c166346fa3de35fe8020e43bc98a171d0 (patch) | |
tree | 19f5e4131de05300a5bb3f82266a87a46ff08852 /drivers | |
parent | 2a8a15526d319eed948bb38ae9f5900e2bee8565 (diff) | |
download | linux-stable-9a75fa5c166346fa3de35fe8020e43bc98a171d0.tar.gz linux-stable-9a75fa5c166346fa3de35fe8020e43bc98a171d0.tar.bz2 linux-stable-9a75fa5c166346fa3de35fe8020e43bc98a171d0.zip |
ixgbe: fix broken ipsec Rx with proper cast on spi
Fix up a cast problem introduced by a sparse cleanup patch. This fixes
a problem where the encrypted packets were not recognized on Rx and
subsequently dropped.
Fixes: 9cfbfa701b55 ("ixgbe: cleanup sparse warnings")
Signed-off-by: Shannon Nelson <shannon.nelson@oracle.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c index e1c976271bbd..344a1f213a5f 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c @@ -663,7 +663,7 @@ static int ixgbe_ipsec_add_sa(struct xfrm_state *xs) /* hash the new entry for faster search in Rx path */ hash_add_rcu(ipsec->rx_sa_list, &ipsec->rx_tbl[sa_idx].hlist, - (__force u64)rsa.xs->id.spi); + (__force u32)rsa.xs->id.spi); } else { struct tx_sa tsa; |