Handle read-only mbufs in ether pad function
ClosedPublic

Authored by shurd on Dec 7 2017, 7:29 PM.

Details

Summary

If ethernet padding is enabled, and a read-only mbuf is passed,
it would modify the mbuf using m_append(). Instead, call m_dup() and
append to the new packet.

Test Plan

Validate with A0 hardware and patches discussed in D13269 and D13324.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
shurd created this revision.Dec 7 2017, 7:29 PM
This revision was automatically updated to reflect the committed changes.