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

Function print_fdir_flex_payload

dpdk/app/test-pmd/config.c:6448–6470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6446#if defined(RTE_NET_I40E) || defined(RTE_NET_IXGBE)
6447
6448static inline void
6449print_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
6472static inline void
6473print_fdir_flex_mask(struct rte_eth_fdir_flex_conf *flex_conf, uint32_t num)

Callers 1

fdir_get_infosFunction · 0.85

Calls 1

printfFunction · 0.50

Tested by

no test coverage detected