/net/openvswitch/ |
H A D | vport-netdev.h | 25 #include "vport.h" 27 struct vport *ovs_netdev_get_vport(struct net_device *dev); 36 netdev_vport_priv(const struct vport *vport) argument 38 return vport_priv(vport); 41 const char *ovs_netdev_get_name(const struct vport *); 42 const char *ovs_netdev_get_config(const struct vport *);
|
H A D | vport.h | 32 struct vport; 35 /* The following definitions are for users of the vport subsytem: */ 40 struct vport *ovs_vport_add(const struct vport_parms *); 41 void ovs_vport_del(struct vport *); 43 struct vport *ovs_vport_locate(struct net *net, const char *name); 45 void ovs_vport_get_stats(struct vport *, struct ovs_vport_stats *); 47 int ovs_vport_set_options(struct vport *, struct nlattr *options); 48 int ovs_vport_get_options(const struct vport *, struct sk_buff *); 50 int ovs_vport_send(struct vport *, struct sk_buff *); 52 /* The following definitions are for implementers of vport device 75 struct vport { struct 169 vport_priv(const struct vport *vport) argument [all...] |
H A D | vport.c | 33 #include "vport.h" 34 #include "vport-internal_dev.h" 36 /* List of statically compiled vport implementations. Don't forget to also 37 * add yours to the list at the bottom of vport.h. */ 48 * ovs_vport_init - initialize vport subsystem 50 * Called at module load time to initialize the vport subsystem. 63 * ovs_vport_exit - shutdown vport subsystem 65 * Called at module exit time to shutdown the vport subsystem. 85 struct vport *ovs_vport_locate(struct net *net, const char *name) 88 struct vport *vpor local 112 struct vport *vport; local 152 ovs_vport_free(struct vport *vport) argument 168 struct vport *vport; local 204 ovs_vport_set_options(struct vport *vport, struct nlattr *options) argument 219 ovs_vport_del(struct vport *vport) argument 238 ovs_vport_get_stats(struct vport *vport, struct ovs_vport_stats *stats) argument 297 ovs_vport_get_options(const struct vport *vport, struct sk_buff *skb) argument 328 ovs_vport_receive(struct vport *vport, struct sk_buff *skb) argument 350 ovs_vport_send(struct vport *vport, struct sk_buff *skb) argument 376 ovs_vport_record_error(struct vport *vport, enum vport_err_type err_type) argument [all...] |
H A D | vport-internal_dev.h | 23 #include "vport.h" 26 struct vport *ovs_internal_dev_get_vport(struct net_device *); 28 #endif /* vport-internal_dev.h */
|
H A D | vport-netdev.c | 32 #include "vport-internal_dev.h" 33 #include "vport-netdev.h" 36 static void netdev_port_receive(struct vport *vport, struct sk_buff *skb) argument 38 if (unlikely(!vport)) 52 ovs_vport_receive(vport, skb); 63 struct vport *vport; local 68 vport = ovs_netdev_get_vport(skb->dev); 70 netdev_port_receive(vport, sk 77 struct vport *vport; local 134 netdev_destroy(struct vport *vport) argument 147 ovs_netdev_get_name(const struct vport *vport) argument 163 netdev_send(struct vport *vport, struct sk_buff *skb) argument [all...] |
H A D | Makefile | 12 vport.o \ 13 vport-internal_dev.o \ 14 vport-netdev.o \
|
H A D | dp_notify.c | 24 #include "vport-internal_dev.h" 25 #include "vport-netdev.h" 27 static void dp_detach_port_notify(struct vport *vport) argument 32 dp = vport->dp; 33 notify = ovs_vport_cmd_build_info(vport, 0, 0, 35 ovs_dp_detach_port(vport); 58 struct vport *vport; local 61 hlist_for_each_entry_safe(vport, 82 struct vport *vport = NULL; local [all...] |
H A D | vport-internal_dev.c | 31 #include "vport-internal_dev.h" 32 #include "vport-netdev.h" 35 struct vport *vport; member in struct:internal_dev 47 struct vport *vport = ovs_internal_dev_get_vport(netdev); local 50 ovs_vport_get_stats(vport, &vport_stats); 70 ovs_vport_receive(internal_dev_priv(netdev)->vport, skb); 109 struct vport *vport local 147 struct vport *vport; local 196 internal_dev_destroy(struct vport *vport) argument 210 internal_dev_recv(struct vport *vport, struct sk_buff *skb) argument [all...] |
H A D | datapath.h | 30 #include "vport.h" 148 struct vport *ovs_lookup_vport(const struct datapath *dp, u16 port_no); 150 static inline struct vport *ovs_vport_rcu(const struct datapath *dp, int port_no) 156 static inline struct vport *ovs_vport_ovsl_rcu(const struct datapath *dp, int port_no) 162 static inline struct vport *ovs_vport_ovsl(const struct datapath *dp, int port_no) 171 void ovs_dp_process_received_packet(struct vport *, struct sk_buff *); 172 void ovs_dp_detach_port(struct vport *); 177 struct sk_buff *ovs_vport_cmd_build_info(struct vport *, u32 pid, u32 seq,
|
H A D | datapath.c | 58 #include "vport-internal_dev.h" 59 #include "vport-netdev.h" 114 static struct vport *new_vport(const struct vport_parms *); 130 struct vport *vport = ovs_internal_dev_get_vport(dev); local 131 if (vport) 132 dp = vport->dp; 142 struct vport *vport = ovs_vport_ovsl_rcu(dp, OVSP_LOCAL); local 143 return vport 183 struct vport *vport; local 197 struct vport *vport; local 1353 struct vport *vport; local 1369 struct vport *vport; local 1462 struct vport *vport; local 1639 ovs_vport_cmd_fill_info(struct vport *vport, struct sk_buff *skb, u32 portid, u32 seq, u32 flags, u8 cmd) argument 1678 ovs_vport_cmd_build_info(struct vport *vport, u32 portid, u32 seq, u8 cmd) argument 1700 struct vport *vport; local 1734 struct vport *vport; local 1806 struct vport *vport; local 1856 struct vport *vport; local 1891 struct vport *vport; local 1928 struct vport *vport; local [all...] |
H A D | actions.c | 36 #include "vport.h" 353 struct vport *vport; local 358 vport = ovs_vport_rcu(dp, out_port); 359 if (unlikely(!vport)) { 364 ovs_vport_send(vport, skb);
|
/net/netfilter/ipvs/ |
H A D | ip_vs_pe_sip.c | 124 ct->vport == p->vport && 134 IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport),
|
H A D | ip_vs_conn.c | 133 port = p->vport; 255 * p->vaddr, p->vport: pkt dest address (load balancer) 268 if (p->cport == cp->cport && p->vport == cp->vport && 302 IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport), 369 p->vport == cp->vport && p->cport == cp->cport && 385 IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport), 394 * p->vaddr, p->vport: pkt dest address (foreign host) */ 408 if (p->vport [all...] |
H A D | ip_vs_nfct.c | 77 &((C)->vaddr.ip), ntohs((C)->vport), \ 119 new_tuple.dst.u.tcp.port = cp->vport; 172 new_reply.dst.u.tcp.port = cp->vport; 237 from_rs ? &cp->cport : &cp->vport); 266 tuple.dst.u.all = cp->vport;
|
H A D | ip_vs_proto_udp.c | 165 udph->source = cp->vport; 177 cp->dport, cp->vport); 261 cp->vport, cp->dport); 398 hash = udp_app_hashkey(cp->vport); 402 if (inc->port == cp->vport) { 413 ntohs(cp->vport),
|
H A D | ip_vs_proto_sctp.c | 106 sctph->source = cp->vport; 1051 hash = sctp_app_hashkey(cp->vport); 1055 if (inc->port == cp->vport) { 1066 ntohs(cp->vport),
|
H A D | ip_vs_sync.c | 75 __be16 vport; member in struct:ip_vs_sync_conn_v0 105 | vport | dport | 140 __be16 vport; member in struct:ip_vs_sync_v4 162 __be16 vport; member in struct:ip_vs_sync_v6 571 s->vport = cp->vport; 710 s->v4.vport = cp->vport; 782 sc->v6.vport, p); 789 sc->v4.vport, [all...] |
H A D | ip_vs_ftp.c | 251 port = n_cp->vport; 396 htons(ntohs(cp->vport)-1), &p);
|
H A D | ip_vs_proto_tcp.c | 165 tcph->source = cp->vport; 175 cp->dport, cp->vport); 258 cp->vport, cp->dport); 620 hash = tcp_app_hashkey(cp->vport); 624 if (inc->port == cp->vport) { 635 ntohs(cp->vport),
|
H A D | ip_vs_core.c | 201 const union nf_inet_addr *vaddr, __be16 vport, 205 vport, p); 260 * service, and a template like <caddr, 0, vaddr, vport, daddr, dport> 266 __be16 vport = 0; local 270 * <protocol, caddr, 0, vaddr, vport, daddr, dport> 275 vport = dst_port; 291 vaddr, vport, ¶m) < 0) { 487 IP_VS_DBG_ADDR(svc->af, &cp->vaddr), ntohs(cp->vport), 700 ports[1] = cp->vport; 752 ntohs(inout ? cp->vport 198 ip_vs_conn_fill_param_persist(const struct ip_vs_service *svc, struct sk_buff *skb, int protocol, const union nf_inet_addr *caddr, __be16 cport, const union nf_inet_addr *vaddr, __be16 vport, struct ip_vs_conn_param *p) argument [all...] |
H A D | ip_vs_ctl.c | 361 const union nf_inet_addr *vaddr, __be16 vport) 367 hash = ip_vs_svc_hashkey(net, af, protocol, vaddr, vport); 372 && (svc->port == vport) 410 const union nf_inet_addr *vaddr, __be16 vport) 428 svc = __ip_vs_service_find(net, af, protocol, vaddr, vport); 433 && (vport == FTPDATA || ntohs(vport) >= PROT_SOCK)) { 452 IP_VS_DBG_ADDR(af, vaddr), ntohs(vport), 602 __be16 vport, __u16 protocol, __u32 fwmark, 609 svc = ip_vs_service_find(net, af, fwmark, protocol, vaddr, vport); 360 __ip_vs_service_find(struct net *net, int af, __u16 protocol, const union nf_inet_addr *vaddr, __be16 vport) argument 409 ip_vs_service_find(struct net *net, int af, __u32 fwmark, __u16 protocol, const union nf_inet_addr *vaddr, __be16 vport) argument 598 ip_vs_find_dest(struct net *net, int af, const union nf_inet_addr *daddr, __be16 dport, const union nf_inet_addr *vaddr, __be16 vport, __u16 protocol, __u32 fwmark, __u32 flags) argument [all...] |
/net/netfilter/ |
H A D | xt_ipvs.c | 100 if ((cp->vport == data->vport) ^ 108 cp->control->vport == data->vportctl) ^
|