Searched refs:fkeys (Results 1 – 6 of 6) sorted by relevance
/Linux-v5.10/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ethtool.c | 977 struct flow_keys *fkeys; in bnxt_grxclsrule() local 997 fkeys = &fltr->fkeys; in bnxt_grxclsrule() 998 if (fkeys->basic.n_proto == htons(ETH_P_IP)) { in bnxt_grxclsrule() 999 if (fkeys->basic.ip_proto == IPPROTO_TCP) in bnxt_grxclsrule() 1001 else if (fkeys->basic.ip_proto == IPPROTO_UDP) in bnxt_grxclsrule() 1006 fs->h_u.tcp_ip4_spec.ip4src = fkeys->addrs.v4addrs.src; in bnxt_grxclsrule() 1009 fs->h_u.tcp_ip4_spec.ip4dst = fkeys->addrs.v4addrs.dst; in bnxt_grxclsrule() 1012 fs->h_u.tcp_ip4_spec.psrc = fkeys->ports.src; in bnxt_grxclsrule() 1015 fs->h_u.tcp_ip4_spec.pdst = fkeys->ports.dst; in bnxt_grxclsrule() 1020 if (fkeys->basic.ip_proto == IPPROTO_TCP) in bnxt_grxclsrule() [all …]
|
D | bnxt.c | 4781 struct flow_keys *keys = &fltr->fkeys; in bnxt_hwrm_cfa_ntuple_filter_alloc() 11787 struct flow_keys *keys1 = &f1->fkeys; in bnxt_fltr_match() 11788 struct flow_keys *keys2 = &f2->fkeys; in bnxt_fltr_match() 11820 struct flow_keys *fkeys; in bnxt_rx_flow_steer() local 11846 fkeys = &new_fltr->fkeys; in bnxt_rx_flow_steer() 11847 if (!skb_flow_dissect_flow_keys(skb, fkeys, 0)) { in bnxt_rx_flow_steer() 11852 if ((fkeys->basic.n_proto != htons(ETH_P_IP) && in bnxt_rx_flow_steer() 11853 fkeys->basic.n_proto != htons(ETH_P_IPV6)) || in bnxt_rx_flow_steer() 11854 ((fkeys->basic.ip_proto != IPPROTO_TCP) && in bnxt_rx_flow_steer() 11855 (fkeys->basic.ip_proto != IPPROTO_UDP))) { in bnxt_rx_flow_steer() [all …]
|
D | bnxt.h | 1135 struct flow_keys fkeys; member
|
/Linux-v5.10/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_enet.c | 1954 struct flow_keys fkeys; in hns3_rx_flow_steer() local 1962 if (!skb_flow_dissect_flow_keys(skb, &fkeys, 0)) in hns3_rx_flow_steer() 1965 if ((fkeys.basic.n_proto != htons(ETH_P_IP) && in hns3_rx_flow_steer() 1966 fkeys.basic.n_proto != htons(ETH_P_IPV6)) || in hns3_rx_flow_steer() 1967 (fkeys.basic.ip_proto != IPPROTO_TCP && in hns3_rx_flow_steer() 1968 fkeys.basic.ip_proto != IPPROTO_UDP)) in hns3_rx_flow_steer() 1971 return h->ae_algo->ops->add_arfs_entry(h, rxq_index, flow_id, &fkeys); in hns3_rx_flow_steer()
|
D | hnae3.h | 610 u16 flow_id, struct flow_keys *fkeys);
|
/Linux-v5.10/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_main.c | 6307 static void hclge_fd_get_flow_tuples(const struct flow_keys *fkeys, in hclge_fd_get_flow_tuples() argument 6310 #define flow_ip6_src fkeys->addrs.v6addrs.src.in6_u.u6_addr32 in hclge_fd_get_flow_tuples() 6311 #define flow_ip6_dst fkeys->addrs.v6addrs.dst.in6_u.u6_addr32 in hclge_fd_get_flow_tuples() 6313 tuples->ether_proto = be16_to_cpu(fkeys->basic.n_proto); in hclge_fd_get_flow_tuples() 6314 tuples->ip_proto = fkeys->basic.ip_proto; in hclge_fd_get_flow_tuples() 6315 tuples->dst_port = be16_to_cpu(fkeys->ports.dst); in hclge_fd_get_flow_tuples() 6317 if (fkeys->basic.n_proto == htons(ETH_P_IP)) { in hclge_fd_get_flow_tuples() 6318 tuples->src_ip[3] = be32_to_cpu(fkeys->addrs.v4addrs.src); in hclge_fd_get_flow_tuples() 6319 tuples->dst_ip[3] = be32_to_cpu(fkeys->addrs.v4addrs.dst); in hclge_fd_get_flow_tuples() 6371 u16 flow_id, struct flow_keys *fkeys) in hclge_add_fd_entry_by_arfs() argument [all …]
|