diff options
author | Marian Chereji <marian.chereji@freescale.com> | 2013-06-18 13:07:37 (GMT) |
---|---|---|
committer | Fleming Andrew-AFLEMING <AFLEMING@freescale.com> | 2013-07-11 22:03:36 (GMT) |
commit | b4d23f5783a4887e2dda14570e47dc37c2c11f97 (patch) | |
tree | 5bc416629dc024127cf6dfae2417910b929e987e /drivers/scsi/sr.c | |
parent | 1ac9f7fc84ced02bba7248175062365be7460b0e (diff) | |
download | linux-fsl-qoriq-b4d23f5783a4887e2dda14570e47dc37c2c11f97.tar.xz |
dpa_offload: Add protection against concurrent HM ops runtime modifications
When modifying a header manipulation operation at runtime, the DPA
Classifier uses the FMD call FM_PCD_ManipNodeReplace. This function
locks the entire PCD and will fail if the PCD is already locked (it is
not a blocking function). The parallel access protection mechanism in DPA
Classifier would only protect against parallel access ON THE SAME MANIP
NODE. It used to ALLOW parallel access on DIFFERENT HM nodes, but this
will fail due to the locking system in the FMD.
This patch updates the locking mechanism in DPA Classifier for the HM
runtime modification functions so that a single call to
FM_PCD_ManipNodeReplace can happen at any one time.
Change-Id: I833b96e177e57f76d109ec000bd34c603df5ba71
Signed-off-by: Marian Chereji <marian.chereji@freescale.com>
Reviewed-on: http://git.am.freescale.net:8181/3007
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Bulie Radu-Andrei-B37577 <Radu.Bulie@freescale.com>
Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'drivers/scsi/sr.c')
0 files changed, 0 insertions, 0 deletions