HomeFreeBSD

Don't omit m_dup() for non-writeable mbufs that need checksum calculation

Description

Don't omit m_dup() for non-writeable mbufs that need checksum calculation

If the driver is not active or link is down the packet could remain
non-writeable. This commit makes all mbufs enqueued to the driver's
ring buffer to have correct attributes.

Pointed out by: wma
Reviewed by: wma
Obtained from: Semihalf
Sponsored by: Cavium
Differential Revision: https://reviews.freebsd.org/D5800

Details

Provenance
zbbAuthored on Mar 31 2016, 1:23 PM
Parents
rG9b0488ed2ae6: Remove NULL checks after M_WAITOK allocations, which - by definition - can
Branches
Unknown
Tags
Unknown

Event Timeline