Skip to content

net: use kfree_skb_reason() for ip/udp packet receive

[email protected] lkml netdev netfilter-devel 4 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest7 patches 1 replyApplied 7/7
  2. v37 patches 14 repliesSuperseded
  3. v28 patches 5 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v16 patches15 repliesSuperseded

Changes in v4 from the cover letter

- fix some small problems in the third patch (net: ipv4: use kfree_skb_reason() in ip_rcv_core()), as David Ahern said

Patches in v4 All 7 applied

#Subject and filesSizeRepliesApplied
1/7net: skb_drop_reason: add document for drop reasonsinclude/linux/skbuff.h+6 -60 repliesApplied
2/7net: netfilter: use kfree_drop_reason() for NF_DROPinclude/linux/skbuff.h include/trace/events/skb.h net/netfilter/core.c+4 -10 repliesApplied
3/7net: ipv4: use kfree_skb_reason() in ip_rcv_core()include/linux/skbuff.h include/trace/events/skb.h net/ipv4/ip_input.c+22 -21 replyApplied
4/7net: ipv4: use kfree_skb_reason() in ip_rcv_finish_core()include/linux/skbuff.h include/trace/events/skb.h net/ipv4/ip_input.c+22 -40 repliesApplied
5/7net: ipv4: use kfree_skb_reason() in ip_protocol_deliver_rcu()include/linux/skbuff.h include/trace/events/skb.h net/ipv4/ip_input.c+7 -20 repliesApplied
6/7net: udp: use kfree_skb_reason() in udp_queue_rcv_one_skb()net/ipv4/udp.c+9 -30 repliesApplied
7/7net: udp: use kfree_skb_reason() in __udp_queue_rcv_skb()include/linux/skbuff.h include/trace/events/skb.h net/ipv4/udp.c+14 -30 repliesApplied

Reviews trailers per patch

6 of 7 patches have a Reviewed-by or Acked-by.

PatchDavid Ahern
1/7R-b
2/7
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 net-next 0/7] net: use kfree_skb_reason() for ip/udp packet receive

From: Menglong Dong <[email protected]>

In this series patches, kfree_skb() is replaced with kfree_skb_reason() during ipv4 and udp4 packet receiving path, and following drop reasons are introduced:

SKB_DROP_REASON_SOCKET_FILTER
SKB_DROP_REASON_NETFILTER_DROP
SKB_DROP_REASON_OTHERHOST
SKB_DROP_REASON_IP_CSUM
SKB_DROP_REASON_IP_INHDR
SKB_DROP_REASON_IP_RPFILTER
SKB_DROP_REASON_UNICAST_IN_L2_MULTICAST
SKB_DROP_REASON_XFRM_POLICY
SKB_DROP_REASON_IP_NOPROTO
SKB_DROP_REASON_SOCKET_RCVBUFF
SKB_DROP_REASON_PROTO_MEM

TCP is more complex, so I left it in the next series.

I just figure out how __print_symbolic() works. It doesn't base on the array index, but searching for symbols by loop. So I'm a little afraid it's performance.

Changes since v3:
- fix some small problems in the third patch (net: ipv4: use kfree_skb_reason() in ip_rcv_core()), as David Ahern said

Changes since v2:
- use SKB_DROP_REASON_PKT_TOO_SMALL for a path in ip_rcv_core()

Changes since v1:
- add document for all drop reasons, as David advised
- remove unreleated cleanup
- remove EARLY_DEMUX and IP_ROUTE_INPUT drop reason
- replace {UDP, TCP}_FILTER with SOCKET_FILTER

Alex Elder (6):
net: ipa: allocate transaction in replenish loop
net: ipa: don't use replenish_backlog
net: ipa: introduce gsi_channel_trans_idle()
net: ipa: kill replenish_backlog
net: ipa: replenish after delivering payload
net: ipa: determine replenish doorbell differently

Menglong Dong (1):
net: drop_monitor: support drop reason

Signature · 1 line
2.27.0