MCPcopy Create free account
hub / github.com/F-Stack/f-stack / flow_group_to_table

Function flow_group_to_table

dpdk/drivers/net/mlx5/mlx5_flow.c:10155–10174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10153}
10154
10155static int
10156flow_group_to_table(uint32_t port_id, uint32_t group, uint32_t *table,
10157 const struct flow_grp_info *grp_info,
10158 struct rte_flow_error *error)
10159{
10160 if (grp_info->transfer && grp_info->external &&
10161 grp_info->fdb_def_rule) {
10162 if (group == UINT32_MAX)
10163 return rte_flow_error_set
10164 (error, EINVAL,
10165 RTE_FLOW_ERROR_TYPE_ATTR_GROUP,
10166 NULL,
10167 "group index not supported");
10168 *table = group + 1;
10169 } else {
10170 *table = group;
10171 }
10172 DRV_LOG(DEBUG, "port %u group=%#x table=%#x", port_id, group, *table);
10173 return 0;
10174}
10175
10176/**
10177 * Translate the rte_flow group index to HW table value.

Callers 1

mlx5_flow_group_to_tableFunction · 0.85

Calls 1

rte_flow_error_setFunction · 0.85

Tested by

no test coverage detected