/openbmc/linux/drivers/vdpa/solidrun/ |
H A D | snet_main.c | 40 struct snet *snet = data; in snet_cfg_irq_hndlr() local 89 struct snet *snet = vdpa_to_snet(vdev); in snet_set_vq_address() local 100 struct snet *snet = vdpa_to_snet(vdev); in snet_set_vq_num() local 107 struct snet *snet = vdpa_to_snet(vdev); in snet_kick_vq() local 117 struct snet *snet = vdpa_to_snet(vdev); in snet_kick_vq_with_data() local 129 struct snet *snet = vdpa_to_snet(vdev); in snet_set_vq_cb() local 137 struct snet *snet = vdpa_to_snet(vdev); in snet_set_vq_ready() local 351 snet_write32(snet, off, snet->sid); in snet_write_conf() 407 snet->cfg_irq_name, snet); in snet_request_irqs() 841 snet->vqs[i]->kick_ptr = snet->bar + snet->psnet->cfg.kick_off + in snet_build_vqs() [all …]
|
H A D | snet_ctrl.c | 62 static struct snet_ctrl_regs __iomem *snet_get_ctrl(struct snet *snet) in snet_get_ctrl() argument 64 return snet->bar + snet->psnet->cfg.ctrl_off; in snet_get_ctrl() 144 if (!SNET_CFG_VER(snet, 2)) in snet_ctrl_read_from_dpu() 218 static int snet_send_ctrl_msg_old(struct snet *snet, u32 opcode) in snet_send_ctrl_msg_old() argument 252 static int snet_send_ctrl_msg(struct snet *snet, u16 opcode, u16 vq_idx) in snet_send_ctrl_msg() argument 260 if (!SNET_CFG_VER(snet, 2)) in snet_send_ctrl_msg() 310 void snet_ctrl_clear(struct snet *snet) in snet_ctrl_clear() argument 317 int snet_destroy_dev(struct snet *snet) in snet_destroy_dev() argument 322 int snet_read_vq_state(struct snet *snet, u16 idx, struct vdpa_vq_state *state) in snet_read_vq_state() argument 328 int snet_suspend_dev(struct snet *snet) in snet_suspend_dev() argument [all …]
|
H A D | snet_vdpa.h | 24 #define SNET_CFG_VER(snet, ver) ((snet)->psnet->negotiated_cfg_ver >= (ver)) argument 54 struct snet { struct 173 static inline u32 snet_read32(struct snet *snet, u32 off) in snet_read32() argument 178 static inline void snet_write32(struct snet *snet, u32 off, u32 val) in snet_write32() argument 180 iowrite32(val, snet->bar + off); in snet_write32() 192 static inline void snet_write64(struct snet *snet, u32 off, u64 val) in snet_write64() argument 203 void snet_ctrl_clear(struct snet *snet); 204 int snet_destroy_dev(struct snet *snet); 205 int snet_read_vq_state(struct snet *snet, u16 idx, struct vdpa_vq_state *state); 206 int snet_suspend_dev(struct snet *snet); [all …]
|
/openbmc/linux/net/netfilter/ |
H A D | nft_synproxy.c | 25 struct synproxy_net *snet, in nft_synproxy_tcp_options() argument 29 this_cpu_inc(snet->stats->syn_received); in nft_synproxy_tcp_options() 177 err = nf_synproxy_ipv4_init(snet, ctx->net); in nft_synproxy_do_init() 183 err = nf_synproxy_ipv6_init(snet, ctx->net); in nft_synproxy_do_init() 189 err = nf_synproxy_ipv4_init(snet, ctx->net); in nft_synproxy_do_init() 192 err = nf_synproxy_ipv6_init(snet, ctx->net); in nft_synproxy_do_init() 194 nf_synproxy_ipv4_fini(snet, ctx->net); in nft_synproxy_do_init() 213 nf_synproxy_ipv4_fini(snet, ctx->net); in nft_synproxy_do_destroy() 217 nf_synproxy_ipv6_fini(snet, ctx->net); in nft_synproxy_do_destroy() 221 nf_synproxy_ipv4_fini(snet, ctx->net); in nft_synproxy_do_destroy() [all …]
|
H A D | nf_synproxy_core.c | 346 snet->tmpl = ct; in synproxy_net_init() 349 if (snet->stats == NULL) in synproxy_net_init() 359 free_percpu(snet->stats); in synproxy_net_init() 370 nf_ct_put(snet->tmpl); in synproxy_net_exit() 372 free_percpu(snet->stats); in synproxy_net_exit() 778 snet->hook_ref4++; in nf_synproxy_ipv4_init() 785 snet->hook_ref4--; in nf_synproxy_ipv4_fini() 786 if (snet->hook_ref4 == 0) in nf_synproxy_ipv4_fini() 1202 snet->hook_ref6++; in nf_synproxy_ipv6_init() 1210 snet->hook_ref6--; in nf_synproxy_ipv6_fini() [all …]
|
/openbmc/linux/include/net/netfilter/ |
H A D | nf_synproxy.h | 65 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; } in nf_synproxy_ipv6_init() argument 86 nf_synproxy_ipv6_fini(struct synproxy_net *snet, struct net *net) {}; in nf_synproxy_ipv6_fini() argument
|
/openbmc/linux/net/ipv4/netfilter/ |
H A D | ipt_SYNPROXY.c | 17 struct synproxy_net *snet = synproxy_pernet(net); in synproxy_tg4() local 33 this_cpu_inc(snet->stats->syn_received); in synproxy_tg4() 66 struct synproxy_net *snet = synproxy_pernet(par->net); in synproxy_tg4_check() local 78 err = nf_synproxy_ipv4_init(snet, par->net); in synproxy_tg4_check() 89 struct synproxy_net *snet = synproxy_pernet(par->net); in synproxy_tg4_destroy() local 91 nf_synproxy_ipv4_fini(snet, par->net); in synproxy_tg4_destroy()
|
/openbmc/linux/net/ipv6/netfilter/ |
H A D | ip6t_SYNPROXY.c | 17 struct synproxy_net *snet = synproxy_pernet(net); in synproxy_tg6() local 33 this_cpu_inc(snet->stats->syn_received); in synproxy_tg6() 68 struct synproxy_net *snet = synproxy_pernet(par->net); in synproxy_tg6_check() local 81 err = nf_synproxy_ipv6_init(snet, par->net); in synproxy_tg6_check() 92 struct synproxy_net *snet = synproxy_pernet(par->net); in synproxy_tg6_destroy() local 94 nf_synproxy_ipv6_fini(snet, par->net); in synproxy_tg6_destroy()
|
/openbmc/linux/net/netfilter/ipvs/ |
H A D | ip_vs_core.c | 284 snet.ip = src_addr->ip & svc->netmask; in ip_vs_sched_persist() 290 IP_VS_DBG_ADDR(svc->af, &snet)); in ip_vs_sched_persist() 857 union nf_inet_addr *snet, in handle_response_icmp() argument 872 IP_VS_DBG_ADDR(af, snet)); in handle_response_icmp() 924 union nf_inet_addr snet; in ip_vs_out_icmp() local 984 snet.ip = iph->saddr; in ip_vs_out_icmp() 998 union nf_inet_addr snet; in ip_vs_out_icmp_v6() local 1041 snet.in6 = ciph.saddr.in6; in ip_vs_out_icmp_v6() 1139 union nf_inet_addr snet; in ip_vs_new_conn_out() local 1163 snet.ip = caddr->ip & svc->netmask; in ip_vs_new_conn_out() [all …]
|