summaryrefslogtreecommitdiffstats
path: root/sys/net/bridgestp.c
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2009-04-27 22:46:26 +0000
committerkmacy <kmacy@FreeBSD.org>2009-04-27 22:46:26 +0000
commitfe88b83c9d8f54837361786ba6a689e3123b643b (patch)
treeaad806425e06dc0be06971fe1cc67bebf5ce4899 /sys/net/bridgestp.c
parentcbd83105354ed738c4d2b061df705546f3d2884b (diff)
downloadFreeBSD-src-fe88b83c9d8f54837361786ba6a689e3123b643b.zip
FreeBSD-src-fe88b83c9d8f54837361786ba6a689e3123b643b.tar.gz
replace IFQ_ENQUEUE + if_start with if_transmit
Diffstat (limited to 'sys/net/bridgestp.c')
-rw-r--r--sys/net/bridgestp.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/sys/net/bridgestp.c b/sys/net/bridgestp.c
index 11a7fd6..059e963 100644
--- a/sys/net/bridgestp.c
+++ b/sys/net/bridgestp.c
@@ -98,7 +98,6 @@ static void bstp_decode_bpdu(struct bstp_port *, struct bstp_cbpdu *,
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, struct bstp_port *bp)
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, struct bstp_port *bp,
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
OpenPOWER on IntegriCloud