Searched refs:vxlan_port (Results 1 - 15 of 15) sorted by relevance

/linux-4.1.27/net/openvswitch/
H A Dvport-vxlan.c46 * struct vxlan_port - Keeps track of open UDP ports
50 struct vxlan_port { struct
58 static inline struct vxlan_port *vxlan_vport(const struct vport *vport) vxlan_vport()
68 struct vxlan_port *vxlan_port; vxlan_rcv() local
78 vxlan_port = vxlan_vport(vport); vxlan_rcv()
79 if (vxlan_port->exts & VXLAN_F_GBP && md->gbp) vxlan_rcv()
94 struct vxlan_port *vxlan_port = vxlan_vport(vport); vxlan_get_options() local
95 __be16 dst_port = inet_sk(vxlan_port->vs->sock->sk)->inet_sport; vxlan_get_options()
100 if (vxlan_port->exts) { vxlan_get_options()
107 if (vxlan_port->exts & VXLAN_F_GBP && vxlan_get_options()
119 struct vxlan_port *vxlan_port = vxlan_vport(vport); vxlan_tnl_destroy() local
121 vxlan_sock_release(vxlan_port->vs); vxlan_tnl_destroy()
133 struct vxlan_port *vxlan_port; vxlan_configure_exts() local
143 vxlan_port = vxlan_vport(vport); vxlan_configure_exts()
146 vxlan_port->exts |= VXLAN_F_GBP; vxlan_configure_exts()
155 struct vxlan_port *vxlan_port; vxlan_tnl_create() local
175 vport = ovs_vport_alloc(sizeof(struct vxlan_port), vxlan_tnl_create()
180 vxlan_port = vxlan_vport(vport); vxlan_tnl_create()
181 strncpy(vxlan_port->name, parms->name, IFNAMSIZ); vxlan_tnl_create()
193 vxlan_port->exts); vxlan_tnl_create()
198 vxlan_port->vs = vs; vxlan_tnl_create()
224 struct vxlan_port *vxlan_port = vxlan_vport(vport); vxlan_tnl_send() local
225 struct sock *sk = vxlan_port->vs->sock->sk; vxlan_tnl_send()
256 vxflags = vxlan_port->exts | vxlan_tnl_send()
275 struct vxlan_port *vxlan_port = vxlan_vport(vport); vxlan_get_egress_tun_info() local
276 __be16 dst_port = inet_sk(vxlan_port->vs->sock->sk)->inet_sport; vxlan_get_egress_tun_info()
292 struct vxlan_port *vxlan_port = vxlan_vport(vport); vxlan_get_name() local
293 return vxlan_port->name; vxlan_get_name()
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_netdev.c395 * This function frees the entire vxlan_port list
399 struct fm10k_vxlan_port *vxlan_port; fm10k_del_vxlan_port_all() local
402 vxlan_port = list_first_entry_or_null(&interface->vxlan_port, fm10k_del_vxlan_port_all()
404 while (vxlan_port) { fm10k_del_vxlan_port_all()
405 list_del(&vxlan_port->list); fm10k_del_vxlan_port_all()
406 kfree(vxlan_port); fm10k_del_vxlan_port_all()
407 vxlan_port = list_first_entry_or_null(&interface->vxlan_port, fm10k_del_vxlan_port_all()
422 struct fm10k_vxlan_port *vxlan_port; fm10k_restore_vxlan_port() local
428 vxlan_port = list_first_entry_or_null(&interface->vxlan_port, fm10k_restore_vxlan_port()
433 (vxlan_port ? ntohs(vxlan_port->port) : 0) | fm10k_restore_vxlan_port()
452 struct fm10k_vxlan_port *vxlan_port; fm10k_add_vxlan_port() local
459 fm10k_vxlan_port_for_each(vxlan_port, interface) { fm10k_vxlan_port_for_each()
460 if ((vxlan_port->port == port) && fm10k_vxlan_port_for_each()
461 (vxlan_port->sa_family == sa_family)) { fm10k_vxlan_port_for_each()
462 list_del(&vxlan_port->list); fm10k_vxlan_port_for_each()
468 vxlan_port = kmalloc(sizeof(*vxlan_port), GFP_ATOMIC);
469 if (!vxlan_port)
471 vxlan_port->port = port;
472 vxlan_port->sa_family = sa_family;
476 list_add_tail(&vxlan_port->list, &interface->vxlan_port);
495 struct fm10k_vxlan_port *vxlan_port; fm10k_del_vxlan_port() local
501 fm10k_vxlan_port_for_each(vxlan_port, interface) { fm10k_vxlan_port_for_each()
502 if ((vxlan_port->port == port) && fm10k_vxlan_port_for_each()
503 (vxlan_port->sa_family == sa_family)) { fm10k_vxlan_port_for_each()
504 list_del(&vxlan_port->list); fm10k_vxlan_port_for_each()
505 kfree(vxlan_port); fm10k_vxlan_port_for_each()
H A Dfm10k.h231 list_for_each_entry(vp, &(intfc)->vxlan_port, list)
313 struct list_head vxlan_port; member in struct:fm10k_intfc
H A Dfm10k_main.c681 struct fm10k_vxlan_port *vxlan_port; fm10k_port_is_vxlan() local
684 vxlan_port = list_first_entry_or_null(&interface->vxlan_port, fm10k_port_is_vxlan()
687 if (!vxlan_port) fm10k_port_is_vxlan()
689 if (vxlan_port->port != udp_hdr(skb)->dest) fm10k_port_is_vxlan()
H A Dfm10k_pci.c1693 /* initialize vxlan_port list */ fm10k_sw_init()
1694 INIT_LIST_HEAD(&interface->vxlan_port); fm10k_sw_init()
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_83xx_init.c1034 u16 port = adapter->ahw->vxlan_port; qlcnic_set_vxlan_port()
1064 u16 vxlan_port = adapter->ahw->vxlan_port; qlcnic_set_vxlan_parsing() local
1082 state ? "enable" : "disable", vxlan_port); qlcnic_set_vxlan_parsing()
1086 state ? "Enabled" : "Disabled", vxlan_port); qlcnic_set_vxlan_parsing()
1112 adapter->ahw->vxlan_port = 0; qlcnic_83xx_periodic_tasks()
H A Dqlcnic_main.c486 if (!qlcnic_encap_rx_offload(adapter) || ahw->vxlan_port) qlcnic_add_vxlan_port()
489 ahw->vxlan_port = ntohs(port); qlcnic_add_vxlan_port()
499 if (!qlcnic_encap_rx_offload(adapter) || !ahw->vxlan_port || qlcnic_del_vxlan_port()
500 (ahw->vxlan_port != ntohs(port))) qlcnic_del_vxlan_port()
H A Dqlcnic.h541 u16 vxlan_port; member in struct:qlcnic_hardware_context
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
H A Den_netdev.c2318 ret = mlx4_config_vxlan_port(priv->mdev->dev, priv->vxlan_port); mlx4_en_add_vxlan_offloads()
2349 priv->vxlan_port = 0; mlx4_en_del_vxlan_offloads()
2364 current_port = priv->vxlan_port; mlx4_en_add_vxlan_port()
2371 priv->vxlan_port = port; mlx4_en_add_vxlan_port()
2387 current_port = priv->vxlan_port; mlx4_en_del_vxlan_port()
H A Dmlx4_en.h598 __be16 vxlan_port; member in struct:mlx4_en_priv
/linux-4.1.27/drivers/net/ethernet/emulex/benet/
H A Dbe.h566 __be16 vxlan_port; member in struct:be_adapter
H A Dbe_main.c3466 if (adapter->vxlan_port) be_disable_vxlan_offloads()
3470 adapter->vxlan_port = 0; be_disable_vxlan_offloads()
4924 adapter->vxlan_port = port; be_add_vxlan_port()
4947 if (adapter->vxlan_port != port) be_del_vxlan_port()
/linux-4.1.27/drivers/net/
H A Dvxlan.c68 static unsigned short vxlan_port __read_mostly = 8472;
69 module_param_named(udp_port, vxlan_port, ushort, 0444);
2381 vxlan->dst_port = htons(vxlan_port); vxlan_setup()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe.h759 u16 vxlan_port; member in struct:ixgbe_adapter
H A Dixgbe_main.c7880 if (adapter->vxlan_port == new_port) { ixgbe_add_vxlan_port()
7885 if (adapter->vxlan_port) { ixgbe_add_vxlan_port()
7892 adapter->vxlan_port = new_port; ixgbe_add_vxlan_port()
7912 if (adapter->vxlan_port != new_port) { ixgbe_del_vxlan_port()
7918 adapter->vxlan_port = 0; ixgbe_del_vxlan_port()

Completed in 475 milliseconds