atm: Use ifq_dispatch() instead of ifq_handoff()
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 28 Dec 2012 03:47:19 +0000 (11:47 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 28 Dec 2012 03:47:19 +0000 (11:47 +0800)
sys/net/if_atmsubr.c

index f1df178..a5e75fd 100644 (file)
@@ -214,9 +214,7 @@ atm_output(struct ifnet *ifp, struct mbuf *m0, struct sockaddr *dst,
        /*
         * Dispatch message to the interface.
         */
-       ifnet_serialize_tx(ifp);
-       error = ifq_handoff(ifp, m, &pktattr);
-       ifnet_deserialize_tx(ifp);
+       error = ifq_dispatch(ifp, m, &pktattr);
        return error;
 
 bad: