mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
replace IFQ_ENQUEUE + if_start with if_transmit
This commit is contained in:
parent
2635206d3a
commit
6e3513f523
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=191608
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user