| 10153 | } |
| 10154 | |
| 10155 | static int |
| 10156 | flow_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. |
no test coverage detected