git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb932dd
)
net/mvpp2: skip QoS init if not requested
author
Liron Himi
<lironh@marvell.com>
Wed, 27 Jan 2021 16:09:35 +0000
(18:09 +0200)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Fri, 29 Jan 2021 17:16:11 +0000
(18:16 +0100)
Skip qos init if not requested
Signed-off-by: Liron Himi <lironh@marvell.com>
drivers/net/mvpp2/mrvl_qos.c
patch
|
blob
|
history
diff --git
a/drivers/net/mvpp2/mrvl_qos.c
b/drivers/net/mvpp2/mrvl_qos.c
index
d3ad7cc
..
1c65b52
100644
(file)
--- a/
drivers/net/mvpp2/mrvl_qos.c
+++ b/
drivers/net/mvpp2/mrvl_qos.c
@@
-593,7
+593,7
@@
mrvl_get_cfg(const char *key __rte_unused, const char *path, void *extra_args)
}
} else {
(*cfg)->port[n].mapping_priority =
- PP2_CLS_QOS_TBL_
VLAN_IP_PRI
;
+ PP2_CLS_QOS_TBL_
NONE
;
}
/* Parse policer configuration (if any) */
@@
-909,6
+909,9
@@
mrvl_start_qos_mapping(struct mrvl_priv *priv)
{
size_t i;
+ if (priv->qos_tbl_params.type == PP2_CLS_QOS_TBL_NONE)
+ return 0;
+
if (priv->ppio == NULL) {
MRVL_LOG(ERR, "ppio must not be NULL here!");
return -1;