Lines Matching refs:payload
210 struct nfp_tun_active_tuns *payload; in nfp_tunnel_keep_alive() local
217 payload = nfp_flower_cmsg_get_data(skb); in nfp_tunnel_keep_alive()
218 count = be32_to_cpu(payload->count); in nfp_tunnel_keep_alive()
225 if (pay_len != struct_size(payload, tun_info, count)) { in nfp_tunnel_keep_alive()
232 ipv4_addr = payload->tun_info[i].ipv4; in nfp_tunnel_keep_alive()
233 port = be32_to_cpu(payload->tun_info[i].egress_port); in nfp_tunnel_keep_alive()
252 struct nfp_tun_active_tuns_v6 *payload; in nfp_tunnel_keep_alive_v6() local
259 payload = nfp_flower_cmsg_get_data(skb); in nfp_tunnel_keep_alive_v6()
260 count = be32_to_cpu(payload->count); in nfp_tunnel_keep_alive_v6()
267 if (pay_len != struct_size(payload, tun_info, count)) { in nfp_tunnel_keep_alive_v6()
274 ipv6_add = &payload->tun_info[i].ipv6; in nfp_tunnel_keep_alive_v6()
275 port = be32_to_cpu(payload->tun_info[i].egress_port); in nfp_tunnel_keep_alive_v6()
340 &((struct nfp_tun_neigh_v6 *)neigh->payload)->common : in nfp_tun_mutual_link()
341 &((struct nfp_tun_neigh_v4 *)neigh->payload)->common; in nfp_tun_mutual_link()
343 &((struct nfp_tun_neigh_v6 *)neigh->payload)->ext : in nfp_tun_mutual_link()
344 &((struct nfp_tun_neigh_v4 *)neigh->payload)->ext; in nfp_tun_mutual_link()
392 nn_entry->payload, in nfp_tun_link_and_update_nn_entries()
414 &((struct nfp_tun_neigh_v6 *)neigh->payload)->ext : in nfp_tun_cleanup_nn_entries()
415 &((struct nfp_tun_neigh_v4 *)neigh->payload)->ext; in nfp_tun_cleanup_nn_entries()
425 nfp_flower_xmit_tun_conf(app, type, neigh_size, neigh->payload, in nfp_tun_cleanup_nn_entries()
448 &((struct nfp_tun_neigh_v6 *)neigh->payload)->ext : in nfp_tun_unlink_and_update_nn_entries()
449 &((struct nfp_tun_neigh_v4 *)neigh->payload)->ext; in nfp_tun_unlink_and_update_nn_entries()
460 nfp_flower_xmit_tun_conf(app, type, neigh_size, neigh->payload, in nfp_tun_unlink_and_update_nn_entries()
502 nn_entry->payload = (char *)&nn_entry[1]; in nfp_tun_write_neigh()
508 struct nfp_tun_neigh_v6 *payload; in nfp_tun_write_neigh() local
510 payload = (struct nfp_tun_neigh_v6 *)nn_entry->payload; in nfp_tun_write_neigh()
511 payload->src_ipv6 = flowi6->saddr; in nfp_tun_write_neigh()
512 payload->dst_ipv6 = flowi6->daddr; in nfp_tun_write_neigh()
513 common = &payload->common; in nfp_tun_write_neigh()
514 ext = &payload->ext; in nfp_tun_write_neigh()
515 lag = &payload->lag; in nfp_tun_write_neigh()
519 struct nfp_tun_neigh_v4 *payload; in nfp_tun_write_neigh() local
521 payload = (struct nfp_tun_neigh_v4 *)nn_entry->payload; in nfp_tun_write_neigh()
522 payload->src_ipv4 = flowi4->saddr; in nfp_tun_write_neigh()
523 payload->dst_ipv4 = flowi4->daddr; in nfp_tun_write_neigh()
524 common = &payload->common; in nfp_tun_write_neigh()
525 ext = &payload->ext; in nfp_tun_write_neigh()
526 lag = &payload->lag; in nfp_tun_write_neigh()
546 nn_entry->payload, in nfp_tun_write_neigh()
551 struct nfp_tun_neigh_v6 *payload; in nfp_tun_write_neigh() local
553 payload = (struct nfp_tun_neigh_v6 *)nn_entry->payload; in nfp_tun_write_neigh()
554 memset(payload, 0, sizeof(struct nfp_tun_neigh_v6)); in nfp_tun_write_neigh()
555 payload->dst_ipv6 = flowi6->daddr; in nfp_tun_write_neigh()
559 struct nfp_tun_neigh_v4 *payload; in nfp_tun_write_neigh() local
561 payload = (struct nfp_tun_neigh_v4 *)nn_entry->payload; in nfp_tun_write_neigh()
562 memset(payload, 0, sizeof(struct nfp_tun_neigh_v4)); in nfp_tun_write_neigh()
563 payload->dst_ipv4 = flowi4->daddr; in nfp_tun_write_neigh()
573 nn_entry->payload, in nfp_tun_write_neigh()
585 struct nfp_tun_neigh_v6 *payload; in nfp_tun_write_neigh() local
587 payload = (struct nfp_tun_neigh_v6 *)nn_entry->payload; in nfp_tun_write_neigh()
588 common = &payload->common; in nfp_tun_write_neigh()
591 struct nfp_tun_neigh_v4 *payload; in nfp_tun_write_neigh() local
593 payload = (struct nfp_tun_neigh_v4 *)nn_entry->payload; in nfp_tun_write_neigh()
594 common = &payload->common; in nfp_tun_write_neigh()
608 nn_entry->payload, in nfp_tun_write_neigh()
752 struct nfp_tun_req_route_ipv4 *payload; in nfp_tunnel_request_route_v4() local
759 payload = nfp_flower_cmsg_get_data(skb); in nfp_tunnel_request_route_v4()
762 netdev = nfp_app_dev_get(app, be32_to_cpu(payload->ingress_port), NULL); in nfp_tunnel_request_route_v4()
767 flow.daddr = payload->ipv4_addr; in nfp_tunnel_request_route_v4()
800 struct nfp_tun_req_route_ipv6 *payload; in nfp_tunnel_request_route_v6() local
806 payload = nfp_flower_cmsg_get_data(skb); in nfp_tunnel_request_route_v6()
809 netdev = nfp_app_dev_get(app, be32_to_cpu(payload->ingress_port), NULL); in nfp_tunnel_request_route_v6()
814 flow.daddr = payload->ipv6_addr; in nfp_tunnel_request_route_v6()
847 struct nfp_tun_ipv4_addr payload; in nfp_tun_write_ipv4_list() local
851 memset(&payload, 0, sizeof(struct nfp_tun_ipv4_addr)); in nfp_tun_write_ipv4_list()
861 payload.ipv4_addr[count++] = entry->ipv4_addr; in nfp_tun_write_ipv4_list()
863 payload.count = cpu_to_be32(count); in nfp_tun_write_ipv4_list()
868 &payload, GFP_KERNEL); in nfp_tun_write_ipv4_list()
928 struct nfp_tun_ipv6_addr payload; in nfp_tun_write_ipv6_list() local
931 memset(&payload, 0, sizeof(struct nfp_tun_ipv6_addr)); in nfp_tun_write_ipv6_list()
938 payload.ipv6_addr[count++] = entry->ipv6_addr; in nfp_tun_write_ipv6_list()
941 payload.count = cpu_to_be32(count); in nfp_tun_write_ipv6_list()
945 &payload, GFP_KERNEL); in nfp_tun_write_ipv6_list()
999 struct nfp_tun_mac_addr_offload payload; in __nfp_tunnel_offload_mac() local
1001 memset(&payload, 0, sizeof(payload)); in __nfp_tunnel_offload_mac()
1004 payload.flags = cpu_to_be16(NFP_TUN_MAC_OFFLOAD_DEL_FLAG); in __nfp_tunnel_offload_mac()
1007 payload.count = cpu_to_be16(1); in __nfp_tunnel_offload_mac()
1008 payload.index = cpu_to_be16(idx); in __nfp_tunnel_offload_mac()
1009 ether_addr_copy(payload.addr, mac); in __nfp_tunnel_offload_mac()
1013 &payload, GFP_KERNEL); in __nfp_tunnel_offload_mac()
1434 struct nfp_tun_pre_tun_rule payload; in nfp_flower_xmit_pre_tun_flow() local
1441 memset(&payload, 0, sizeof(struct nfp_tun_pre_tun_rule)); in nfp_flower_xmit_pre_tun_flow()
1444 payload.vlan_tci = flow->pre_tun_rule.vlan_tci; in nfp_flower_xmit_pre_tun_flow()
1445 payload.host_ctx_id = flow->meta.host_ctx_id; in nfp_flower_xmit_pre_tun_flow()
1465 payload.port_idx = cpu_to_be16(mac_entry->index); in nfp_flower_xmit_pre_tun_flow()
1468 flow->pre_tun_rule.vlan_tci = payload.vlan_tci; in nfp_flower_xmit_pre_tun_flow()
1469 flow->pre_tun_rule.port_idx = payload.port_idx; in nfp_flower_xmit_pre_tun_flow()
1473 (unsigned char *)&payload, GFP_KERNEL); in nfp_flower_xmit_pre_tun_flow()
1486 struct nfp_tun_pre_tun_rule payload; in nfp_flower_xmit_pre_tun_del_flow() local
1490 memset(&payload, 0, sizeof(struct nfp_tun_pre_tun_rule)); in nfp_flower_xmit_pre_tun_del_flow()
1493 payload.flags = cpu_to_be32(tmp_flags); in nfp_flower_xmit_pre_tun_del_flow()
1494 payload.vlan_tci = flow->pre_tun_rule.vlan_tci; in nfp_flower_xmit_pre_tun_del_flow()
1495 payload.port_idx = flow->pre_tun_rule.port_idx; in nfp_flower_xmit_pre_tun_del_flow()
1499 (unsigned char *)&payload, GFP_KERNEL); in nfp_flower_xmit_pre_tun_del_flow()