Module Name:    src
Committed By:   ozaki-r
Date:           Wed May 25 10:15:01 UTC 2016

Modified Files:
        src/sys/dev/pci/cxgb: cxgb_osdep.h

Log Message:
Use M_GETCTX and M_SETCTX

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/pci/cxgb/cxgb_osdep.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/cxgb/cxgb_osdep.h
diff -u src/sys/dev/pci/cxgb/cxgb_osdep.h:1.4 src/sys/dev/pci/cxgb/cxgb_osdep.h:1.5
--- src/sys/dev/pci/cxgb/cxgb_osdep.h:1.4	Thu Mar 20 06:48:54 2014
+++ src/sys/dev/pci/cxgb/cxgb_osdep.h	Wed May 25 10:15:01 2016
@@ -183,8 +183,8 @@ struct t3_mbuf_hdr {
 } 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)

Reply via email to