Lines Matching full:mask

37 	if (!is_zero_ether_addr(match.mask->src)) {  in vcap_tc_flower_handler_ethaddr_usage()
39 vcap_netbytes_copy(smac.mask, match.mask->src, ETH_ALEN); in vcap_tc_flower_handler_ethaddr_usage()
45 if (!is_zero_ether_addr(match.mask->dst)) { in vcap_tc_flower_handler_ethaddr_usage()
47 vcap_netbytes_copy(dmac.mask, match.mask->dst, ETH_ALEN); in vcap_tc_flower_handler_ethaddr_usage()
71 if (mt.mask->src) { in vcap_tc_flower_handler_ipv4_usage()
75 be32_to_cpu(mt.mask->src)); in vcap_tc_flower_handler_ipv4_usage()
79 if (mt.mask->dst) { in vcap_tc_flower_handler_ipv4_usage()
83 be32_to_cpu(mt.mask->dst)); in vcap_tc_flower_handler_ipv4_usage()
110 if (!ipv6_addr_any(&mt.mask->src)) { in vcap_tc_flower_handler_ipv6_usage()
112 vcap_netbytes_copy(sip.mask, mt.mask->src.s6_addr, 16); in vcap_tc_flower_handler_ipv6_usage()
118 if (!ipv6_addr_any(&mt.mask->dst)) { in vcap_tc_flower_handler_ipv6_usage()
120 vcap_netbytes_copy(dip.mask, mt.mask->dst.s6_addr, 16); in vcap_tc_flower_handler_ipv6_usage()
138 u16 value, mask; in vcap_tc_flower_handler_portnum_usage() local
143 if (mt.mask->src) { in vcap_tc_flower_handler_portnum_usage()
145 mask = be16_to_cpu(mt.mask->src); in vcap_tc_flower_handler_portnum_usage()
147 mask); in vcap_tc_flower_handler_portnum_usage()
152 if (mt.mask->dst) { in vcap_tc_flower_handler_portnum_usage()
154 mask = be16_to_cpu(mt.mask->dst); in vcap_tc_flower_handler_portnum_usage()
156 mask); in vcap_tc_flower_handler_portnum_usage()
188 if (mt.mask->vlan_id) { in vcap_tc_flower_handler_cvlan_usage()
191 mt.mask->vlan_id); in vcap_tc_flower_handler_cvlan_usage()
196 if (mt.mask->vlan_priority) { in vcap_tc_flower_handler_cvlan_usage()
199 mt.mask->vlan_priority); in vcap_tc_flower_handler_cvlan_usage()
222 if (mt.mask->vlan_id) { in vcap_tc_flower_handler_vlan_usage()
225 mt.mask->vlan_id); in vcap_tc_flower_handler_vlan_usage()
230 if (mt.mask->vlan_priority) { in vcap_tc_flower_handler_vlan_usage()
233 mt.mask->vlan_priority); in vcap_tc_flower_handler_vlan_usage()
238 if (mt.mask->vlan_tpid) in vcap_tc_flower_handler_vlan_usage()
260 tcp_flags_mask = be16_to_cpu(mt.mask->flags); in vcap_tc_flower_handler_tcp_usage()
329 u16 value, mask; in vcap_tc_flower_handler_arp_usage() local
335 if (mt.mask->op) { in vcap_tc_flower_handler_arp_usage()
336 mask = 0x3; in vcap_tc_flower_handler_arp_usage()
347 value, mask); in vcap_tc_flower_handler_arp_usage()
353 if (!is_zero_ether_addr(mt.mask->sha) || in vcap_tc_flower_handler_arp_usage()
354 !is_zero_ether_addr(mt.mask->tha)) { in vcap_tc_flower_handler_arp_usage()
359 if (mt.mask->sip) { in vcap_tc_flower_handler_arp_usage()
361 ipmsk = be32_to_cpu((__force __be32)mt.mask->sip); in vcap_tc_flower_handler_arp_usage()
369 if (mt.mask->tip) { in vcap_tc_flower_handler_arp_usage()
371 ipmsk = be32_to_cpu((__force __be32)mt.mask->tip); in vcap_tc_flower_handler_arp_usage()
396 if (mt.mask->tos) { in vcap_tc_flower_handler_ip_usage()
399 mt.mask->tos); in vcap_tc_flower_handler_ip_usage()