if_ovpn: remove an incorrect assertion
netisr_dispatch() can fail, especially when under high traffic loads. This isn't a fatal error, so simply don't check the return value. Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
307625842b
commit
61ab88d873
@ -1419,7 +1419,6 @@ ovpn_finish_rx(struct ovpn_softc *sc, struct mbuf *m,
|
||||
struct rm_priotracker *_ovpn_lock_trackerp)
|
||||
{
|
||||
uint32_t af;
|
||||
int ret __diagused;
|
||||
|
||||
OVPN_RASSERT(sc);
|
||||
NET_EPOCH_ASSERT();
|
||||
@ -1461,9 +1460,7 @@ ovpn_finish_rx(struct ovpn_softc *sc, struct mbuf *m,
|
||||
af = ovpn_get_af(m);
|
||||
if (af != 0) {
|
||||
BPF_MTAP2(sc->ifp, &af, sizeof(af), m);
|
||||
ret = netisr_dispatch(af == AF_INET ? NETISR_IP : NETISR_IPV6,
|
||||
m);
|
||||
MPASS(ret == 0);
|
||||
netisr_dispatch(af == AF_INET ? NETISR_IP : NETISR_IPV6, m);
|
||||
} else {
|
||||
OVPN_COUNTER_ADD(sc, lost_data_pkts_in, 1);
|
||||
m_freem(m);
|
||||
|
Loading…
Reference in New Issue
Block a user