Change m->pkthdr.header to m->pkthdr.PH_loc.ptr after r254804

to transiently store pointers to packet headers.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
andre 2013-08-25 09:45:26 +00:00
parent 11493fb48f
commit c4e489b014

View File

@ -87,7 +87,7 @@ static void flush_session(struct mlx4_en_priv *priv,
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 *priv, struct mlx4_en_rx_ring *ring,
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;