Lines Matching refs:match

3554 	struct ethtool_rx_flow_match *match;  in ethtool_rx_flow_rule_create()  local
3570 match = (struct ethtool_rx_flow_match *)flow->priv; in ethtool_rx_flow_rule_create()
3571 flow->rule->match.dissector = &match->dissector; in ethtool_rx_flow_rule_create()
3572 flow->rule->match.mask = &match->mask; in ethtool_rx_flow_rule_create()
3573 flow->rule->match.key = &match->key; in ethtool_rx_flow_rule_create()
3575 match->mask.basic.n_proto = htons(0xffff); in ethtool_rx_flow_rule_create()
3585 ether_addr_copy(match->key.eth_addrs.src, in ethtool_rx_flow_rule_create()
3587 ether_addr_copy(match->mask.eth_addrs.src, in ethtool_rx_flow_rule_create()
3591 ether_addr_copy(match->key.eth_addrs.dst, in ethtool_rx_flow_rule_create()
3593 ether_addr_copy(match->mask.eth_addrs.dst, in ethtool_rx_flow_rule_create()
3597 match->key.basic.n_proto = ether_spec->h_proto; in ethtool_rx_flow_rule_create()
3598 match->mask.basic.n_proto = ether_m_spec->h_proto; in ethtool_rx_flow_rule_create()
3606 match->key.basic.n_proto = htons(ETH_P_IP); in ethtool_rx_flow_rule_create()
3612 match->key.ipv4.src = v4_spec->ip4src; in ethtool_rx_flow_rule_create()
3613 match->mask.ipv4.src = v4_m_spec->ip4src; in ethtool_rx_flow_rule_create()
3616 match->key.ipv4.dst = v4_spec->ip4dst; in ethtool_rx_flow_rule_create()
3617 match->mask.ipv4.dst = v4_m_spec->ip4dst; in ethtool_rx_flow_rule_create()
3621 match->dissector.used_keys |= in ethtool_rx_flow_rule_create()
3623 match->dissector.offset[FLOW_DISSECTOR_KEY_IPV4_ADDRS] = in ethtool_rx_flow_rule_create()
3627 match->key.tp.src = v4_spec->psrc; in ethtool_rx_flow_rule_create()
3628 match->mask.tp.src = v4_m_spec->psrc; in ethtool_rx_flow_rule_create()
3631 match->key.tp.dst = v4_spec->pdst; in ethtool_rx_flow_rule_create()
3632 match->mask.tp.dst = v4_m_spec->pdst; in ethtool_rx_flow_rule_create()
3636 match->dissector.used_keys |= in ethtool_rx_flow_rule_create()
3638 match->dissector.offset[FLOW_DISSECTOR_KEY_PORTS] = in ethtool_rx_flow_rule_create()
3642 match->key.ip.tos = v4_spec->tos; in ethtool_rx_flow_rule_create()
3643 match->mask.ip.tos = v4_m_spec->tos; in ethtool_rx_flow_rule_create()
3644 match->dissector.used_keys |= in ethtool_rx_flow_rule_create()
3646 match->dissector.offset[FLOW_DISSECTOR_KEY_IP] = in ethtool_rx_flow_rule_create()
3655 match->key.basic.n_proto = htons(ETH_P_IPV6); in ethtool_rx_flow_rule_create()
3660 memcpy(&match->key.ipv6.src, v6_spec->ip6src, in ethtool_rx_flow_rule_create()
3661 sizeof(match->key.ipv6.src)); in ethtool_rx_flow_rule_create()
3662 memcpy(&match->mask.ipv6.src, v6_m_spec->ip6src, in ethtool_rx_flow_rule_create()
3663 sizeof(match->mask.ipv6.src)); in ethtool_rx_flow_rule_create()
3666 memcpy(&match->key.ipv6.dst, v6_spec->ip6dst, in ethtool_rx_flow_rule_create()
3667 sizeof(match->key.ipv6.dst)); in ethtool_rx_flow_rule_create()
3668 memcpy(&match->mask.ipv6.dst, v6_m_spec->ip6dst, in ethtool_rx_flow_rule_create()
3669 sizeof(match->mask.ipv6.dst)); in ethtool_rx_flow_rule_create()
3673 match->dissector.used_keys |= in ethtool_rx_flow_rule_create()
3675 match->dissector.offset[FLOW_DISSECTOR_KEY_IPV6_ADDRS] = in ethtool_rx_flow_rule_create()
3679 match->key.tp.src = v6_spec->psrc; in ethtool_rx_flow_rule_create()
3680 match->mask.tp.src = v6_m_spec->psrc; in ethtool_rx_flow_rule_create()
3683 match->key.tp.dst = v6_spec->pdst; in ethtool_rx_flow_rule_create()
3684 match->mask.tp.dst = v6_m_spec->pdst; in ethtool_rx_flow_rule_create()
3688 match->dissector.used_keys |= in ethtool_rx_flow_rule_create()
3690 match->dissector.offset[FLOW_DISSECTOR_KEY_PORTS] = in ethtool_rx_flow_rule_create()
3694 match->key.ip.tos = v6_spec->tclass; in ethtool_rx_flow_rule_create()
3695 match->mask.ip.tos = v6_m_spec->tclass; in ethtool_rx_flow_rule_create()
3696 match->dissector.used_keys |= in ethtool_rx_flow_rule_create()
3698 match->dissector.offset[FLOW_DISSECTOR_KEY_IP] = in ethtool_rx_flow_rule_create()
3711 match->key.basic.ip_proto = IPPROTO_TCP; in ethtool_rx_flow_rule_create()
3712 match->mask.basic.ip_proto = 0xff; in ethtool_rx_flow_rule_create()
3716 match->key.basic.ip_proto = IPPROTO_UDP; in ethtool_rx_flow_rule_create()
3717 match->mask.basic.ip_proto = 0xff; in ethtool_rx_flow_rule_create()
3721 match->dissector.used_keys |= BIT_ULL(FLOW_DISSECTOR_KEY_BASIC); in ethtool_rx_flow_rule_create()
3722 match->dissector.offset[FLOW_DISSECTOR_KEY_BASIC] = in ethtool_rx_flow_rule_create()
3730 match->key.vlan.vlan_tpid = ext_h_spec->vlan_etype; in ethtool_rx_flow_rule_create()
3731 match->mask.vlan.vlan_tpid = ext_m_spec->vlan_etype; in ethtool_rx_flow_rule_create()
3735 match->key.vlan.vlan_id = in ethtool_rx_flow_rule_create()
3737 match->mask.vlan.vlan_id = in ethtool_rx_flow_rule_create()
3740 match->key.vlan.vlan_dei = in ethtool_rx_flow_rule_create()
3742 match->mask.vlan.vlan_dei = in ethtool_rx_flow_rule_create()
3745 match->key.vlan.vlan_priority = in ethtool_rx_flow_rule_create()
3747 match->mask.vlan.vlan_priority = in ethtool_rx_flow_rule_create()
3753 match->dissector.used_keys |= in ethtool_rx_flow_rule_create()
3755 match->dissector.offset[FLOW_DISSECTOR_KEY_VLAN] = in ethtool_rx_flow_rule_create()
3763 memcpy(match->key.eth_addrs.dst, ext_h_spec->h_dest, in ethtool_rx_flow_rule_create()
3765 memcpy(match->mask.eth_addrs.dst, ext_m_spec->h_dest, in ethtool_rx_flow_rule_create()
3768 match->dissector.used_keys |= in ethtool_rx_flow_rule_create()
3770 match->dissector.offset[FLOW_DISSECTOR_KEY_ETH_ADDRS] = in ethtool_rx_flow_rule_create()