diff options
author | Andrei Varvara <andrei.varvara@freescale.com> | 2013-07-18 13:06:26 (GMT) |
---|---|---|
committer | Schmitt Richard-B43082 <B43082@freescale.com> | 2013-08-09 17:50:25 (GMT) |
commit | 114290031bd35a31b7cd60681d984e63e0e70840 (patch) | |
tree | 968421f52db375216377aa9c50fb59b86d2f2374 /drivers | |
parent | d21323fbdf5ae3ade5e1427a1b6fdaae670ffbbf (diff) | |
download | linux-fsl-qoriq-114290031bd35a31b7cd60681d984e63e0e70840.tar.xz |
dpa_offload: dpa_ipsec - Update create SA function to set hmd to invalid
DPA Classifier API was updated by adding a new attribute (hmd)
to the struct dpa_cls_tbl_next_table_desc.
DPA IPSec is using the classifier feature for linking two tables,
if inbound policy verification is required but does not require
the hmd option.
A minor update had to be made to set the hdm
to -1 (not valid) otherwise the 0 value would have been concidered
valid by classifier and crash since not hmd is required here.
Signed-off-by: Andrei Varvara <andrei.varvara@freescale.com>
Change-Id: I76eccbf6a60b7d563540de539be5144112c1567c
Reviewed-on: http://git.am.freescale.net:8181/3474
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Reviewed-by: Schmitt Richard-B43082 <B43082@freescale.com>
Tested-by: Schmitt Richard-B43082 <B43082@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/fsl_dpa_offload/dpa_ipsec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/fsl_dpa_offload/dpa_ipsec.c b/drivers/staging/fsl_dpa_offload/dpa_ipsec.c index 63f067f..797bee5 100644 --- a/drivers/staging/fsl_dpa_offload/dpa_ipsec.c +++ b/drivers/staging/fsl_dpa_offload/dpa_ipsec.c @@ -3439,6 +3439,7 @@ int dpa_ipsec_create_sa(int dpa_ipsec_id, memset(&action, 0, sizeof(action)); action.type = DPA_CLS_TBL_ACTION_NEXT_TABLE; action.next_table_params.next_td = inbpol_td; + action.next_table_params.hmd = DPA_OFFLD_DESC_NONE; action.enable_statistics = FALSE; err = set_flow_id_action(sa, &action); if (err < 0) { |