Author: andre
Date: Sat Aug 24 17:14:14 2013
New Revision: 254800
URL: http://svnweb.freebsd.org/changeset/base/254800

Log:
  Remove unnecessary setup of the m->pkthdr.header pointer.
  
  Sponsored by: The FreeBSD Foundation

Modified:
  head/sys/dev/cxgb/cxgb_sge.c
  head/sys/dev/sfxge/sfxge_rx.c

Modified: head/sys/dev/cxgb/cxgb_sge.c
==============================================================================
--- head/sys/dev/cxgb/cxgb_sge.c        Sat Aug 24 16:57:44 2013        
(r254799)
+++ head/sys/dev/cxgb/cxgb_sge.c        Sat Aug 24 17:14:14 2013        
(r254800)
@@ -2634,7 +2634,6 @@ t3_rx_eth(struct adapter *adap, struct m
        } 
 
        m->m_pkthdr.rcvif = ifp;
-       m->m_pkthdr.header = mtod(m, uint8_t *) + sizeof(*cpl) + ethpad;
        /*
         * adjust after conversion to mbuf chain
         */

Modified: head/sys/dev/sfxge/sfxge_rx.c
==============================================================================
--- head/sys/dev/sfxge/sfxge_rx.c       Sat Aug 24 16:57:44 2013        
(r254799)
+++ head/sys/dev/sfxge/sfxge_rx.c       Sat Aug 24 17:14:14 2013        
(r254800)
@@ -282,7 +282,6 @@ static void __sfxge_rx_deliver(struct sf
        struct ifnet *ifp = sc->ifnet;
 
        m->m_pkthdr.rcvif = ifp;
-       m->m_pkthdr.header = m->m_data;
        m->m_pkthdr.csum_data = 0xffff;
        ifp->if_input(ifp, m);
 }
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to