コード例 #1
0
ファイル: rte_tm.c プロジェクト: DrenfongWong/dpdk
/* Delete WRED profile */
int rte_tm_wred_profile_delete(uint16_t port_id,
	uint32_t wred_profile_id,
	struct rte_tm_error *error)
{
	struct rte_eth_dev *dev = &rte_eth_devices[port_id];
	return RTE_TM_FUNC(port_id, wred_profile_delete)(dev,
		wred_profile_id, error);
}
コード例 #2
0
ファイル: rte_tm.c プロジェクト: cleveritcz/f-stack
/* Update node private WRED context */
int rte_tm_node_wred_context_update(uint16_t port_id,
	uint32_t node_id,
	uint32_t wred_profile_id,
	struct rte_tm_error *error)
{
	struct rte_eth_dev *dev = &rte_eth_devices[port_id];
	return RTE_TM_FUNC(port_id, node_wred_context_update)(dev,
		node_id, wred_profile_id, error);
}
コード例 #3
0
ファイル: rte_tm.c プロジェクト: cleveritcz/f-stack
/* Update node congestion management mode */
int rte_tm_node_cman_update(uint16_t port_id,
	uint32_t node_id,
	enum rte_tm_cman_mode cman,
	struct rte_tm_error *error)
{
	struct rte_eth_dev *dev = &rte_eth_devices[port_id];
	return RTE_TM_FUNC(port_id, node_cman_update)(dev,
		node_id, cman, error);
}
コード例 #4
0
ファイル: rte_tm.c プロジェクト: cleveritcz/f-stack
/* Update node stats */
int rte_tm_node_stats_update(uint16_t port_id,
	uint32_t node_id,
	uint64_t stats_mask,
	struct rte_tm_error *error)
{
	struct rte_eth_dev *dev = &rte_eth_devices[port_id];
	return RTE_TM_FUNC(port_id, node_stats_update)(dev,
		node_id, stats_mask, error);
}
コード例 #5
0
ファイル: rte_tm.c プロジェクト: cleveritcz/f-stack
/* Add shared shaper */
int rte_tm_shared_shaper_add_update(uint16_t port_id,
	uint32_t shared_shaper_id,
	uint32_t shaper_profile_id,
	struct rte_tm_error *error)
{
	struct rte_eth_dev *dev = &rte_eth_devices[port_id];
	return RTE_TM_FUNC(port_id, shared_shaper_add_update)(dev,
		shared_shaper_id, shaper_profile_id, error);
}
コード例 #6
0
ファイル: rte_tm.c プロジェクト: cleveritcz/f-stack
/* Add shaper profile */
int rte_tm_shaper_profile_add(uint16_t port_id,
	uint32_t shaper_profile_id,
	struct rte_tm_shaper_params *profile,
	struct rte_tm_error *error)
{
	struct rte_eth_dev *dev = &rte_eth_devices[port_id];
	return RTE_TM_FUNC(port_id, shaper_profile_add)(dev,
		shaper_profile_id, profile, error);
}
コード例 #7
0
ファイル: rte_tm.c プロジェクト: cleveritcz/f-stack
/* Get node capabilities */
int rte_tm_node_capabilities_get(uint16_t port_id,
	uint32_t node_id,
	struct rte_tm_node_capabilities *cap,
	struct rte_tm_error *error)
{
	struct rte_eth_dev *dev = &rte_eth_devices[port_id];
	return RTE_TM_FUNC(port_id, node_capabilities_get)(dev,
		node_id, cap, error);
}
コード例 #8
0
ファイル: rte_tm.c プロジェクト: cleveritcz/f-stack
/* Packet marking - IPv4/IPv6 DSCP */
int rte_tm_mark_ip_dscp(uint16_t port_id,
	int mark_green,
	int mark_yellow,
	int mark_red,
	struct rte_tm_error *error)
{
	struct rte_eth_dev *dev = &rte_eth_devices[port_id];
	return RTE_TM_FUNC(port_id, mark_ip_dscp)(dev,
		mark_green, mark_yellow, mark_red, error);
}
コード例 #9
0
ファイル: rte_tm.c プロジェクト: cleveritcz/f-stack
/* Update WFQ weight mode */
int rte_tm_node_wfq_weight_mode_update(uint16_t port_id,
	uint32_t node_id,
	int *wfq_weight_mode,
	uint32_t n_sp_priorities,
	struct rte_tm_error *error)
{
	struct rte_eth_dev *dev = &rte_eth_devices[port_id];
	return RTE_TM_FUNC(port_id, node_wfq_weight_mode_update)(dev,
		node_id, wfq_weight_mode, n_sp_priorities, error);
}
コード例 #10
0
ファイル: rte_tm.c プロジェクト: cleveritcz/f-stack
/* Update node shared shapers */
int rte_tm_node_shared_shaper_update(uint16_t port_id,
	uint32_t node_id,
	uint32_t shared_shaper_id,
	int add,
	struct rte_tm_error *error)
{
	struct rte_eth_dev *dev = &rte_eth_devices[port_id];
	return RTE_TM_FUNC(port_id, node_shared_shaper_update)(dev,
		node_id, shared_shaper_id, add, error);
}
コード例 #11
0
ファイル: rte_tm.c プロジェクト: cleveritcz/f-stack
/* Check node type (leaf or non-leaf) */
int
rte_tm_node_type_get(uint16_t port_id,
	uint32_t node_id,
	int *is_leaf,
	struct rte_tm_error *error)
{
	struct rte_eth_dev *dev = &rte_eth_devices[port_id];
	return RTE_TM_FUNC(port_id, node_type_get)(dev,
		node_id, is_leaf, error);
}
コード例 #12
0
ファイル: rte_tm.c プロジェクト: cleveritcz/f-stack
/* Read and/or clear stats counters for specific node */
int rte_tm_node_stats_read(uint16_t port_id,
	uint32_t node_id,
	struct rte_tm_node_stats *stats,
	uint64_t *stats_mask,
	int clear,
	struct rte_tm_error *error)
{
	struct rte_eth_dev *dev = &rte_eth_devices[port_id];
	return RTE_TM_FUNC(port_id, node_stats_read)(dev,
		node_id, stats, stats_mask, clear, error);
}
コード例 #13
0
ファイル: rte_tm.c プロジェクト: cleveritcz/f-stack
/* Update node parent  */
int rte_tm_node_parent_update(uint16_t port_id,
	uint32_t node_id,
	uint32_t parent_node_id,
	uint32_t priority,
	uint32_t weight,
	struct rte_tm_error *error)
{
	struct rte_eth_dev *dev = &rte_eth_devices[port_id];
	return RTE_TM_FUNC(port_id, node_parent_update)(dev,
		node_id, parent_node_id, priority, weight, error);
}
コード例 #14
0
ファイル: rte_tm.c プロジェクト: cleveritcz/f-stack
/* Add node to port traffic manager hierarchy */
int rte_tm_node_add(uint16_t port_id,
	uint32_t node_id,
	uint32_t parent_node_id,
	uint32_t priority,
	uint32_t weight,
	uint32_t level_id,
	struct rte_tm_node_params *params,
	struct rte_tm_error *error)
{
	struct rte_eth_dev *dev = &rte_eth_devices[port_id];
	return RTE_TM_FUNC(port_id, node_add)(dev,
		node_id, parent_node_id, priority, weight, level_id,
		params, error);
}