it sends commands and waits for replies to come back in. The receive
pipe seems to contain both command completions and data packets. When
waiting for command completion during hvn(4) attach, it's possible for
packets to show up as well. We shouldn't call if_input() if hvn(4) is
not set up, so drop them when we're not running.
ok mikeb@
}
hvn_nvs_ack(sc, tid);
- if_input(ifp, &ml);
+ if (ifp->if_flags & IFF_RUNNING)
+ if_input(ifp, &ml);
+ else
+ ml_purge(&ml);
}
static inline struct mbuf *