Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Aug 2013 09:45:26 +0000 (UTC)
From:      Andre Oppermann <andre@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r254832 - head/sys/ofed/drivers/net/mlx4
Message-ID:  <201308250945.r7P9jQtl081508@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andre
Date: Sun Aug 25 09:45:26 2013
New Revision: 254832
URL: http://svnweb.freebsd.org/changeset/base/254832

Log:
  Change m->pkthdr.header to m->pkthdr.PH_loc.ptr after r254804
  to transiently store pointers to packet headers.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/ofed/drivers/net/mlx4/en_frag.c

Modified: head/sys/ofed/drivers/net/mlx4/en_frag.c
==============================================================================
--- head/sys/ofed/drivers/net/mlx4/en_frag.c	Sun Aug 25 09:41:37 2013	(r254831)
+++ head/sys/ofed/drivers/net/mlx4/en_frag.c	Sun Aug 25 09:45:26 2013	(r254832)
@@ -87,7 +87,7 @@ static void flush_session(struct mlx4_en
 			  u16 more)
 {
 	struct mbuf *mb = session->fragments;
-	struct ip *iph = mb->m_pkthdr.header;
+	struct ip *iph = mb->m_pkthdr.PH_loc.ptr;
 	struct net_device *dev = mb->m_pkthdr.rcvif;
 
 	/* Update IP length and checksum */
@@ -132,7 +132,7 @@ int mlx4_en_rx_frags(struct mlx4_en_priv
 	u16 offset;
 
 	iph = (struct ip *)(mtod(mb, char *) + ETHER_HDR_LEN);
-	mb->m_pkthdr.header = iph;
+	mb->m_pkthdr.PH_loc.ptr = iph;
 	ip_len = ntohs(iph->ip_len);
 	ip_hlen = iph->ip_hl * 4;
 	data_len = ip_len - ip_hlen;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308250945.r7P9jQtl081508>