svn commit: r254832 - head/sys/ofed/drivers/net/mlx4
Andre Oppermann
andre at FreeBSD.org
Sun Aug 25 09:45:26 UTC 2013
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;
More information about the svn-src-head
mailing list