Commit cc15bd1
net: adopt skb_network_header_len() more broadly
(skb_transport_header(skb) - skb_network_header(skb))
can be replaced by skb_network_header_len(skb)
Add a DEBUG_NET_WARN_ON_ONCE() in skb_network_header_len()
to catch cases were the transport_header was not set.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 80bfab7 commit cc15bd1
File tree
7 files changed
+7
-8
lines changed- drivers/net
- ethernet
- broadcom/bnx2x
- intel
- i40e
- iavf
- wireless/intel/iwlwifi
- mvm
- pcie
- queue
- include/linux
7 files changed
+7
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3621 | 3621 | | |
3622 | 3622 | | |
3623 | 3623 | | |
3624 | | - | |
3625 | | - | |
| 3624 | + | |
3626 | 3625 | | |
3627 | 3626 | | |
3628 | 3627 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13213 | 13213 | | |
13214 | 13214 | | |
13215 | 13215 | | |
13216 | | - | |
| 13216 | + | |
13217 | 13217 | | |
13218 | 13218 | | |
13219 | 13219 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4428 | 4428 | | |
4429 | 4429 | | |
4430 | 4430 | | |
4431 | | - | |
| 4431 | + | |
4432 | 4432 | | |
4433 | 4433 | | |
4434 | 4434 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1015 | 1015 | | |
1016 | 1016 | | |
1017 | 1017 | | |
1018 | | - | |
1019 | | - | |
| 1018 | + | |
1020 | 1019 | | |
1021 | 1020 | | |
1022 | 1021 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1331 | 1331 | | |
1332 | 1332 | | |
1333 | 1333 | | |
1334 | | - | |
| 1334 | + | |
1335 | 1335 | | |
1336 | 1336 | | |
1337 | 1337 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3036 | 3036 | | |
3037 | 3037 | | |
3038 | 3038 | | |
| 3039 | + | |
3039 | 3040 | | |
3040 | 3041 | | |
3041 | 3042 | | |
| |||
0 commit comments