Commit 6af3b42
committed
Merge branch 'skb-drop-reasons'
Menglong Dong says:
====================
net: dev: add skb drop reasons to net/core/dev.c
In the commit c504e5c ("net: skb: introduce kfree_skb_reason()"),
we added the support of reporting the reasons of skb drops to kfree_skb
tracepoint. And in this series patches, reasons for skb drops are added
to the link layer, which means that 'net/core/dev.c' is our target.
Following functions are processed:
sch_handle_egress()
__dev_xmit_skb()
enqueue_to_backlog()
do_xdp_generic()
sch_handle_ingress()
__netif_receive_skb_core()
and following new drop reasons are added (what they mean can be see in
the document of them):
SKB_DROP_REASON_QDISC_EGRESS
SKB_DROP_REASON_QDISC_DROP
SKB_DROP_REASON_CPU_BACKLOG
SKB_DROP_REASON_XDP
SKB_DROP_REASON_QDISC_INGRESS
SKB_DROP_REASON_PTYPE_ABSENT
In order to add skb drop reasons to kfree_skb_list(), the function
kfree_skb_list_reason() is introduced in the 2th patch, which will be
used in __dev_xmit_skb() in the 3th patch.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>4 files changed
+50
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
397 | 415 | | |
398 | 416 | | |
399 | 417 | | |
| |||
1201 | 1219 | | |
1202 | 1220 | | |
1203 | 1221 | | |
1204 | | - | |
| 1222 | + | |
| 1223 | + | |
1205 | 1224 | | |
1206 | 1225 | | |
1207 | 1226 | | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
1208 | 1232 | | |
1209 | 1233 | | |
1210 | 1234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
48 | 54 | | |
49 | 55 | | |
50 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3759 | 3759 | | |
3760 | 3760 | | |
3761 | 3761 | | |
3762 | | - | |
| 3762 | + | |
| 3763 | + | |
3763 | 3764 | | |
3764 | 3765 | | |
3765 | 3766 | | |
| |||
3814 | 3815 | | |
3815 | 3816 | | |
3816 | 3817 | | |
3817 | | - | |
| 3818 | + | |
3818 | 3819 | | |
3819 | 3820 | | |
3820 | 3821 | | |
| |||
3889 | 3890 | | |
3890 | 3891 | | |
3891 | 3892 | | |
3892 | | - | |
| 3893 | + | |
3893 | 3894 | | |
3894 | 3895 | | |
3895 | 3896 | | |
| |||
4569 | 4570 | | |
4570 | 4571 | | |
4571 | 4572 | | |
| 4573 | + | |
4572 | 4574 | | |
4573 | 4575 | | |
4574 | 4576 | | |
4575 | 4577 | | |
| 4578 | + | |
4576 | 4579 | | |
4577 | 4580 | | |
4578 | 4581 | | |
| |||
4595 | 4598 | | |
4596 | 4599 | | |
4597 | 4600 | | |
| 4601 | + | |
4598 | 4602 | | |
4599 | 4603 | | |
4600 | 4604 | | |
4601 | 4605 | | |
4602 | 4606 | | |
4603 | 4607 | | |
4604 | | - | |
| 4608 | + | |
4605 | 4609 | | |
4606 | 4610 | | |
4607 | 4611 | | |
| |||
4821 | 4825 | | |
4822 | 4826 | | |
4823 | 4827 | | |
4824 | | - | |
| 4828 | + | |
4825 | 4829 | | |
4826 | 4830 | | |
4827 | 4831 | | |
| |||
5037 | 5041 | | |
5038 | 5042 | | |
5039 | 5043 | | |
5040 | | - | |
| 5044 | + | |
5041 | 5045 | | |
5042 | 5046 | | |
5043 | 5047 | | |
| |||
5354 | 5358 | | |
5355 | 5359 | | |
5356 | 5360 | | |
5357 | | - | |
| 5361 | + | |
5358 | 5362 | | |
5359 | | - | |
| 5363 | + | |
| 5364 | + | |
5360 | 5365 | | |
5361 | | - | |
| 5366 | + | |
| 5367 | + | |
5362 | 5368 | | |
5363 | 5369 | | |
5364 | 5370 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
777 | 777 | | |
778 | 778 | | |
779 | 779 | | |
780 | | - | |
| 780 | + | |
| 781 | + | |
781 | 782 | | |
782 | 783 | | |
783 | 784 | | |
784 | 785 | | |
785 | | - | |
| 786 | + | |
786 | 787 | | |
787 | 788 | | |
788 | 789 | | |
789 | | - | |
| 790 | + | |
790 | 791 | | |
791 | 792 | | |
792 | 793 | | |
| |||
0 commit comments