Home
last modified time | relevance | path

Searched refs:fkeys (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c927 struct flow_keys *fkeys; in bnxt_grxclsrule() local
947 fkeys = &fltr->fkeys; in bnxt_grxclsrule()
948 if (fkeys->basic.n_proto == htons(ETH_P_IP)) { in bnxt_grxclsrule()
949 if (fkeys->basic.ip_proto == IPPROTO_TCP) in bnxt_grxclsrule()
951 else if (fkeys->basic.ip_proto == IPPROTO_UDP) in bnxt_grxclsrule()
956 fs->h_u.tcp_ip4_spec.ip4src = fkeys->addrs.v4addrs.src; in bnxt_grxclsrule()
959 fs->h_u.tcp_ip4_spec.ip4dst = fkeys->addrs.v4addrs.dst; in bnxt_grxclsrule()
962 fs->h_u.tcp_ip4_spec.psrc = fkeys->ports.src; in bnxt_grxclsrule()
965 fs->h_u.tcp_ip4_spec.pdst = fkeys->ports.dst; in bnxt_grxclsrule()
970 if (fkeys->basic.ip_proto == IPPROTO_TCP) in bnxt_grxclsrule()
[all …]
Dbnxt.c4602 struct flow_keys *keys = &fltr->fkeys; in bnxt_hwrm_cfa_ntuple_filter_alloc()
10966 struct flow_keys *keys1 = &f1->fkeys; in bnxt_fltr_match()
10967 struct flow_keys *keys2 = &f2->fkeys; in bnxt_fltr_match()
10987 struct flow_keys *fkeys; in bnxt_rx_flow_steer() local
11012 fkeys = &new_fltr->fkeys; in bnxt_rx_flow_steer()
11013 if (!skb_flow_dissect_flow_keys(skb, fkeys, 0)) { in bnxt_rx_flow_steer()
11018 if ((fkeys->basic.n_proto != htons(ETH_P_IP) && in bnxt_rx_flow_steer()
11019 fkeys->basic.n_proto != htons(ETH_P_IPV6)) || in bnxt_rx_flow_steer()
11020 ((fkeys->basic.ip_proto != IPPROTO_TCP) && in bnxt_rx_flow_steer()
11021 (fkeys->basic.ip_proto != IPPROTO_UDP))) { in bnxt_rx_flow_steer()
[all …]
Dbnxt.h1099 struct flow_keys fkeys; member
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/
Dhns3_enet.c1787 struct flow_keys fkeys; in hns3_rx_flow_steer() local
1795 if (!skb_flow_dissect_flow_keys(skb, &fkeys, 0)) in hns3_rx_flow_steer()
1798 if ((fkeys.basic.n_proto != htons(ETH_P_IP) && in hns3_rx_flow_steer()
1799 fkeys.basic.n_proto != htons(ETH_P_IPV6)) || in hns3_rx_flow_steer()
1800 (fkeys.basic.ip_proto != IPPROTO_TCP && in hns3_rx_flow_steer()
1801 fkeys.basic.ip_proto != IPPROTO_UDP)) in hns3_rx_flow_steer()
1804 return h->ae_algo->ops->add_arfs_entry(h, rxq_index, flow_id, &fkeys); in hns3_rx_flow_steer()
Dhnae3.h522 u16 flow_id, struct flow_keys *fkeys);
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c6003 static void hclge_fd_get_flow_tuples(const struct flow_keys *fkeys, in hclge_fd_get_flow_tuples() argument
6006 tuples->ether_proto = be16_to_cpu(fkeys->basic.n_proto); in hclge_fd_get_flow_tuples()
6007 tuples->ip_proto = fkeys->basic.ip_proto; in hclge_fd_get_flow_tuples()
6008 tuples->dst_port = be16_to_cpu(fkeys->ports.dst); in hclge_fd_get_flow_tuples()
6010 if (fkeys->basic.n_proto == htons(ETH_P_IP)) { in hclge_fd_get_flow_tuples()
6011 tuples->src_ip[3] = be32_to_cpu(fkeys->addrs.v4addrs.src); in hclge_fd_get_flow_tuples()
6012 tuples->dst_ip[3] = be32_to_cpu(fkeys->addrs.v4addrs.dst); in hclge_fd_get_flow_tuples()
6015 fkeys->addrs.v6addrs.src.in6_u.u6_addr32, in hclge_fd_get_flow_tuples()
6018 fkeys->addrs.v6addrs.dst.in6_u.u6_addr32, in hclge_fd_get_flow_tuples()
6064 u16 flow_id, struct flow_keys *fkeys) in hclge_add_fd_entry_by_arfs() argument
[all …]