MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vxlan_ctrl_ftable_entry_rem

Function vxlan_ctrl_ftable_entry_rem

freebsd/net/if_vxlan.c:2237–2256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2235}
2236
2237static int
2238vxlan_ctrl_ftable_entry_rem(struct vxlan_softc *sc, void *arg)
2239{
2240 struct ifvxlancmd *cmd;
2241 struct vxlan_ftable_entry *fe;
2242 int error;
2243
2244 cmd = arg;
2245
2246 VXLAN_WLOCK(sc);
2247 fe = vxlan_ftable_entry_lookup(sc, cmd->vxlcmd_mac);
2248 if (fe != NULL) {
2249 vxlan_ftable_entry_destroy(sc, fe);
2250 error = 0;
2251 } else
2252 error = ENOENT;
2253 VXLAN_WUNLOCK(sc);
2254
2255 return (error);
2256}
2257
2258static int
2259vxlan_ctrl_flush(struct vxlan_softc *sc, void *arg)

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected