Unroll macro that is used just once. Not a functional change.
This commit is contained in:
parent
1d11092814
commit
f6a2a6b163
@ -1372,19 +1372,6 @@ ip6_mdq(struct mbuf *m, struct ifnet *ifp, struct mf6c *rt)
|
||||
u_int32_t iszone, idzone, oszone, odzone;
|
||||
int error = 0;
|
||||
|
||||
/*
|
||||
* Macro to send packet on mif. Since RSVP packets don't get counted on
|
||||
* input, they shouldn't get counted on output, so statistics keeping is
|
||||
* separate.
|
||||
*/
|
||||
|
||||
#define MC6_SEND(ip6, mifp, m) do { \
|
||||
if ((mifp)->m6_flags & MIFF_REGISTER) \
|
||||
register_send((ip6), (mifp), (m)); \
|
||||
else \
|
||||
phyint_send((ip6), (mifp), (m)); \
|
||||
} while (/*CONSTCOND*/ 0)
|
||||
|
||||
/*
|
||||
* Don't forward if it didn't arrive from the parent mif
|
||||
* for its origin.
|
||||
@ -1528,7 +1515,10 @@ ip6_mdq(struct mbuf *m, struct ifnet *ifp, struct mf6c *rt)
|
||||
|
||||
mifp->m6_pkt_out++;
|
||||
mifp->m6_bytes_out += plen;
|
||||
MC6_SEND(ip6, mifp, m);
|
||||
if (mifp->m6_flags & MIFF_REGISTER)
|
||||
register_send(ip6, mifp, m);
|
||||
else
|
||||
phyint_send(ip6, mifp, m);
|
||||
}
|
||||
}
|
||||
return (0);
|
||||
|
Loading…
Reference in New Issue
Block a user