Searched refs:flex_cfg (Results 1 – 4 of 4) sorted by relevance
300 const struct rte_eth_flex_payload_cfg *flex_cfg; in txgbe_set_fdir_flex_conf() local313 flex_cfg = &conf->flex_set[i]; in txgbe_set_fdir_flex_conf()314 if (flex_cfg->type != RTE_ETH_RAW_PAYLOAD) { in txgbe_set_fdir_flex_conf()318 if (((flex_cfg->src_offset[0] & 0x1) == 0) && in txgbe_set_fdir_flex_conf()319 (flex_cfg->src_offset[1] == flex_cfg->src_offset[0] + 1) && in txgbe_set_fdir_flex_conf()320 flex_cfg->src_offset[0] <= TXGBE_MAX_FLX_SOURCE_OFF) { in txgbe_set_fdir_flex_conf()323 TXGBE_FDIRFLEXCFG_OFST(flex_cfg->src_offset[0] / 2); in txgbe_set_fdir_flex_conf()
579 const struct rte_eth_flex_payload_cfg *flex_cfg; in ixgbe_set_fdir_flex_conf() local593 flex_cfg = &conf->flex_set[i]; in ixgbe_set_fdir_flex_conf()594 if (flex_cfg->type != RTE_ETH_RAW_PAYLOAD) { in ixgbe_set_fdir_flex_conf()598 if (((flex_cfg->src_offset[0] & 0x1) == 0) && in ixgbe_set_fdir_flex_conf()599 (flex_cfg->src_offset[1] == flex_cfg->src_offset[0] + 1) && in ixgbe_set_fdir_flex_conf()600 (flex_cfg->src_offset[0] <= IXGBE_MAX_FLX_SOURCE_OFF)) { in ixgbe_set_fdir_flex_conf()603 (flex_cfg->src_offset[0] / sizeof(uint16_t)) << in ixgbe_set_fdir_flex_conf()
426 i40e_check_fdir_flex_payload(const struct rte_eth_flex_payload_cfg *flex_cfg) in i40e_check_fdir_flex_payload() argument432 if (flex_cfg->src_offset[i] >= I40E_MAX_FLX_SOURCE_OFF) { in i40e_check_fdir_flex_payload()439 num = i40e_srcoff_to_flx_pit(flex_cfg->src_offset, flex_pit); in i40e_check_fdir_flex_payload()465 const struct rte_eth_flex_payload_cfg *flex_cfg; in i40e_check_fdir_flex_conf() local483 flex_cfg = &conf->flex_set[i]; in i40e_check_fdir_flex_conf()484 if (flex_cfg->type > RTE_ETH_L4_PAYLOAD) { in i40e_check_fdir_flex_conf()488 ret = i40e_check_fdir_flex_payload(flex_cfg); in i40e_check_fdir_flex_conf()
11010 struct rte_eth_flex_payload_cfg flex_cfg; in cmd_flow_director_flxpld_parsed() local11021 memset(&flex_cfg, 0, sizeof(struct rte_eth_flex_payload_cfg)); in cmd_flow_director_flxpld_parsed()11024 flex_cfg.type = RTE_ETH_RAW_PAYLOAD; in cmd_flow_director_flxpld_parsed()11026 flex_cfg.type = RTE_ETH_L2_PAYLOAD; in cmd_flow_director_flxpld_parsed()11028 flex_cfg.type = RTE_ETH_L3_PAYLOAD; in cmd_flow_director_flxpld_parsed()11030 flex_cfg.type = RTE_ETH_L4_PAYLOAD; in cmd_flow_director_flxpld_parsed()11032 ret = parse_offsets(res->payload_cfg, flex_cfg.src_offset, in cmd_flow_director_flxpld_parsed()11039 fdir_set_flex_payload(res->port_id, &flex_cfg); in cmd_flow_director_flxpld_parsed()