From: Apeksha Gupta Date: Thu, 24 Sep 2020 04:02:06 +0000 (+0530) Subject: net/dpaa2: fix check for key size X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=056ec485861d3e0c9e9ad612e2dca70f66f83af9;p=dpdk.git net/dpaa2: fix check for key size DPAA2 has support for raw flow classification, which can be used for any protocol rules. This change fixes flow key pattern length match boundary condition with spec length. Fixes: 3f881f8d6eb0 ("net/dpaa2: support raw flow classification") Cc: stable@dpdk.org Signed-off-by: Apeksha Gupta Acked-by: Nipun Gupta --- diff --git a/drivers/net/dpaa2/dpaa2_flow.c b/drivers/net/dpaa2/dpaa2_flow.c index 8430213358..29f1f2e654 100644 --- a/drivers/net/dpaa2/dpaa2_flow.c +++ b/drivers/net/dpaa2/dpaa2_flow.c @@ -2901,7 +2901,7 @@ dpaa2_configure_flow_raw(struct rte_flow *flow, flow->tc_id = group; flow->tc_index = attr->priority; - if (prev_key_size < spec->length) { + if (prev_key_size <= spec->length) { ret = dpaa2_flow_extract_add_raw(&priv->extract.qos_key_extract, spec->length); if (ret) {