@@ -409,6 +409,10 @@ enum skb_drop_reason {
* net.rst) or RPS flow limit
*/
SKB_DROP_REASON_XDP, /* dropped by XDP in input path */
+ SKB_DROP_REASON_QDISC_INGRESS, /* qdisc of type ingress check
+ * failed (maybe an eBPF program
+ * is tricking?)
+ */
SKB_DROP_REASON_MAX,
};
@@ -49,6 +49,7 @@
EM(SKB_DROP_REASON_QDISC_DROP, QDISC_DROP) \
EM(SKB_DROP_REASON_CPU_BACKLOG, CPU_BACKLOG) \
EM(SKB_DROP_REASON_XDP, XDP) \
+ EM(SKB_DROP_REASON_QDISC_INGRESS, QDISC_INGRESS) \
EMe(SKB_DROP_REASON_MAX, MAX)
#undef EM
@@ -5013,7 +5013,7 @@ sch_handle_ingress(struct sk_buff *skb, struct packet_type **pt_prev, int *ret,
break;
case TC_ACT_SHOT:
mini_qdisc_qstats_cpu_drop(miniq);
- kfree_skb(skb);
+ kfree_skb_reason(skb, SKB_DROP_REASON_QDISC_INGRESS);
return NULL;
case TC_ACT_STOLEN:
case TC_ACT_QUEUED: