Lines Matching refs:fkeys
1085 struct flow_keys *fkeys; in bnxt_grxclsrule() local
1131 fkeys = &fltr->fkeys; in bnxt_grxclsrule()
1133 if (fkeys->basic.n_proto == htons(ETH_P_IP)) { in bnxt_grxclsrule()
1134 if (fkeys->basic.ip_proto == IPPROTO_ICMP || in bnxt_grxclsrule()
1135 fkeys->basic.ip_proto == IPPROTO_RAW) { in bnxt_grxclsrule()
1138 if (fkeys->basic.ip_proto == IPPROTO_ICMP) in bnxt_grxclsrule()
1143 } else if (fkeys->basic.ip_proto == IPPROTO_TCP) { in bnxt_grxclsrule()
1145 } else if (fkeys->basic.ip_proto == IPPROTO_UDP) { in bnxt_grxclsrule()
1151 fs->h_u.tcp_ip4_spec.ip4src = fkeys->addrs.v4addrs.src; in bnxt_grxclsrule()
1153 fs->h_u.tcp_ip4_spec.ip4dst = fkeys->addrs.v4addrs.dst; in bnxt_grxclsrule()
1157 fs->h_u.tcp_ip4_spec.psrc = fkeys->ports.src; in bnxt_grxclsrule()
1159 fs->h_u.tcp_ip4_spec.pdst = fkeys->ports.dst; in bnxt_grxclsrule()
1163 if (fkeys->basic.ip_proto == IPPROTO_ICMPV6 || in bnxt_grxclsrule()
1164 fkeys->basic.ip_proto == IPPROTO_RAW) { in bnxt_grxclsrule()
1166 if (fkeys->basic.ip_proto == IPPROTO_ICMPV6) in bnxt_grxclsrule()
1171 } else if (fkeys->basic.ip_proto == IPPROTO_TCP) { in bnxt_grxclsrule()
1173 } else if (fkeys->basic.ip_proto == IPPROTO_UDP) { in bnxt_grxclsrule()
1180 fkeys->addrs.v6addrs.src; in bnxt_grxclsrule()
1184 fkeys->addrs.v6addrs.dst; in bnxt_grxclsrule()
1189 fs->h_u.tcp_ip6_spec.psrc = fkeys->ports.src; in bnxt_grxclsrule()
1191 fs->h_u.tcp_ip6_spec.pdst = fkeys->ports.dst; in bnxt_grxclsrule()
1319 struct flow_keys *fkeys; in bnxt_add_ntuple_cls_rule() local
1352 fkeys = &new_fltr->fkeys; in bnxt_add_ntuple_cls_rule()
1360 fkeys->basic.ip_proto = ip_spec->proto; in bnxt_add_ntuple_cls_rule()
1361 fkeys->basic.n_proto = htons(ETH_P_IP); in bnxt_add_ntuple_cls_rule()
1362 fkeys->addrs.v4addrs.src = ip_spec->ip4src; in bnxt_add_ntuple_cls_rule()
1364 fkeys->addrs.v4addrs.dst = ip_spec->ip4dst; in bnxt_add_ntuple_cls_rule()
1373 fkeys->basic.ip_proto = IPPROTO_TCP; in bnxt_add_ntuple_cls_rule()
1375 fkeys->basic.ip_proto = IPPROTO_UDP; in bnxt_add_ntuple_cls_rule()
1376 fkeys->basic.n_proto = htons(ETH_P_IP); in bnxt_add_ntuple_cls_rule()
1377 fkeys->addrs.v4addrs.src = ip_spec->ip4src; in bnxt_add_ntuple_cls_rule()
1379 fkeys->addrs.v4addrs.dst = ip_spec->ip4dst; in bnxt_add_ntuple_cls_rule()
1381 fkeys->ports.src = ip_spec->psrc; in bnxt_add_ntuple_cls_rule()
1383 fkeys->ports.dst = ip_spec->pdst; in bnxt_add_ntuple_cls_rule()
1391 fkeys->basic.ip_proto = ip_spec->l4_proto; in bnxt_add_ntuple_cls_rule()
1392 fkeys->basic.n_proto = htons(ETH_P_IPV6); in bnxt_add_ntuple_cls_rule()
1393 fkeys->addrs.v6addrs.src = *(struct in6_addr *)&ip_spec->ip6src; in bnxt_add_ntuple_cls_rule()
1395 fkeys->addrs.v6addrs.dst = *(struct in6_addr *)&ip_spec->ip6dst; in bnxt_add_ntuple_cls_rule()
1404 fkeys->basic.ip_proto = IPPROTO_TCP; in bnxt_add_ntuple_cls_rule()
1406 fkeys->basic.ip_proto = IPPROTO_UDP; in bnxt_add_ntuple_cls_rule()
1407 fkeys->basic.n_proto = htons(ETH_P_IPV6); in bnxt_add_ntuple_cls_rule()
1409 fkeys->addrs.v6addrs.src = *(struct in6_addr *)&ip_spec->ip6src; in bnxt_add_ntuple_cls_rule()
1411 fkeys->addrs.v6addrs.dst = *(struct in6_addr *)&ip_spec->ip6dst; in bnxt_add_ntuple_cls_rule()
1413 fkeys->ports.src = ip_spec->psrc; in bnxt_add_ntuple_cls_rule()
1415 fkeys->ports.dst = ip_spec->pdst; in bnxt_add_ntuple_cls_rule()
1426 idx = bnxt_get_ntp_filter_idx(bp, fkeys, NULL); in bnxt_add_ntuple_cls_rule()