diff options
author | Andrei Varvara <andrei.varvara@freescale.com> | 2013-07-18 13:06:26 (GMT) |
---|---|---|
committer | Fleming Andrew-AFLEMING <AFLEMING@freescale.com> | 2013-07-23 21:46:29 (GMT) |
commit | 9b0d4c9b4d8b01a366b5673183f5b4b717f56de1 (patch) | |
tree | 3f4d6fef3a95075663a0eea262d0fa27a0fa8daa /drivers/staging | |
parent | 911920d5dad001f2a06df3a320275747614227ae (diff) | |
download | linux-fsl-qoriq-9b0d4c9b4d8b01a366b5673183f5b4b717f56de1.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>
Diffstat (limited to 'drivers/staging')
-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) { |