From 009d82ee0fefdc797f55d25a50d3b6ebe61d56e4 Mon Sep 17 00:00:00 2001 From: "Andrey V. Elsukov" Date: Sun, 21 Oct 2018 18:06:15 +0000 Subject: Add handling for appearing/disappearing of ingress addresses to if_gif(4). * register handler for ingress address appearing/disappearing; * add new srcaddr hash table for fast softc lookup by srcaddr; * when srcaddr disappears, clear IFF_DRV_RUNNING flag from interface, and set it otherwise; * remove the note about ingress address from BUGS section. MFC after: 1 month Sponsored by: Yandex LLC Differential Revision: https://reviews.freebsd.org/D17134 --- sys/net/if_gif.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/net/if_gif.h') diff --git a/sys/net/if_gif.h b/sys/net/if_gif.h index 501a4e5d1789..264fe7b3ddd5 100644 --- a/sys/net/if_gif.h +++ b/sys/net/if_gif.h @@ -63,6 +63,7 @@ struct gif_softc { } gif_uhdr; CK_LIST_ENTRY(gif_softc) chain; + CK_LIST_ENTRY(gif_softc) srchash; }; CK_LIST_HEAD(gif_list, gif_softc); MALLOC_DECLARE(M_GIF); -- cgit v1.2.3