Searched refs:flex_cfg (Results 1 – 3 of 3) sorted by relevance
550 const struct rte_eth_flex_payload_cfg *flex_cfg; in ixgbe_set_fdir_flex_conf() local564 flex_cfg = &conf->flex_set[i]; in ixgbe_set_fdir_flex_conf()565 if (flex_cfg->type != RTE_ETH_RAW_PAYLOAD) { in ixgbe_set_fdir_flex_conf()569 if (((flex_cfg->src_offset[0] & 0x1) == 0) && in ixgbe_set_fdir_flex_conf()570 (flex_cfg->src_offset[1] == flex_cfg->src_offset[0] + 1) && in ixgbe_set_fdir_flex_conf()571 (flex_cfg->src_offset[0] <= IXGBE_MAX_FLX_SOURCE_OFF)) { in ixgbe_set_fdir_flex_conf()574 (flex_cfg->src_offset[0] / sizeof(uint16_t)) << in ixgbe_set_fdir_flex_conf()
427 i40e_check_fdir_flex_payload(const struct rte_eth_flex_payload_cfg *flex_cfg) in i40e_check_fdir_flex_payload() argument433 if (flex_cfg->src_offset[i] >= I40E_MAX_FLX_SOURCE_OFF) { in i40e_check_fdir_flex_payload()440 num = i40e_srcoff_to_flx_pit(flex_cfg->src_offset, flex_pit); in i40e_check_fdir_flex_payload()466 const struct rte_eth_flex_payload_cfg *flex_cfg; in i40e_check_fdir_flex_conf() local484 flex_cfg = &conf->flex_set[i]; in i40e_check_fdir_flex_conf()485 if (flex_cfg->type > RTE_ETH_L4_PAYLOAD) { in i40e_check_fdir_flex_conf()489 ret = i40e_check_fdir_flex_payload(flex_cfg); in i40e_check_fdir_flex_conf()
10565 struct rte_eth_flex_payload_cfg flex_cfg; in cmd_flow_director_flxpld_parsed() local10576 memset(&flex_cfg, 0, sizeof(struct rte_eth_flex_payload_cfg)); in cmd_flow_director_flxpld_parsed()10579 flex_cfg.type = RTE_ETH_RAW_PAYLOAD; in cmd_flow_director_flxpld_parsed()10581 flex_cfg.type = RTE_ETH_L2_PAYLOAD; in cmd_flow_director_flxpld_parsed()10583 flex_cfg.type = RTE_ETH_L3_PAYLOAD; in cmd_flow_director_flxpld_parsed()10585 flex_cfg.type = RTE_ETH_L4_PAYLOAD; in cmd_flow_director_flxpld_parsed()10587 ret = parse_offsets(res->payload_cfg, flex_cfg.src_offset, in cmd_flow_director_flxpld_parsed()10594 fdir_set_flex_payload(res->port_id, &flex_cfg); in cmd_flow_director_flxpld_parsed()