aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64
ModeNameSize
-rw-r--r--Kconfig13098logstatsplainblame
-rw-r--r--Kconfig.debug1928logstatsplainblame
-rw-r--r--Makefile3088logstatsplainblame
d---------configs257logstatsplain
-rw-r--r--defconfig29231logstatsplainblame
d---------dig108logstatsplain
d---------hp93logstatsplain
d---------ia32429logstatsplain
-rw-r--r--install.sh946logstatsplainblame
d---------kernel2437logstatsplain
d---------lib893logstatsplain
d---------mm362logstatsplain
-rw-r--r--module.lds355logstatsplainblame
d---------oprofile181logstatsplain
d---------pci69logstatsplain
d---------scripts380logstatsplain
d---------sn133logstatsplain
="hl kwa">return vport; vxlan_port = vxlan_vport(vport); strncpy(vxlan_port->name, parms->name, IFNAMSIZ); vs = vxlan_sock_add(net, htons(dst_port), vxlan_rcv, vport, true); if (IS_ERR(vs)) { ovs_vport_free(vport); return (void *)vs; } vxlan_port->vs = vs; return vport; error: return ERR_PTR(err); } static int vxlan_tnl_send(struct vport *vport, struct sk_buff *skb) { struct net *net = ovs_dp_get_net(vport->dp); struct vxlan_port *vxlan_port = vxlan_vport(vport); __be16 dst_port = inet_sk(vxlan_port->vs->sock->sk)->inet_sport; struct rtable *rt; struct flowi4 fl; __be16 src_port; int port_min; int port_max; __be16 df; int err; if (unlikely(!OVS_CB(skb)->tun_key)) { err = -EINVAL; goto error; } /* Route lookup */ memset(&fl, 0, sizeof(fl)); fl.daddr = OVS_CB(skb)->tun_key->ipv4_dst; fl.saddr = OVS_CB(skb)->tun_key->ipv4_src; fl.flowi4_tos = RT_TOS(OVS_CB(skb)->tun_key->ipv4_tos); fl.flowi4_mark = skb->mark; fl.flowi4_proto = IPPROTO_UDP; rt = ip_route_output_key(net, &fl); if (IS_ERR(rt)) { err = PTR_ERR(rt); goto error; } df = OVS_CB(skb)->tun_key->tun_flags & TUNNEL_DONT_FRAGMENT ? htons(IP_DF) : 0; skb->local_df = 1; inet_get_local_port_range(&port_min, &port_max); src_port = vxlan_src_port(port_min, port_max, skb); err = vxlan_xmit_skb(net, vxlan_port->vs, rt, skb, fl.saddr, OVS_CB(skb)->tun_key->ipv4_dst, OVS_CB(skb)->tun_key->ipv4_tos, OVS_CB(skb)->tun_key->ipv4_ttl, df, src_port, dst_port, htonl(be64_to_cpu(OVS_CB(skb)->tun_key->tun_id) << 8)); if (err < 0) ip_rt_put(rt); error: return err; } static const char *vxlan_get_name(const struct vport *vport) { struct vxlan_port *vxlan_port = vxlan_vport(vport); return vxlan_port->name; } const struct vport_ops ovs_vxlan_vport_ops = { .type = OVS_VPORT_TYPE_VXLAN, .create = vxlan_tnl_create, .destroy = vxlan_tnl_destroy, .get_name = vxlan_get_name, .get_options = vxlan_get_options, .send = vxlan_tnl_send, };