Remove unnecessary setup of the m->pkthdr.header pointer.
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
9a73687609
commit
3b460852c4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=254800
@ -2634,7 +2634,6 @@ t3_rx_eth(struct adapter *adap, struct mbuf *m, int ethpad)
|
||||
}
|
||||
|
||||
m->m_pkthdr.rcvif = ifp;
|
||||
m->m_pkthdr.header = mtod(m, uint8_t *) + sizeof(*cpl) + ethpad;
|
||||
/*
|
||||
* adjust after conversion to mbuf chain
|
||||
*/
|
||||
|
@ -282,7 +282,6 @@ static void __sfxge_rx_deliver(struct sfxge_softc *sc, struct mbuf *m)
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user