[qca-ssdk]: fix flow qos API issue
Change-Id: Ie20883e10d5de2fcc6acd24e5d6a2844540c6e72
Signed-off-by: xiaofeis <xiaofeis@codeaurora.org>
diff --git a/include/adpt/adpt.h b/include/adpt/adpt.h
old mode 100755
new mode 100644
index 2e41b2b..6ab4a8e
--- a/include/adpt/adpt.h
+++ b/include/adpt/adpt.h
@@ -765,7 +765,7 @@
typedef sw_error_t (*adpt_qos_cosmap_dscp_get_func)(a_uint32_t dev_id, a_uint8_t group_id,
a_uint8_t dscp, fal_qos_cosmap_t *cosmap);
typedef sw_error_t (*adpt_qos_cosmap_flow_set_func)(a_uint32_t dev_id, a_uint8_t group_id,
- a_uint8_t flow, fal_qos_cosmap_t *cosmap);
+ a_uint16_t flow, fal_qos_cosmap_t *cosmap);
typedef sw_error_t (*adpt_qos_port_group_set_func)(a_uint32_t dev_id, fal_port_t port_id,
fal_qos_group_t *group);
typedef sw_error_t (*adpt_ring_queue_map_set_func)(a_uint32_t dev_id,
@@ -775,7 +775,7 @@
typedef sw_error_t (*adpt_qos_port_remark_set_func)(a_uint32_t dev_id, fal_port_t port_id,
fal_qos_remark_enable_t *remark);
typedef sw_error_t (*adpt_qos_cosmap_flow_get_func)(a_uint32_t dev_id, a_uint8_t group_id,
- a_uint8_t flow, fal_qos_cosmap_t *cosmap);
+ a_uint16_t flow, fal_qos_cosmap_t *cosmap);
typedef sw_error_t (*adpt_qos_port_group_get_func)(a_uint32_t dev_id, fal_port_t port_id,
fal_qos_group_t *group);
typedef sw_error_t (*adpt_ring_queue_map_get_func)(a_uint32_t dev_id,
diff --git a/include/adpt/cppe/adpt_cppe_qos.h b/include/adpt/cppe/adpt_cppe_qos.h
old mode 100755
new mode 100644
index 7cd3bcd..867e733
--- a/include/adpt/cppe/adpt_cppe_qos.h
+++ b/include/adpt/cppe/adpt_cppe_qos.h
@@ -44,7 +44,7 @@
fal_qos_cosmap_t *cosmap);
sw_error_t
adpt_cppe_qos_cosmap_flow_set(a_uint32_t dev_id, a_uint8_t group_id,
- a_uint8_t flow,
+ a_uint16_t flow,
fal_qos_cosmap_t *cosmap);
sw_error_t
adpt_cppe_qos_port_group_set(a_uint32_t dev_id, fal_port_t port_id,
@@ -55,7 +55,7 @@
fal_qos_cosmap_t *cosmap);
sw_error_t
adpt_cppe_qos_cosmap_flow_get(a_uint32_t dev_id, a_uint8_t group_id,
- a_uint8_t flow,
+ a_uint16_t flow,
fal_qos_cosmap_t *cosmap);
sw_error_t
adpt_cppe_qos_port_group_get(a_uint32_t dev_id, fal_port_t port_id,
diff --git a/include/fal/fal_qos.h b/include/fal/fal_qos.h
old mode 100755
new mode 100644
index eb824c5..30c894e
--- a/include/fal/fal_qos.h
+++ b/include/fal/fal_qos.h
@@ -378,11 +378,11 @@
sw_error_t
fal_qos_cosmap_flow_set(a_uint32_t dev_id, a_uint8_t group_id,
- a_uint8_t flow, fal_qos_cosmap_t *cosmap);
+ a_uint16_t flow, fal_qos_cosmap_t *cosmap);
sw_error_t
fal_qos_cosmap_flow_get(a_uint32_t dev_id, a_uint8_t group_id,
- a_uint8_t flow, fal_qos_cosmap_t *cosmap);
+ a_uint16_t flow, fal_qos_cosmap_t *cosmap);
sw_error_t
fal_qos_cosmap_dscp_set(a_uint32_t dev_id, a_uint8_t group_id,
diff --git a/src/adpt/cppe/adpt_cppe_qos.c b/src/adpt/cppe/adpt_cppe_qos.c
old mode 100755
new mode 100644
index 638cd68..c0e0209
--- a/src/adpt/cppe/adpt_cppe_qos.c
+++ b/src/adpt/cppe/adpt_cppe_qos.c
@@ -197,7 +197,7 @@
sw_error_t
adpt_cppe_qos_cosmap_flow_set(a_uint32_t dev_id, a_uint8_t group_id,
- a_uint8_t flow,
+ a_uint16_t flow,
fal_qos_cosmap_t *cosmap)
{
ADPT_DEV_ID_CHECK(dev_id);
@@ -249,7 +249,7 @@
sw_error_t
adpt_cppe_qos_cosmap_flow_get(a_uint32_t dev_id, a_uint8_t group_id,
- a_uint8_t flow,
+ a_uint16_t flow,
fal_qos_cosmap_t *cosmap)
{
ADPT_DEV_ID_CHECK(dev_id);
diff --git a/src/adpt/hppe/adpt_hppe_qos.c b/src/adpt/hppe/adpt_hppe_qos.c
old mode 100755
new mode 100644
index 54dda6a..ca48de6
--- a/src/adpt/hppe/adpt_hppe_qos.c
+++ b/src/adpt/hppe/adpt_hppe_qos.c
@@ -515,7 +515,7 @@
static sw_error_t
adpt_hppe_qos_cosmap_flow_set(a_uint32_t dev_id, a_uint8_t group_id,
- a_uint8_t flow, fal_qos_cosmap_t *cosmap)
+ a_uint16_t flow, fal_qos_cosmap_t *cosmap)
{
sw_error_t rv = SW_OK;
union flow_qos_group_0_u flow_qos_group_0;
@@ -549,7 +549,7 @@
sw_error_t
adpt_ppe_qos_cosmap_flow_set(a_uint32_t dev_id, a_uint8_t group_id,
- a_uint8_t flow, fal_qos_cosmap_t *cosmap)
+ a_uint16_t flow, fal_qos_cosmap_t *cosmap)
{
a_uint32_t chip_ver = 0;
@@ -777,7 +777,7 @@
static sw_error_t
adpt_hppe_qos_cosmap_flow_get(a_uint32_t dev_id, a_uint8_t group_id,
- a_uint8_t flow, fal_qos_cosmap_t *cosmap)
+ a_uint16_t flow, fal_qos_cosmap_t *cosmap)
{
sw_error_t rv = SW_OK;
union flow_qos_group_0_u flow_qos_group_0;
@@ -815,7 +815,7 @@
sw_error_t
adpt_ppe_qos_cosmap_flow_get(a_uint32_t dev_id, a_uint8_t group_id,
- a_uint8_t flow, fal_qos_cosmap_t *cosmap)
+ a_uint16_t flow, fal_qos_cosmap_t *cosmap)
{
a_uint32_t chip_ver = 0;
diff --git a/src/fal/fal_qos.c b/src/fal/fal_qos.c
old mode 100755
new mode 100644
index 046accc..fcb8dc7
--- a/src/fal/fal_qos.c
+++ b/src/fal/fal_qos.c
@@ -768,7 +768,7 @@
}
sw_error_t
_fal_qos_cosmap_flow_set(a_uint32_t dev_id, a_uint8_t group_id,
- a_uint8_t flow, fal_qos_cosmap_t *cosmap)
+ a_uint16_t flow, fal_qos_cosmap_t *cosmap)
{
adpt_api_t *p_api;
sw_error_t rv = SW_OK;
@@ -844,7 +844,7 @@
sw_error_t
_fal_qos_cosmap_flow_get(a_uint32_t dev_id, a_uint8_t group_id,
- a_uint8_t flow, fal_qos_cosmap_t *cosmap)
+ a_uint16_t flow, fal_qos_cosmap_t *cosmap)
{
adpt_api_t *p_api;
sw_error_t rv = SW_OK;
@@ -1799,7 +1799,7 @@
}
sw_error_t
fal_qos_cosmap_flow_set(a_uint32_t dev_id, a_uint8_t group_id,
- a_uint8_t flow, fal_qos_cosmap_t *cosmap)
+ a_uint16_t flow, fal_qos_cosmap_t *cosmap)
{
sw_error_t rv = SW_OK;
@@ -1855,7 +1855,7 @@
sw_error_t
fal_qos_cosmap_flow_get(a_uint32_t dev_id, a_uint8_t group_id,
- a_uint8_t flow, fal_qos_cosmap_t *cosmap)
+ a_uint16_t flow, fal_qos_cosmap_t *cosmap)
{
sw_error_t rv = SW_OK;