| 6446 | #if defined(RTE_NET_I40E) || defined(RTE_NET_IXGBE) |
| 6447 | |
| 6448 | static inline void |
| 6449 | print_fdir_flex_payload(struct rte_eth_fdir_flex_conf *flex_conf, uint32_t num) |
| 6450 | { |
| 6451 | struct rte_eth_flex_payload_cfg *cfg; |
| 6452 | uint32_t i, j; |
| 6453 | |
| 6454 | for (i = 0; i < flex_conf->nb_payloads; i++) { |
| 6455 | cfg = &flex_conf->flex_set[i]; |
| 6456 | if (cfg->type == RTE_ETH_RAW_PAYLOAD) |
| 6457 | printf("\n RAW: "); |
| 6458 | else if (cfg->type == RTE_ETH_L2_PAYLOAD) |
| 6459 | printf("\n L2_PAYLOAD: "); |
| 6460 | else if (cfg->type == RTE_ETH_L3_PAYLOAD) |
| 6461 | printf("\n L3_PAYLOAD: "); |
| 6462 | else if (cfg->type == RTE_ETH_L4_PAYLOAD) |
| 6463 | printf("\n L4_PAYLOAD: "); |
| 6464 | else |
| 6465 | printf("\n UNKNOWN PAYLOAD(%u): ", cfg->type); |
| 6466 | for (j = 0; j < num; j++) |
| 6467 | printf(" %-5u", cfg->src_offset[j]); |
| 6468 | } |
| 6469 | printf("\n"); |
| 6470 | } |
| 6471 | |
| 6472 | static inline void |
| 6473 | print_fdir_flex_mask(struct rte_eth_fdir_flex_conf *flex_conf, uint32_t num) |
no test coverage detected