Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Use m_set_rcvif, not M_SETCTX.



details:   https://anonhg.NetBSD.org/src/rev/e05280dbbf81
branches:  trunk
changeset: 816094:e05280dbbf81
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Thu Jun 16 15:51:13 2016 +0000

description:
Use m_set_rcvif, not M_SETCTX.

M_SETCTX is only for driver-private use of rcvif, whereas here we
really mean to set the receiving interface with m_set_rcvif.

diffstat:

 sys/dev/ic/rt2860.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 994c190b2e05 -r e05280dbbf81 sys/dev/ic/rt2860.c
--- a/sys/dev/ic/rt2860.c       Thu Jun 16 15:33:38 2016 +0000
+++ b/sys/dev/ic/rt2860.c       Thu Jun 16 15:51:13 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rt2860.c,v 1.13 2016/06/16 15:21:49 nonaka Exp $       */
+/*     $NetBSD: rt2860.c,v 1.14 2016/06/16 15:51:13 riastradh Exp $    */
 /*     $OpenBSD: rt2860.c,v 1.90 2016/04/13 10:49:26 mpi Exp $ */
 
 /*-
@@ -23,7 +23,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rt2860.c,v 1.13 2016/06/16 15:21:49 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rt2860.c,v 1.14 2016/06/16 15:51:13 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/sockio.h>
@@ -1337,7 +1337,7 @@
 
                /* finalize mbuf */
                m->m_data = (void *)(rxwi + 1);
-               M_SETCTX(m, ifp);
+               m_set_rcvif(m, ifp);
                m->m_pkthdr.len = m->m_len = le16toh(rxwi->len) & 0xfff;
 
                wh = mtod(m, struct ieee80211_frame *);



Home | Main Index | Thread Index | Old Index