Home
last modified time | relevance | path

Searched refs:fk (Results 1 – 13 of 13) sorted by relevance

/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Den_arfs.c657 const struct flow_keys *fk, in arfs_alloc_rule() argument
675 tuple->etype = fk->basic.n_proto; in arfs_alloc_rule()
676 tuple->ip_proto = fk->basic.ip_proto; in arfs_alloc_rule()
678 tuple->src_ipv4 = fk->addrs.v4addrs.src; in arfs_alloc_rule()
679 tuple->dst_ipv4 = fk->addrs.v4addrs.dst; in arfs_alloc_rule()
681 memcpy(&tuple->src_ipv6, &fk->addrs.v6addrs.src, in arfs_alloc_rule()
683 memcpy(&tuple->dst_ipv6, &fk->addrs.v6addrs.dst, in arfs_alloc_rule()
686 tuple->src_port = fk->ports.src; in arfs_alloc_rule()
687 tuple->dst_port = fk->ports.dst; in arfs_alloc_rule()
698 static bool arfs_cmp(const struct arfs_tuple *tuple, const struct flow_keys *fk) in arfs_cmp() argument
[all …]
Den_rx.c1226 int udp_off = rq->hw_gro_data->fk.control.thoff; in mlx5e_shampo_update_ipv4_udp_hdr()
1245 int udp_off = rq->hw_gro_data->fk.control.thoff; in mlx5e_shampo_update_ipv6_udp_hdr()
1270 last_tcp_hd = last_hd_addr + ETH_HLEN + rq->hw_gro_data->fk.control.thoff; in mlx5e_shampo_update_fin_psh_flags()
1277 int tcp_off = rq->hw_gro_data->fk.control.thoff; in mlx5e_shampo_update_ipv4_tcp_hdr()
1301 int tcp_off = rq->hw_gro_data->fk.control.thoff; in mlx5e_shampo_update_ipv6_tcp_hdr()
1321 bool is_ipv4 = (rq->hw_gro_data->fk.basic.n_proto == htons(ETH_P_IP)); in mlx5e_shampo_update_hdr()
1328 int nhoff = rq->hw_gro_data->fk.control.thoff - sizeof(struct iphdr); in mlx5e_shampo_update_hdr()
1340 int nhoff = rq->hw_gro_data->fk.control.thoff - sizeof(struct ipv6hdr); in mlx5e_shampo_update_hdr()
1622 if (!skb_flow_dissect_flow_keys(skb, &rq->hw_gro_data->fk, 0)) { in mlx5e_shampo_complete_rx_cqe()
2351 rq->hw_gro_data->fk.basic.n_proto == htons(ETH_P_IP)) { in mlx5e_handle_rx_cqe_mpwrq_shampo()
[all …]
Den.h647 struct flow_keys fk; member
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/
Dptp.h73 struct flow_keys fk; in mlx5e_use_ptpsq() local
78 if (!skb_flow_dissect_flow_keys(skb, &fk, 0)) in mlx5e_use_ptpsq()
81 if (fk.basic.n_proto == htons(ETH_P_1588)) in mlx5e_use_ptpsq()
84 if (fk.basic.n_proto != htons(ETH_P_IP) && in mlx5e_use_ptpsq()
85 fk.basic.n_proto != htons(ETH_P_IPV6)) in mlx5e_use_ptpsq()
88 return (fk.basic.ip_proto == IPPROTO_UDP && in mlx5e_use_ptpsq()
89 fk.ports.dst == htons(PTP_EV_PORT)); in mlx5e_use_ptpsq()
/linux-6.6.21/drivers/net/ethernet/intel/ice/
Dice_arfs.c300 ice_arfs_build_entry(struct ice_vsi *vsi, const struct flow_keys *fk, in ice_arfs_build_entry() argument
317 ip_proto = fk->basic.ip_proto; in ice_arfs_build_entry()
319 if (fk->basic.n_proto == htons(ETH_P_IP)) { in ice_arfs_build_entry()
324 fltr_info->ip.v4.src_ip = fk->addrs.v4addrs.src; in ice_arfs_build_entry()
325 fltr_info->ip.v4.dst_ip = fk->addrs.v4addrs.dst; in ice_arfs_build_entry()
326 fltr_info->ip.v4.src_port = fk->ports.src; in ice_arfs_build_entry()
327 fltr_info->ip.v4.dst_port = fk->ports.dst; in ice_arfs_build_entry()
333 memcpy(&fltr_info->ip.v6.src_ip, &fk->addrs.v6addrs.src, in ice_arfs_build_entry()
335 memcpy(&fltr_info->ip.v6.dst_ip, &fk->addrs.v6addrs.dst, in ice_arfs_build_entry()
337 fltr_info->ip.v6.src_port = fk->ports.src; in ice_arfs_build_entry()
[all …]
/linux-6.6.21/crypto/
Dsm4.c14 static const u32 ____cacheline_aligned fk[4] = { variable
64 extern const u32 crypto_sm4_fk[4] __alias(fk);
129 rk[0] = get_unaligned_be32(&key[0]) ^ fk[0]; in sm4_expandkey()
130 rk[1] = get_unaligned_be32(&key[1]) ^ fk[1]; in sm4_expandkey()
131 rk[2] = get_unaligned_be32(&key[2]) ^ fk[2]; in sm4_expandkey()
132 rk[3] = get_unaligned_be32(&key[3]) ^ fk[3]; in sm4_expandkey()
/linux-6.6.21/drivers/net/ethernet/sfc/falcon/
Drx.c848 struct flow_keys fk; in ef4_filter_rfs() local
854 if (!skb_flow_dissect_flow_keys(skb, &fk, 0)) in ef4_filter_rfs()
857 if (fk.basic.n_proto != htons(ETH_P_IP) && fk.basic.n_proto != htons(ETH_P_IPV6)) in ef4_filter_rfs()
859 if (fk.control.flags & FLOW_DIS_IS_FRAGMENT) in ef4_filter_rfs()
869 spec.ether_type = fk.basic.n_proto; in ef4_filter_rfs()
870 spec.ip_proto = fk.basic.ip_proto; in ef4_filter_rfs()
872 if (fk.basic.n_proto == htons(ETH_P_IP)) { in ef4_filter_rfs()
873 spec.rem_host[0] = fk.addrs.v4addrs.src; in ef4_filter_rfs()
874 spec.loc_host[0] = fk.addrs.v4addrs.dst; in ef4_filter_rfs()
876 memcpy(spec.rem_host, &fk.addrs.v6addrs.src, sizeof(struct in6_addr)); in ef4_filter_rfs()
[all …]
/linux-6.6.21/drivers/net/ethernet/sfc/
Drx_common.c949 struct flow_keys fk; in efx_filter_rfs() local
966 if (!skb_flow_dissect_flow_keys(skb, &fk, 0)) { in efx_filter_rfs()
971 if (fk.basic.n_proto != htons(ETH_P_IP) && fk.basic.n_proto != htons(ETH_P_IPV6)) { in efx_filter_rfs()
975 if (fk.control.flags & FLOW_DIS_IS_FRAGMENT) { in efx_filter_rfs()
988 req->spec.ether_type = fk.basic.n_proto; in efx_filter_rfs()
989 req->spec.ip_proto = fk.basic.ip_proto; in efx_filter_rfs()
991 if (fk.basic.n_proto == htons(ETH_P_IP)) { in efx_filter_rfs()
992 req->spec.rem_host[0] = fk.addrs.v4addrs.src; in efx_filter_rfs()
993 req->spec.loc_host[0] = fk.addrs.v4addrs.dst; in efx_filter_rfs()
995 memcpy(req->spec.rem_host, &fk.addrs.v6addrs.src, in efx_filter_rfs()
[all …]
/linux-6.6.21/drivers/net/ethernet/sfc/siena/
Drx_common.c955 struct flow_keys fk; in efx_siena_filter_rfs() local
972 if (!skb_flow_dissect_flow_keys(skb, &fk, 0)) { in efx_siena_filter_rfs()
977 if (fk.basic.n_proto != htons(ETH_P_IP) && fk.basic.n_proto != htons(ETH_P_IPV6)) { in efx_siena_filter_rfs()
981 if (fk.control.flags & FLOW_DIS_IS_FRAGMENT) { in efx_siena_filter_rfs()
994 req->spec.ether_type = fk.basic.n_proto; in efx_siena_filter_rfs()
995 req->spec.ip_proto = fk.basic.ip_proto; in efx_siena_filter_rfs()
997 if (fk.basic.n_proto == htons(ETH_P_IP)) { in efx_siena_filter_rfs()
998 req->spec.rem_host[0] = fk.addrs.v4addrs.src; in efx_siena_filter_rfs()
999 req->spec.loc_host[0] = fk.addrs.v4addrs.dst; in efx_siena_filter_rfs()
1001 memcpy(req->spec.rem_host, &fk.addrs.v6addrs.src, in efx_siena_filter_rfs()
[all …]
/linux-6.6.21/arch/arm64/crypto/
Dsm4-ce.h8 const u32 *fk, const u32 *ck);
Dsm4-ce-glue.c28 const u32 *fk, const u32 *ck);
/linux-6.6.21/kernel/
Dauditfilter.c825 char *fk; in audit_dupe_rule() local
872 fk = kstrdup(old->filterkey, GFP_KERNEL); in audit_dupe_rule()
873 if (unlikely(!fk)) in audit_dupe_rule()
876 new->filterkey = fk; in audit_dupe_rule()
/linux-6.6.21/drivers/net/bonding/
Dbond_main.c4052 static bool bond_flow_ip(struct sk_buff *skb, struct flow_keys *fk, const void *data, in bond_flow_ip() argument
4064 iph_to_flow_copy_v4addrs(fk, iph); in bond_flow_ip()
4074 iph_to_flow_copy_v6addrs(fk, iph6); in bond_flow_ip()
4082 fk->ports.ports = __skb_flow_get_ports(skb, *nhoff, *ip_proto, data, hlen); in bond_flow_ip()
4113 __be16 l2_proto, int nhoff, int hlen, struct flow_keys *fk) in bond_flow_dissect() argument
4121 memset(fk, 0, sizeof(*fk)); in bond_flow_dissect()
4123 fk, data, l2_proto, nhoff, hlen, 0); in bond_flow_dissect()
4128 fk->ports.ports = 0; in bond_flow_dissect()
4129 memset(&fk->icmp, 0, sizeof(fk->icmp)); in bond_flow_dissect()
4130 if (!bond_flow_ip(skb, fk, data, hlen, l2_proto, &nhoff, &ip_proto, l34)) in bond_flow_dissect()
[all …]