/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_arfs.c | 658 const struct flow_keys *fk, in arfs_alloc_rule() argument 676 tuple->etype = fk->basic.n_proto; in arfs_alloc_rule() 677 tuple->ip_proto = fk->basic.ip_proto; in arfs_alloc_rule() 679 tuple->src_ipv4 = fk->addrs.v4addrs.src; in arfs_alloc_rule() 680 tuple->dst_ipv4 = fk->addrs.v4addrs.dst; in arfs_alloc_rule() 682 memcpy(&tuple->src_ipv6, &fk->addrs.v6addrs.src, in arfs_alloc_rule() 684 memcpy(&tuple->dst_ipv6, &fk->addrs.v6addrs.dst, in arfs_alloc_rule() 687 tuple->src_port = fk->ports.src; in arfs_alloc_rule() 688 tuple->dst_port = fk->ports.dst; in arfs_alloc_rule() 699 static bool arfs_cmp(const struct arfs_tuple *tuple, const struct flow_keys *fk) in arfs_cmp() argument [all …]
|
H A D | en_rx.c | 1220 int udp_off = rq->hw_gro_data->fk.control.thoff; in mlx5e_shampo_update_ipv4_udp_hdr() 1239 int udp_off = rq->hw_gro_data->fk.control.thoff; in mlx5e_shampo_update_ipv6_udp_hdr() 1264 last_tcp_hd = last_hd_addr + ETH_HLEN + rq->hw_gro_data->fk.control.thoff; in mlx5e_shampo_update_fin_psh_flags() 1271 int tcp_off = rq->hw_gro_data->fk.control.thoff; in mlx5e_shampo_update_ipv4_tcp_hdr() 1295 int tcp_off = rq->hw_gro_data->fk.control.thoff; in mlx5e_shampo_update_ipv6_tcp_hdr() 1315 bool is_ipv4 = (rq->hw_gro_data->fk.basic.n_proto == htons(ETH_P_IP)); in mlx5e_shampo_update_hdr() 1322 int nhoff = rq->hw_gro_data->fk.control.thoff - sizeof(struct iphdr); in mlx5e_shampo_update_hdr() 1334 int nhoff = rq->hw_gro_data->fk.control.thoff - sizeof(struct ipv6hdr); in mlx5e_shampo_update_hdr() 1614 if (!skb_flow_dissect_flow_keys(skb, &rq->hw_gro_data->fk, 0)) { in mlx5e_shampo_complete_rx_cqe() 2328 rq->hw_gro_data->fk.basic.n_proto == htons(ETH_P_IP)) { in mlx5e_handle_rx_cqe_mpwrq_shampo() [all …]
|
H A D | en.h | 640 struct flow_keys fk; member
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | ptp.h | 73 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/drivers/net/ethernet/intel/ice/ |
H A D | ice_arfs.c | 301 ice_arfs_build_entry(struct ice_vsi *vsi, const struct flow_keys *fk, in ice_arfs_build_entry() argument 318 ip_proto = fk->basic.ip_proto; in ice_arfs_build_entry() 320 if (fk->basic.n_proto == htons(ETH_P_IP)) { in ice_arfs_build_entry() 325 fltr_info->ip.v4.src_ip = fk->addrs.v4addrs.src; in ice_arfs_build_entry() 326 fltr_info->ip.v4.dst_ip = fk->addrs.v4addrs.dst; in ice_arfs_build_entry() 327 fltr_info->ip.v4.src_port = fk->ports.src; in ice_arfs_build_entry() 328 fltr_info->ip.v4.dst_port = fk->ports.dst; in ice_arfs_build_entry() 334 memcpy(&fltr_info->ip.v6.src_ip, &fk->addrs.v6addrs.src, in ice_arfs_build_entry() 336 memcpy(&fltr_info->ip.v6.dst_ip, &fk->addrs.v6addrs.dst, in ice_arfs_build_entry() 338 fltr_info->ip.v6.src_port = fk->ports.src; in ice_arfs_build_entry() [all …]
|
/linux/crypto/ |
H A D | sm4.c | 14 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/drivers/net/ethernet/sfc/falcon/ |
H A D | rx.c | 848 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/drivers/net/ethernet/sfc/siena/ |
H A D | rx_common.c | 900 struct flow_keys fk; in efx_siena_filter_rfs() local 917 if (!skb_flow_dissect_flow_keys(skb, &fk, 0)) { in efx_siena_filter_rfs() 922 if (fk.basic.n_proto != htons(ETH_P_IP) && fk.basic.n_proto != htons(ETH_P_IPV6)) { in efx_siena_filter_rfs() 926 if (fk.control.flags & FLOW_DIS_IS_FRAGMENT) { in efx_siena_filter_rfs() 939 req->spec.ether_type = fk.basic.n_proto; in efx_siena_filter_rfs() 940 req->spec.ip_proto = fk.basic.ip_proto; in efx_siena_filter_rfs() 942 if (fk.basic.n_proto == htons(ETH_P_IP)) { in efx_siena_filter_rfs() 943 req->spec.rem_host[0] = fk.addrs.v4addrs.src; in efx_siena_filter_rfs() 944 req->spec.loc_host[0] = fk.addrs.v4addrs.dst; in efx_siena_filter_rfs() 946 memcpy(req->spec.rem_host, &fk.addrs.v6addrs.src, in efx_siena_filter_rfs() [all …]
|
/linux/arch/arm64/crypto/ |
H A D | sm4-ce.h | 8 const u32 *fk, const u32 *ck);
|
H A D | sm4-ce-glue.c | 28 const u32 *fk, const u32 *ck);
|
/linux/kernel/ |
H A D | auditfilter.c | 826 char *fk; in audit_dupe_rule() local 873 fk = kstrdup(old->filterkey, GFP_KERNEL); in audit_dupe_rule() 874 if (unlikely(!fk)) in audit_dupe_rule() 877 new->filterkey = fk; in audit_dupe_rule()
|
/linux/drivers/net/bonding/ |
H A D | bond_main.c | 4190 static bool bond_flow_ip(struct sk_buff *skb, struct flow_keys *fk, const void *data, in bond_flow_ip() argument 4202 iph_to_flow_copy_v4addrs(fk, iph); in bond_flow_ip() 4212 iph_to_flow_copy_v6addrs(fk, iph6); in bond_flow_ip() 4220 fk->ports.ports = __skb_flow_get_ports(skb, *nhoff, *ip_proto, data, hlen); in bond_flow_ip() 4251 __be16 l2_proto, int nhoff, int hlen, struct flow_keys *fk) in bond_flow_dissect() argument 4259 memset(fk, 0, sizeof(*fk)); in bond_flow_dissect() 4261 fk, data, l2_proto, nhoff, hlen, 0); in bond_flow_dissect() 4266 fk->ports.ports = 0; in bond_flow_dissect() 4267 memset(&fk->icmp, 0, sizeof(fk->icmp)); in bond_flow_dissect() 4268 if (!bond_flow_ip(skb, fk, data, hlen, l2_proto, &nhoff, &ip_proto, l34)) in bond_flow_dissect() [all …]
|