svn commit: r191608 - head/sys/net
Kip Macy
kmacy at FreeBSD.org
Mon Apr 27 22:46:27 UTC 2009
Author: kmacy
Date: Mon Apr 27 22:46:26 2009
New Revision: 191608
URL: http://svn.freebsd.org/changeset/base/191608
Log:
replace IFQ_ENQUEUE + if_start with if_transmit
Modified:
head/sys/net/bridgestp.c
Modified: head/sys/net/bridgestp.c
==============================================================================
--- head/sys/net/bridgestp.c Mon Apr 27 22:45:56 2009 (r191607)
+++ head/sys/net/bridgestp.c Mon Apr 27 22:46:26 2009 (r191608)
@@ -98,7 +98,6 @@ static void bstp_decode_bpdu(struct bstp
struct bstp_config_unit *);
static void bstp_send_bpdu(struct bstp_state *, struct bstp_port *,
struct bstp_cbpdu *);
-static void bstp_enqueue(struct ifnet *, struct mbuf *);
static int bstp_pdu_flags(struct bstp_port *);
static void bstp_received_stp(struct bstp_state *, struct bstp_port *,
struct mbuf **, struct bstp_tbpdu *);
@@ -262,7 +261,7 @@ bstp_transmit_tcn(struct bstp_state *bs,
memcpy(mtod(m, caddr_t) + sizeof(*eh), &bpdu, sizeof(bpdu));
bp->bp_txcount++;
- bstp_enqueue(ifp, m);
+ ifp->if_transmit(ifp, m);
}
static void
@@ -391,18 +390,7 @@ bstp_send_bpdu(struct bstp_state *bs, st
m->m_len = m->m_pkthdr.len;
bp->bp_txcount++;
- bstp_enqueue(ifp, m);
-}
-
-static void
-bstp_enqueue(struct ifnet *dst_ifp, struct mbuf *m)
-{
- int err = 0;
-
- IFQ_ENQUEUE(&dst_ifp->if_snd, m, err);
-
- if ((dst_ifp->if_drv_flags & IFF_DRV_OACTIVE) == 0)
- (*dst_ifp->if_start)(dst_ifp);
+ ifp->if_transmit(ifp, m);
}
static int
More information about the svn-src-head
mailing list