Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci/cxgb Use M_GETCTX and M_SETCTX
details: https://anonhg.NetBSD.org/src/rev/5b5940d7c99a
branches: trunk
changeset: 345409:5b5940d7c99a
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Wed May 25 10:15:01 2016 +0000
description:
Use M_GETCTX and M_SETCTX
No functional change.
diffstat:
sys/dev/pci/cxgb/cxgb_osdep.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (14 lines):
diff -r 8007309a76c7 -r 5b5940d7c99a sys/dev/pci/cxgb/cxgb_osdep.h
--- a/sys/dev/pci/cxgb/cxgb_osdep.h Wed May 25 00:14:47 2016 +0000
+++ b/sys/dev/pci/cxgb/cxgb_osdep.h Wed May 25 10:15:01 2016 +0000
@@ -183,8 +183,8 @@
} while (0)
-#define m_get_priority(m) ((uintptr_t)(m)->m_pkthdr.rcvif)
-#define m_set_priority(m, pri) ((m)->m_pkthdr.rcvif = (struct ifnet *)((uintptr_t)pri))
+#define m_get_priority(m) M_GETCTX((m), uintptr_t)
+#define m_set_priority(m, pri) M_SETCTX((m), (uintptr_t)(pri))
#define if_name(ifp) (ifp)->if_xname
#define M_SANITY(m, n)
Home |
Main Index |
Thread Index |
Old Index