git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drivers/net: use internal function to get ethdev struct
[dpdk.git]
/
drivers
/
net
/
softnic
/
rte_eth_softnic_tm.c
diff --git
a/drivers/net/softnic/rte_eth_softnic_tm.c
b/drivers/net/softnic/rte_eth_softnic_tm.c
index
90baba1
..
e74092c
100644
(file)
--- a/
drivers/net/softnic/rte_eth_softnic_tm.c
+++ b/
drivers/net/softnic/rte_eth_softnic_tm.c
@@
-420,7
+420,7
@@
pmd_tm_node_type_get(struct rte_eth_dev *dev,
return 0;
}
return 0;
}
-#ifdef RTE_SCHED_
RED
+#ifdef RTE_SCHED_
CMAN
#define WRED_SUPPORTED 1
#else
#define WRED_SUPPORTED 0
#define WRED_SUPPORTED 1
#else
#define WRED_SUPPORTED 0
@@
-2306,7
+2306,7
@@
tm_tc_wred_profile_get(struct rte_eth_dev *dev, uint32_t tc_id)
return NULL;
}
return NULL;
}
-#ifdef RTE_SCHED_
RED
+#ifdef RTE_SCHED_
CMAN
static void
wred_profiles_set(struct rte_eth_dev *dev, uint32_t subport_id)
static void
wred_profiles_set(struct rte_eth_dev *dev, uint32_t subport_id)
@@
-2321,7
+2321,7
@@
wred_profiles_set(struct rte_eth_dev *dev, uint32_t subport_id)
for (tc_id = 0; tc_id < RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE; tc_id++)
for (color = RTE_COLOR_GREEN; color < RTE_COLORS; color++) {
struct rte_red_params *dst =
for (tc_id = 0; tc_id < RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE; tc_id++)
for (color = RTE_COLOR_GREEN; color < RTE_COLORS; color++) {
struct rte_red_params *dst =
- &pp->red_params[tc_id][color];
+ &pp->
cman_params->
red_params[tc_id][color];
struct tm_wred_profile *src_wp =
tm_tc_wred_profile_get(dev, tc_id);
struct rte_tm_red_params *src =
struct tm_wred_profile *src_wp =
tm_tc_wred_profile_get(dev, tc_id);
struct rte_tm_red_params *src =