Lines Matching defs:ib_spec
1829 const union ib_flow_spec *ib_spec)
1840 switch (ib_spec->type) {
1842 if (FIELDS_NOT_SUPPORTED(ib_spec->eth.mask, LAST_ETH_FIELD))
1847 ib_spec->eth.mask.dst_mac);
1850 ib_spec->eth.val.dst_mac);
1854 ib_spec->eth.mask.src_mac);
1857 ib_spec->eth.val.src_mac);
1859 if (ib_spec->eth.mask.vlan_tag) {
1866 first_vid, ntohs(ib_spec->eth.mask.vlan_tag));
1868 first_vid, ntohs(ib_spec->eth.val.vlan_tag));
1872 ntohs(ib_spec->eth.mask.vlan_tag) >> 12);
1875 ntohs(ib_spec->eth.val.vlan_tag) >> 12);
1879 ntohs(ib_spec->eth.mask.vlan_tag) >> 13);
1882 ntohs(ib_spec->eth.val.vlan_tag) >> 13);
1885 ethertype, ntohs(ib_spec->eth.mask.ether_type));
1887 ethertype, ntohs(ib_spec->eth.val.ether_type));
1890 if (FIELDS_NOT_SUPPORTED(ib_spec->ipv4.mask, LAST_IPV4_FIELD))
1900 &ib_spec->ipv4.mask.src_ip,
1901 sizeof(ib_spec->ipv4.mask.src_ip));
1904 &ib_spec->ipv4.val.src_ip,
1905 sizeof(ib_spec->ipv4.val.src_ip));
1908 &ib_spec->ipv4.mask.dst_ip,
1909 sizeof(ib_spec->ipv4.mask.dst_ip));
1912 &ib_spec->ipv4.val.dst_ip,
1913 sizeof(ib_spec->ipv4.val.dst_ip));
1916 ib_spec->ipv4.mask.tos, ib_spec->ipv4.val.tos);
1919 ib_spec->ipv4.mask.proto, ib_spec->ipv4.val.proto);
1922 if (FIELDS_NOT_SUPPORTED(ib_spec->ipv6.mask, LAST_IPV6_FIELD))
1932 &ib_spec->ipv6.mask.src_ip,
1933 sizeof(ib_spec->ipv6.mask.src_ip));
1936 &ib_spec->ipv6.val.src_ip,
1937 sizeof(ib_spec->ipv6.val.src_ip));
1940 &ib_spec->ipv6.mask.dst_ip,
1941 sizeof(ib_spec->ipv6.mask.dst_ip));
1944 &ib_spec->ipv6.val.dst_ip,
1945 sizeof(ib_spec->ipv6.val.dst_ip));
1948 ib_spec->ipv6.mask.traffic_class,
1949 ib_spec->ipv6.val.traffic_class);
1952 ib_spec->ipv6.mask.next_hdr,
1953 ib_spec->ipv6.val.next_hdr);
1957 ntohl(ib_spec->ipv6.mask.flow_label));
1960 ntohl(ib_spec->ipv6.val.flow_label));
1963 if (FIELDS_NOT_SUPPORTED(ib_spec->tcp_udp.mask,
1973 ntohs(ib_spec->tcp_udp.mask.src_port));
1975 ntohs(ib_spec->tcp_udp.val.src_port));
1978 ntohs(ib_spec->tcp_udp.mask.dst_port));
1980 ntohs(ib_spec->tcp_udp.val.dst_port));
1983 if (FIELDS_NOT_SUPPORTED(ib_spec->tcp_udp.mask,
1993 ntohs(ib_spec->tcp_udp.mask.src_port));
1995 ntohs(ib_spec->tcp_udp.val.src_port));
1998 ntohs(ib_spec->tcp_udp.mask.dst_port));
2000 ntohs(ib_spec->tcp_udp.val.dst_port));
2034 union ib_flow_spec *ib_spec = (union ib_flow_spec *)(flow_attr + 1);
2041 if (ib_spec->type == IB_FLOW_SPEC_ETH &&
2042 ib_spec->eth.mask.ether_type) {
2043 if (!((ib_spec->eth.mask.ether_type == htons(0xffff)) &&
2044 ib_spec->eth.val.ether_type == htons(ETH_P_IP)))
2046 } else if (ib_spec->type == IB_FLOW_SPEC_IPV4) {
2049 ib_spec = (void *)ib_spec + ib_spec->size;