diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-03-19 10:09:21 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-03-19 10:09:21 +0000 |
commit | 6e2621c23c35516b6036c2c0d9bb69fd5e1d9376 (patch) | |
tree | 7e406591ea45d943e4280b6c731addef3ed25457 /sys/dev/ic/malo.c | |
parent | d4a210e66036f42d4f704fa1ac3c075ca0172eb6 (diff) |
Stop abusing the rcvif pointer to pass wireless nodes down to the
driver start routines. Instead add & use a pointer in the pkthdr
since we don't want the overhead of using a mbuf_tags(9).
claudio@ pointed out that other subsystems might want to use this
pointer too, so here's a new cookie!
ok claudio@, mikeb@, deraadt@
Diffstat (limited to 'sys/dev/ic/malo.c')
-rw-r--r-- | sys/dev/ic/malo.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/ic/malo.c b/sys/dev/ic/malo.c index 1d4e370e994..0722b6d0160 100644 --- a/sys/dev/ic/malo.c +++ b/sys/dev/ic/malo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: malo.c,v 1.97 2013/12/06 21:03:03 deraadt Exp $ */ +/* $OpenBSD: malo.c,v 1.98 2014/03/19 10:09:19 mpi Exp $ */ /* * Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org> @@ -1026,8 +1026,7 @@ malo_start(struct ifnet *ifp) } IF_DEQUEUE(&ic->ic_mgtq, m0); - ni = (struct ieee80211_node *)m0->m_pkthdr.rcvif; - m0->m_pkthdr.rcvif = NULL; + ni = m0->m_pkthdr.ph_cookie; #if NBPFILTER > 0 if (ic->ic_rawbpf != NULL) bpf_mtap(ic->ic_rawbpf, m0, BPF_DIRECTION_OUT); |