Searched refs:fkeys (Results 1 – 6 of 6) sorted by relevance
/linux-6.12.1/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ethtool.c | 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() [all …]
|
D | bnxt.c | 5635 #define BNXT_IPV4_4TUPLE(bp, fkeys) \ argument 5636 (((fkeys)->basic.ip_proto == IPPROTO_TCP && \ 5638 ((fkeys)->basic.ip_proto == IPPROTO_UDP && \ 5641 #define BNXT_IPV6_4TUPLE(bp, fkeys) \ argument 5642 (((fkeys)->basic.ip_proto == IPPROTO_TCP && \ 5644 ((fkeys)->basic.ip_proto == IPPROTO_UDP && \ 5647 static u32 bnxt_get_rss_flow_tuple_len(struct bnxt *bp, struct flow_keys *fkeys) in bnxt_get_rss_flow_tuple_len() argument 5649 if (fkeys->basic.n_proto == htons(ETH_P_IP)) { in bnxt_get_rss_flow_tuple_len() 5650 if (BNXT_IPV4_4TUPLE(bp, fkeys)) in bnxt_get_rss_flow_tuple_len() 5651 return sizeof(fkeys->addrs.v4addrs) + in bnxt_get_rss_flow_tuple_len() [all …]
|
D | bnxt.h | 1431 struct flow_keys fkeys; member 2871 u32 bnxt_get_ntp_filter_idx(struct bnxt *bp, struct flow_keys *fkeys,
|
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_enet.c | 2899 struct flow_keys fkeys; in hns3_rx_flow_steer() local 2907 if (!skb_flow_dissect_flow_keys(skb, &fkeys, 0)) in hns3_rx_flow_steer() 2910 if ((fkeys.basic.n_proto != htons(ETH_P_IP) && in hns3_rx_flow_steer() 2911 fkeys.basic.n_proto != htons(ETH_P_IPV6)) || in hns3_rx_flow_steer() 2912 (fkeys.basic.ip_proto != IPPROTO_TCP && in hns3_rx_flow_steer() 2913 fkeys.basic.ip_proto != IPPROTO_UDP)) in hns3_rx_flow_steer() 2916 return h->ae_algo->ops->add_arfs_entry(h, rxq_index, flow_id, &fkeys); in hns3_rx_flow_steer()
|
D | hnae3.h | 750 u16 flow_id, struct flow_keys *fkeys);
|
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_main.c | 7005 static void hclge_fd_get_flow_tuples(const struct flow_keys *fkeys, in hclge_fd_get_flow_tuples() argument 7008 #define flow_ip6_src fkeys->addrs.v6addrs.src.in6_u.u6_addr32 in hclge_fd_get_flow_tuples() 7009 #define flow_ip6_dst fkeys->addrs.v6addrs.dst.in6_u.u6_addr32 in hclge_fd_get_flow_tuples() 7011 tuples->ether_proto = be16_to_cpu(fkeys->basic.n_proto); in hclge_fd_get_flow_tuples() 7012 tuples->ip_proto = fkeys->basic.ip_proto; in hclge_fd_get_flow_tuples() 7013 tuples->dst_port = be16_to_cpu(fkeys->ports.dst); in hclge_fd_get_flow_tuples() 7015 if (fkeys->basic.n_proto == htons(ETH_P_IP)) { in hclge_fd_get_flow_tuples() 7016 tuples->src_ip[3] = be32_to_cpu(fkeys->addrs.v4addrs.src); in hclge_fd_get_flow_tuples() 7017 tuples->dst_ip[3] = be32_to_cpu(fkeys->addrs.v4addrs.dst); in hclge_fd_get_flow_tuples() 7070 u16 flow_id, struct flow_keys *fkeys) in hclge_add_fd_entry_by_arfs() argument [all …]
|