Commit cfe91b8
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: Maochen Wang <[email protected]>1 parent e4c5bb9 commit cfe91b8
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1337 | 1337 | | |
1338 | 1338 | | |
1339 | 1339 | | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
1340 | 1350 | | |
1341 | 1351 | | |
1342 | 1352 | | |
| |||
1364 | 1374 | | |
1365 | 1375 | | |
1366 | 1376 | | |
1367 | | - | |
| 1377 | + | |
1368 | 1378 | | |
1369 | 1379 | | |
1370 | 1380 | | |
| |||
0 commit comments