Lines Matching defs:vxlan_softc

80 struct vxlan_softc;
81 LIST_HEAD(vxlan_softc_head, vxlan_softc);
161 struct vxlan_softc {
207 LIST_ENTRY(vxlan_softc) vxl_entry;
208 LIST_ENTRY(vxlan_softc) vxl_ifdetach_list;
241 static void vxlan_ftable_init(struct vxlan_softc *);
242 static void vxlan_ftable_fini(struct vxlan_softc *);
243 static void vxlan_ftable_flush(struct vxlan_softc *, int);
244 static void vxlan_ftable_expire(struct vxlan_softc *);
245 static int vxlan_ftable_update_locked(struct vxlan_softc *,
248 static int vxlan_ftable_learn(struct vxlan_softc *,
255 static void vxlan_ftable_entry_init(struct vxlan_softc *,
258 static void vxlan_ftable_entry_destroy(struct vxlan_softc *,
260 static int vxlan_ftable_entry_insert(struct vxlan_softc *,
263 vxlan_ftable_entry_lookup(struct vxlan_softc *,
300 static struct vxlan_softc *
303 static struct vxlan_softc *
306 struct vxlan_softc *);
308 struct vxlan_softc *);
311 vxlan_multicast_if_ref(struct vxlan_softc *, int);
312 static void vxlan_free_multicast(struct vxlan_softc *);
313 static int vxlan_setup_multicast_interface(struct vxlan_softc *);
315 static int vxlan_setup_multicast(struct vxlan_softc *);
316 static int vxlan_setup_socket(struct vxlan_softc *);
318 static void vxlan_setup_zero_checksum_port(struct vxlan_softc *);
320 static void vxlan_setup_interface_hdrlen(struct vxlan_softc *);
321 static int vxlan_valid_init_config(struct vxlan_softc *);
322 static void vxlan_init_wait(struct vxlan_softc *);
323 static void vxlan_init_complete(struct vxlan_softc *);
325 static void vxlan_release(struct vxlan_softc *);
326 static void vxlan_teardown_wait(struct vxlan_softc *);
327 static void vxlan_teardown_complete(struct vxlan_softc *);
328 static void vxlan_teardown_locked(struct vxlan_softc *);
329 static void vxlan_teardown(struct vxlan_softc *);
330 static void vxlan_ifdetach(struct vxlan_softc *, struct ifnet *,
334 static int vxlan_ctrl_get_config(struct vxlan_softc *, void *);
335 static int vxlan_ctrl_set_vni(struct vxlan_softc *, void *);
336 static int vxlan_ctrl_set_local_addr(struct vxlan_softc *, void *);
337 static int vxlan_ctrl_set_remote_addr(struct vxlan_softc *, void *);
338 static int vxlan_ctrl_set_local_port(struct vxlan_softc *, void *);
339 static int vxlan_ctrl_set_remote_port(struct vxlan_softc *, void *);
340 static int vxlan_ctrl_set_port_range(struct vxlan_softc *, void *);
341 static int vxlan_ctrl_set_ftable_timeout(struct vxlan_softc *, void *);
342 static int vxlan_ctrl_set_ftable_max(struct vxlan_softc *, void *);
343 static int vxlan_ctrl_set_multicast_if(struct vxlan_softc * , void *);
344 static int vxlan_ctrl_set_ttl(struct vxlan_softc *, void *);
345 static int vxlan_ctrl_set_learn(struct vxlan_softc *, void *);
346 static int vxlan_ctrl_ftable_entry_add(struct vxlan_softc *, void *);
347 static int vxlan_ctrl_ftable_entry_rem(struct vxlan_softc *, void *);
348 static int vxlan_ctrl_flush(struct vxlan_softc *, void *);
349 static int vxlan_ioctl_drvspec(struct vxlan_softc *,
351 static int vxlan_ioctl_ifflags(struct vxlan_softc *);
355 static uint16_t vxlan_pick_source_port(struct vxlan_softc *, struct mbuf *);
356 static void vxlan_encap_header(struct vxlan_softc *, struct mbuf *,
359 static int vxlan_encap4(struct vxlan_softc *,
361 static int vxlan_encap6(struct vxlan_softc *,
370 static void vxlan_stats_alloc(struct vxlan_softc *);
371 static void vxlan_stats_free(struct vxlan_softc *);
372 static void vxlan_set_default_config(struct vxlan_softc *);
373 static int vxlan_set_user_config(struct vxlan_softc *,
375 static int vxlan_set_reqcap(struct vxlan_softc *, struct ifnet *, int);
376 static void vxlan_set_hwcaps(struct vxlan_softc *);
381 static uint32_t vxlan_mac_hash(struct vxlan_softc *, const uint8_t *);
398 static int vxlan_can_change_config(struct vxlan_softc *);
404 static void vxlan_sysctl_setup(struct vxlan_softc *);
405 static void vxlan_sysctl_destroy(struct vxlan_softc *);
406 static int vxlan_tunable_int(struct vxlan_softc *, const char *, int);
479 int (*vxlc_func)(struct vxlan_softc *, void *);
578 vxlan_ftable_init(struct vxlan_softc *sc)
591 vxlan_ftable_fini(struct vxlan_softc *sc)
606 vxlan_ftable_flush(struct vxlan_softc *sc, int all)
620 vxlan_ftable_expire(struct vxlan_softc *sc)
637 vxlan_ftable_update_locked(struct vxlan_softc *sc,
695 vxlan_ftable_learn(struct vxlan_softc *sc, const struct sockaddr *sa,
727 struct vxlan_softc *sc;
781 vxlan_ftable_entry_init(struct vxlan_softc *sc, struct vxlan_ftable_entry *fe,
792 vxlan_ftable_entry_destroy(struct vxlan_softc *sc,
802 vxlan_ftable_entry_insert(struct vxlan_softc *sc,
839 vxlan_ftable_entry_lookup(struct vxlan_softc *sc, const uint8_t *mac)
1105 struct vxlan_softc *sc;
1359 static struct vxlan_softc *
1362 struct vxlan_softc *sc;
1378 static struct vxlan_softc *
1382 struct vxlan_softc *sc;
1392 vxlan_socket_insert_softc(struct vxlan_socket *vso, struct vxlan_softc *sc)
1394 struct vxlan_softc *tsc;
1416 vxlan_socket_remove_softc(struct vxlan_socket *vso, struct vxlan_softc *sc)
1427 vxlan_multicast_if_ref(struct vxlan_softc *sc, int ipv4)
1447 vxlan_free_multicast(struct vxlan_softc *sc)
1468 vxlan_setup_multicast_interface(struct vxlan_softc *sc)
1493 vxlan_setup_multicast(struct vxlan_softc *sc)
1530 vxlan_setup_socket(struct vxlan_softc *sc)
1603 vxlan_setup_zero_checksum_port(struct vxlan_softc *sc)
1638 vxlan_setup_interface_hdrlen(struct vxlan_softc *sc)
1657 vxlan_valid_init_config(struct vxlan_softc *sc)
1714 vxlan_init_wait(struct vxlan_softc *sc)
1723 vxlan_init_complete(struct vxlan_softc *sc)
1736 struct vxlan_softc *sc;
1782 vxlan_release(struct vxlan_softc *sc)
1796 vxlan_teardown_wait(struct vxlan_softc *sc)
1805 vxlan_teardown_complete(struct vxlan_softc *sc)
1815 vxlan_teardown_locked(struct vxlan_softc *sc)
1865 vxlan_teardown(struct vxlan_softc *sc)
1883 vxlan_ifdetach(struct vxlan_softc *sc, struct ifnet *ifp,
1904 struct vxlan_softc *sc;
1914 vxlan_ioctl_ifflags(struct vxlan_softc *sc)
1932 vxlan_ctrl_get_config(struct vxlan_softc *sc, void *arg)
1967 vxlan_ctrl_set_vni(struct vxlan_softc *sc, void *arg)
1989 vxlan_ctrl_set_local_addr(struct vxlan_softc *sc, void *arg)
2021 vxlan_ctrl_set_remote_addr(struct vxlan_softc *sc, void *arg)
2051 vxlan_ctrl_set_local_port(struct vxlan_softc *sc, void *arg)
2073 vxlan_ctrl_set_remote_port(struct vxlan_softc *sc, void *arg)
2095 vxlan_ctrl_set_port_range(struct vxlan_softc *sc, void *arg)
2121 vxlan_ctrl_set_ftable_timeout(struct vxlan_softc *sc, void *arg)
2140 vxlan_ctrl_set_ftable_max(struct vxlan_softc *sc, void *arg)
2159 vxlan_ctrl_set_multicast_if(struct vxlan_softc * sc, void *arg)
2179 vxlan_ctrl_set_ttl(struct vxlan_softc *sc, void *arg)
2202 vxlan_ctrl_set_learn(struct vxlan_softc *sc, void *arg)
2219 vxlan_ctrl_ftable_entry_add(struct vxlan_softc *sc, void *arg)
2266 vxlan_ctrl_ftable_entry_rem(struct vxlan_softc *sc, void *arg)
2287 vxlan_ctrl_flush(struct vxlan_softc *sc, void *arg)
2303 vxlan_ioctl_drvspec(struct vxlan_softc *sc, struct ifdrv *ifd, int get)
2355 struct vxlan_softc *sc;
2433 vxlan_pick_source_port(struct vxlan_softc *sc, struct mbuf *m)
2450 vxlan_encap_header(struct vxlan_softc *sc, struct mbuf *m, int ipoff,
2519 vxlan_encap4(struct vxlan_softc *sc, const union vxlan_sockaddr *fvxlsa,
2630 vxlan_encap6(struct vxlan_softc *sc, const union vxlan_sockaddr *fvxlsa,
2752 struct vxlan_softc *sc;
2862 struct vxlan_softc *sc;
2934 vxlan_stats_alloc(struct vxlan_softc *sc)
2944 vxlan_stats_free(struct vxlan_softc *sc)
2954 vxlan_set_default_config(struct vxlan_softc *sc)
2978 vxlan_set_user_config(struct vxlan_softc *sc, struct ifvxlanparam *vxlp)
3073 vxlan_set_reqcap(struct vxlan_softc *sc, struct ifnet *ifp, int reqcap)
3110 vxlan_set_hwcaps(struct vxlan_softc *sc)
3212 struct vxlan_softc *sc;
3217 sc = malloc(sizeof(struct vxlan_softc), M_VXLAN, M_WAITOK | M_ZERO);
3278 struct vxlan_softc *sc;
3302 vxlan_mac_hash(struct vxlan_softc *sc, const uint8_t *addr)
3496 vxlan_can_change_config(struct vxlan_softc *sc)
3540 vxlan_sysctl_setup(struct vxlan_softc *sc)
3593 vxlan_sysctl_destroy(struct vxlan_softc *sc)
3601 vxlan_tunable_int(struct vxlan_softc *sc, const char *knob, int def)
3617 struct vxlan_softc *sc, *tsc;