| 2235 | } |
| 2236 | |
| 2237 | static int |
| 2238 | vxlan_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 | |
| 2258 | static int |
| 2259 | vxlan_ctrl_flush(struct vxlan_softc *sc, void *arg) |
nothing calls this directly
no test coverage detected