Searched refs:snet (Results 1 - 9 of 9) sorted by relevance

/linux-master/drivers/vdpa/solidrun/
H A Dsnet_main.c33 static struct snet *vdpa_to_snet(struct vdpa_device *vdpa)
35 return container_of(vdpa, struct snet, vdpa);
40 struct snet *snet = data; local
42 if (likely(snet->cb.callback))
43 return snet->cb.callback(snet->cb.private);
58 static void snet_free_irqs(struct snet *snet) argument
60 struct psnet *psnet = snet
89 struct snet *snet = vdpa_to_snet(vdev); local
100 struct snet *snet = vdpa_to_snet(vdev); local
107 struct snet *snet = vdpa_to_snet(vdev); local
117 struct snet *snet = vdpa_to_snet(vdev); local
129 struct snet *snet = vdpa_to_snet(vdev); local
137 struct snet *snet = vdpa_to_snet(vdev); local
144 struct snet *snet = vdpa_to_snet(vdev); local
149 snet_vq_state_is_initial(struct snet *snet, const struct vdpa_vq_state *state) argument
169 struct snet *snet = vdpa_to_snet(vdev); local
188 struct snet *snet = vdpa_to_snet(vdev); local
195 struct snet *snet = vdpa_to_snet(vdev); local
205 snet_reset_dev(struct snet *snet) argument
250 struct snet *snet = vdpa_to_snet(vdev); local
257 struct snet *snet = vdpa_to_snet(vdev); local
264 struct snet *snet = vdpa_to_snet(vdev); local
271 struct snet *snet = vdpa_to_snet(vdev); local
279 struct snet *snet = vdpa_to_snet(vdev); local
286 struct snet *snet = vdpa_to_snet(vdev); local
293 struct snet *snet = vdpa_to_snet(vdev); local
301 struct snet *snet = vdpa_to_snet(vdev); local
313 struct snet *snet = vdpa_to_snet(vdev); local
318 snet_write_conf(struct snet *snet) argument
400 snet_request_irqs(struct pci_dev *pdev, struct snet *snet) argument
430 struct snet *snet = vdpa_to_snet(vdev); local
467 struct snet *snet = vdpa_to_snet(vdev); local
484 struct snet *snet = vdpa_to_snet(vdev); local
500 struct snet *snet = vdpa_to_snet(vdev); local
514 struct snet *snet = vdpa_to_snet(vdev); local
591 snet_open_vf_bar(struct pci_dev *pdev, struct snet *snet) argument
799 snet_free_vqs(struct snet *snet) argument
815 snet_build_vqs(struct snet *snet) argument
854 snet_reserve_irq_idx(struct pci_dev *pdev, struct snet *snet) argument
965 struct snet *snet; local
1095 struct snet *snet = pci_get_drvdata(pdev); local
[all...]
H A Dsnet_ctrl.c62 static struct snet_ctrl_regs __iomem *snet_get_ctrl(struct snet *snet) argument
64 return snet->bar + snet->psnet->cfg.ctrl_off;
132 static int snet_ctrl_read_from_dpu(struct snet *snet, u16 opcode, u16 vq_idx, void *buffer, argument
135 struct pci_dev *pdev = snet->pdev;
136 struct snet_ctrl_regs __iomem *regs = snet_get_ctrl(snet);
144 if (!SNET_CFG_VER(snet, 2))
150 mutex_lock(&snet
218 snet_send_ctrl_msg_old(struct snet *snet, u32 opcode) argument
252 snet_send_ctrl_msg(struct snet *snet, u16 opcode, u16 vq_idx) argument
310 snet_ctrl_clear(struct snet *snet) argument
317 snet_destroy_dev(struct snet *snet) argument
322 snet_read_vq_state(struct snet *snet, u16 idx, struct vdpa_vq_state *state) argument
328 snet_suspend_dev(struct snet *snet) argument
333 snet_resume_dev(struct snet *snet) argument
[all...]
H A Dsnet_vdpa.h24 #define SNET_CFG_VER(snet, ver) ((snet)->psnet->negotiated_cfg_ver >= (ver))
54 struct snet { struct
71 /* boolean indicating if snet config was passed to the device */
83 /* Pointer to snet pdev parent device */
85 /* Pointer to snet config device */
135 /* Number of snet devices */
173 static inline u32 snet_read32(struct snet *snet, u32 off) argument
175 return ioread32(snet
178 snet_write32(struct snet *snet, u32 off, u32 val) argument
192 snet_write64(struct snet *snet, u32 off, u64 val) argument
[all...]
/linux-master/include/net/netfilter/
H A Dnf_synproxy.h65 int nf_synproxy_ipv4_init(struct synproxy_net *snet, struct net *net);
66 void nf_synproxy_ipv4_fini(struct synproxy_net *snet, struct net *net);
80 int nf_synproxy_ipv6_init(struct synproxy_net *snet, struct net *net);
81 void nf_synproxy_ipv6_fini(struct synproxy_net *snet, struct net *net);
84 nf_synproxy_ipv6_init(struct synproxy_net *snet, struct net *net) { return 0; } argument
86 nf_synproxy_ipv6_fini(struct synproxy_net *snet, struct net *net) {}; argument
/linux-master/net/netfilter/
H A Dnft_synproxy.c25 struct synproxy_net *snet,
29 this_cpu_inc(snet->stats->syn_received);
53 struct synproxy_net *snet = synproxy_pernet(net); local
58 nft_synproxy_tcp_options(opts, tcp, snet, &info, priv);
84 struct synproxy_net *snet = synproxy_pernet(net); local
89 nft_synproxy_tcp_options(opts, tcp, snet, &info, priv);
156 struct synproxy_net *snet = synproxy_pernet(ctx->net); local
177 err = nf_synproxy_ipv4_init(snet, ctx->net);
183 err = nf_synproxy_ipv6_init(snet, ctx->net);
189 err = nf_synproxy_ipv4_init(snet, ct
23 nft_synproxy_tcp_options(struct synproxy_options *opts, const struct tcphdr *tcp, struct synproxy_net *snet, struct nf_synproxy_info *info, const struct nft_synproxy *priv) argument
209 struct synproxy_net *snet = synproxy_pernet(ctx->net); local
[all...]
H A Dnf_synproxy_core.c242 struct synproxy_net *snet = synproxy_pernet(seq_file_net(seq)); local
252 return per_cpu_ptr(snet->stats, cpu);
260 struct synproxy_net *snet = synproxy_pernet(seq_file_net(seq)); local
267 return per_cpu_ptr(snet->stats, cpu);
332 struct synproxy_net *snet = synproxy_pernet(net); local
346 snet->tmpl = ct;
348 snet->stats = alloc_percpu(struct synproxy_stats);
349 if (snet->stats == NULL)
359 free_percpu(snet->stats);
368 struct synproxy_net *snet local
494 struct synproxy_net *snet = synproxy_pernet(net); local
617 struct synproxy_net *snet = synproxy_pernet(net); local
643 struct synproxy_net *snet = synproxy_pernet(net); local
767 nf_synproxy_ipv4_init(struct synproxy_net *snet, struct net *net) argument
783 nf_synproxy_ipv4_fini(struct synproxy_net *snet, struct net *net) argument
908 struct synproxy_net *snet = synproxy_pernet(net); local
1034 struct synproxy_net *snet = synproxy_pernet(net); local
1060 struct synproxy_net *snet = synproxy_pernet(net); local
1191 nf_synproxy_ipv6_init(struct synproxy_net *snet, struct net *net) argument
1208 nf_synproxy_ipv6_fini(struct synproxy_net *snet, struct net *net) argument
[all...]
/linux-master/net/ipv6/netfilter/
H A Dip6t_SYNPROXY.c17 struct synproxy_net *snet = synproxy_pernet(net); local
33 this_cpu_inc(snet->stats->syn_received);
68 struct synproxy_net *snet = synproxy_pernet(par->net); local
81 err = nf_synproxy_ipv6_init(snet, par->net);
92 struct synproxy_net *snet = synproxy_pernet(par->net); local
94 nf_synproxy_ipv6_fini(snet, par->net);
/linux-master/net/ipv4/netfilter/
H A Dipt_SYNPROXY.c17 struct synproxy_net *snet = synproxy_pernet(net); local
33 this_cpu_inc(snet->stats->syn_received);
66 struct synproxy_net *snet = synproxy_pernet(par->net); local
78 err = nf_synproxy_ipv4_init(snet, par->net);
89 struct synproxy_net *snet = synproxy_pernet(par->net); local
91 nf_synproxy_ipv4_fini(snet, par->net);
/linux-master/net/netfilter/ipvs/
H A Dip_vs_core.c264 union nf_inet_addr snet; /* source network of the client, local
280 ipv6_addr_prefix(&snet.in6, &src_addr->in6,
284 snet.ip = src_addr->ip & svc->netmask;
290 IP_VS_DBG_ADDR(svc->af, &snet));
332 if (ip_vs_conn_fill_param_persist(svc, skb, protocol, &snet, 0,
857 union nf_inet_addr *snet,
872 IP_VS_DBG_ADDR(af, snet));
924 union nf_inet_addr snet; local
984 snet.ip = iph->saddr;
985 return handle_response_icmp(AF_INET, skb, &snet, ci
856 handle_response_icmp(int af, struct sk_buff *skb, union nf_inet_addr *snet, __u8 protocol, struct ip_vs_conn *cp, struct ip_vs_protocol *pp, unsigned int offset, unsigned int ihl, unsigned int hooknum) argument
998 union nf_inet_addr snet; local
1139 union nf_inet_addr snet; local
[all...]

Completed in 141 milliseconds