Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c1024 struct flow_keys *fkeys; in bnxt_grxclsrule() local
1044 fkeys = &fltr->fkeys; in bnxt_grxclsrule()
1045 if (fkeys->basic.n_proto == htons(ETH_P_IP)) { in bnxt_grxclsrule()
1046 if (fkeys->basic.ip_proto == IPPROTO_TCP) in bnxt_grxclsrule()
1059 fs->h_u.tcp_ip4_spec.psrc = fkeys->ports.src; in bnxt_grxclsrule()
1062 fs->h_u.tcp_ip4_spec.pdst = fkeys->ports.dst; in bnxt_grxclsrule()
1067 if (fkeys->basic.ip_proto == IPPROTO_TCP) in bnxt_grxclsrule()
1075 fkeys->addrs.v6addrs.src; in bnxt_grxclsrule()
1077 fkeys->addrs.v6addrs.dst; in bnxt_grxclsrule()
1082 fs->h_u.tcp_ip6_spec.psrc = fkeys->ports.src; in bnxt_grxclsrule()
[all …]
H A Dbnxt.c4945 struct flow_keys *keys = &fltr->fkeys; in bnxt_hwrm_cfa_ntuple_filter_alloc()
12896 struct flow_keys *keys1 = &f1->fkeys; in bnxt_fltr_match()
12897 struct flow_keys *keys2 = &f2->fkeys; in bnxt_fltr_match()
12929 struct flow_keys *fkeys; in bnxt_rx_flow_steer() local
12955 fkeys = &new_fltr->fkeys; in bnxt_rx_flow_steer()
12956 if (!skb_flow_dissect_flow_keys(skb, fkeys, 0)) { in bnxt_rx_flow_steer()
12961 if ((fkeys->basic.n_proto != htons(ETH_P_IP) && in bnxt_rx_flow_steer()
12963 ((fkeys->basic.ip_proto != IPPROTO_TCP) && in bnxt_rx_flow_steer()
12964 (fkeys->basic.ip_proto != IPPROTO_UDP))) { in bnxt_rx_flow_steer()
12968 if (fkeys->basic.n_proto == htons(ETH_P_IPV6) && in bnxt_rx_flow_steer()
[all …]
H A Dbnxt.h1187 struct flow_keys fkeys; member
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_enet.c2903 struct flow_keys fkeys; in hns3_rx_flow_steer() local
2911 if (!skb_flow_dissect_flow_keys(skb, &fkeys, 0)) in hns3_rx_flow_steer()
2914 if ((fkeys.basic.n_proto != htons(ETH_P_IP) && in hns3_rx_flow_steer()
2915 fkeys.basic.n_proto != htons(ETH_P_IPV6)) || in hns3_rx_flow_steer()
2916 (fkeys.basic.ip_proto != IPPROTO_TCP && in hns3_rx_flow_steer()
2917 fkeys.basic.ip_proto != IPPROTO_UDP)) in hns3_rx_flow_steer()
2920 return h->ae_algo->ops->add_arfs_entry(h, rxq_index, flow_id, &fkeys); in hns3_rx_flow_steer()
H A Dhnae3.h731 u16 flow_id, struct flow_keys *fkeys);
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.c6950 static void hclge_fd_get_flow_tuples(const struct flow_keys *fkeys, in hclge_fd_get_flow_tuples() argument
6953 #define flow_ip6_src fkeys->addrs.v6addrs.src.in6_u.u6_addr32 in hclge_fd_get_flow_tuples()
6954 #define flow_ip6_dst fkeys->addrs.v6addrs.dst.in6_u.u6_addr32 in hclge_fd_get_flow_tuples()
6956 tuples->ether_proto = be16_to_cpu(fkeys->basic.n_proto); in hclge_fd_get_flow_tuples()
6957 tuples->ip_proto = fkeys->basic.ip_proto; in hclge_fd_get_flow_tuples()
6958 tuples->dst_port = be16_to_cpu(fkeys->ports.dst); in hclge_fd_get_flow_tuples()
6960 if (fkeys->basic.n_proto == htons(ETH_P_IP)) { in hclge_fd_get_flow_tuples()
6961 tuples->src_ip[3] = be32_to_cpu(fkeys->addrs.v4addrs.src); in hclge_fd_get_flow_tuples()
6962 tuples->dst_ip[3] = be32_to_cpu(fkeys->addrs.v4addrs.dst); in hclge_fd_get_flow_tuples()
7015 u16 flow_id, struct flow_keys *fkeys) in hclge_add_fd_entry_by_arfs() argument
[all …]