Skip to content
Commit cfe91b8d authored by Maochen Wang's avatar Maochen Wang Committed by Benjamin Cabé
Browse files

net: ip: net_pkt: only reserve L2 header for TX case



Only reserve L2 header for TX case when allocating net buffer,
as for RX case, all the received headers are already in linear
buffer when the driver receives the data, and reserve extra L2
header for RX case may exceed the default buffer size.

Signed-off-by: default avatarMaochen Wang <maochen.wang@nxp.com>
parent e4c5bb99
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment