From patchwork Tue Mar 26 18:05:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balazs Scheidler X-Patchwork-Id: 13604813 X-Patchwork-Delegate: kuba@kernel.org Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F05CB1B28D; Tue, 26 Mar 2024 18:05:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711476357; cv=none; b=bSepqGO/rrte/PYaaDx+vx5OHRcZNK1/qldDcWVtVqr55OravYoH+nVWWg8aN4VoLUwzarM6iycbjMFrUg4CLhqBnuBBM7c9vC7HUkJ94QI/vtqxWnT9g33xET2tBBIpyFpHntGChu0R9Tfx8ggsti2faX+JHvVFxfF7NlZ87No= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711476357; c=relaxed/simple; bh=WVwmfLFTjN/pZJB2PZOy2F3bp1qYpZXyLRMujyUYXzY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=sQLE3wKiqASjZc1IOyA3aW8+NFdst8aE9kp4YF/n0nigq6FQvEVhDTyvkh3OQVoQ4hO9vLkrphY0eWcqctKcm4NeMHPkkTPfT/+Eg5tJLKEFHFAo0odaMGUTBa5VsSHcs67ktC7/NmPYehSdIehGlf85VITqwjcUEwAapmpl5ps= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=idPN9GsJ; arc=none smtp.client-ip=209.85.208.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="idPN9GsJ" Received: by mail-lj1-f169.google.com with SMTP id 38308e7fff4ca-2d46dd8b0b8so75197861fa.2; Tue, 26 Mar 2024 11:05:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711476354; x=1712081154; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=s5/Cgp9uewUmDlAlZ60jx5hmzzPypTIAxJ1cc0TNCps=; b=idPN9GsJ6psAiuL18D5HGrhOwpg+F8AIW+nz6lV4P4LCYvSaE440YS0FCiqvpJaP1x M9bVKu7HkTAvIFVCeN32/ZM5mIMs7iLYxxlqmn1PaZFjqoCdN/EoJZjw20pa1whgM6BK nylZPO0WkSGR5ViPGw/Ixqvw81dULFgfHjixzMXpI0K8W4VU98lmHGfhuM8Gdwfyk2gL fUcaKEXoQxfWUKHfnmGpxO5XAFtbRdW167MD9JAjTEX6uj54ryLQ9dzTiS4nihaO8dRb qdYXIB3LDrX6fvnrASF9Zl4Ssz5GqzbX6ueZFgi3B+Z4JLT1pyWuAnr+wdl+n8YxQMRG 4fCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711476354; x=1712081154; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=s5/Cgp9uewUmDlAlZ60jx5hmzzPypTIAxJ1cc0TNCps=; b=cOpMhyLaNPRIqCIkwrlPdS671CJQ9Tfa3vKRTeCnKEBrfSvdtzwFbReOerEHKUbuX+ 6SAXMkVqql6M1ZwplKMkUGAhKP6t+hxj0C6WGa0bj97WkEFgUCeIKuVqdDcSvghp/uIK GM0ICg4P3UEDXCi3/uWTKxude3rz+Av7wPuYsBcgcPoV6xH61KdeNCDhtSxK1AqccMsk vkIgdpYFh7rtuR8Hcqjkqn1/bbWZAi34G5QSfFlW0TJzWoQgO8tifDk6UC0FgEbFY2BU dh93o0fIArB9spisaYt+HfCTHXMO0hSGOsxE186GA6w9SyxbeFY+H/WIM5ZUXKdUTdCc ZJ1w== X-Forwarded-Encrypted: i=1; AJvYcCWhdJvyMxOOEOgBQYI+YNRJ9AviGouzMCWEcjZKgpl7JTJXwniEBsxudtX0dWzRroM2rUXVRssNcHS87vJWU5YNtj+14mn8k84uYSu814mv/NnT+N8hbIKfwu9bqD8+3g0bkRO3xuE+Q8BBtRVCiBqmD0Fi1jqXfkhf4AbsnsRlWyy0T83E0tnB X-Gm-Message-State: AOJu0YxSnGxrMeEL3BcUvZpY5a7q8uu/VX+NDb0pz/MNXlg/WC98d51C 5ktJqANtIvV64kRhBdkKTaMYHy9IaVhX7EM6/aijbLdk9EYxBgwN X-Google-Smtp-Source: AGHT+IHYBm858QXQHIQg6skcaogKllaGjroPEkdwzIRGVNz52r+XzelyPsebqZKuVxRZse98NPQHhg== X-Received: by 2002:a05:651c:613:b0:2d6:957e:10a9 with SMTP id k19-20020a05651c061300b002d6957e10a9mr1894685lje.16.1711476353948; Tue, 26 Mar 2024 11:05:53 -0700 (PDT) Received: from localhost.localdomain (91-83-10-45.pool.digikabel.hu. [91.83.10.45]) by smtp.gmail.com with ESMTPSA id fa7-20020a056000258700b00341c6b53358sm8275523wrb.66.2024.03.26.11.05.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 11:05:53 -0700 (PDT) From: Balazs Scheidler X-Google-Original-From: Balazs Scheidler To: kerneljasonxing@gmail.com, kuniyu@amazon.com, netdev@vger.kernel.org, Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Eric Dumazet Cc: Balazs Scheidler , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Subject: [PATCH net-next v4 1/2] net: port TP_STORE_ADDR_PORTS_SKB macro to be tcp/udp independent Date: Tue, 26 Mar 2024 19:05:46 +0100 Message-Id: <9e306f78260dfbbdc7353ba5f864cc027a409540.1711475011.git.balazs.scheidler@axoflow.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org This patch moves TP_STORE_ADDR_PORTS_SKB() to a common header and removes the TCP specific implementation details. Previously the macro assumed the skb passed as an argument is a TCP packet, the implementation now uses an argument to the L4 header and uses that to extract the source/destination ports, which happen to be named the same in "struct tcphdr" and "struct udphdr" Reviewed-by: Jason Xing Signed-off-by: Balazs Scheidler --- include/trace/events/net_probe_common.h | 40 ++++++++++++++++++++++ include/trace/events/tcp.h | 45 ++----------------------- 2 files changed, 42 insertions(+), 43 deletions(-) diff --git a/include/trace/events/net_probe_common.h b/include/trace/events/net_probe_common.h index b1f9a4d3ee13..5e33f91bdea3 100644 --- a/include/trace/events/net_probe_common.h +++ b/include/trace/events/net_probe_common.h @@ -70,4 +70,44 @@ TP_STORE_V4MAPPED(__entry, saddr, daddr) #endif +#define TP_STORE_ADDR_PORTS_SKB_V4(__entry, skb, protoh) \ + do { \ + struct sockaddr_in *v4 = (void *)__entry->saddr; \ + \ + v4->sin_family = AF_INET; \ + v4->sin_port = protoh->source; \ + v4->sin_addr.s_addr = ip_hdr(skb)->saddr; \ + v4 = (void *)__entry->daddr; \ + v4->sin_family = AF_INET; \ + v4->sin_port = protoh->dest; \ + v4->sin_addr.s_addr = ip_hdr(skb)->daddr; \ + } while (0) + +#if IS_ENABLED(CONFIG_IPV6) + +#define TP_STORE_ADDR_PORTS_SKB(__entry, skb, protoh) \ + do { \ + const struct iphdr *iph = ip_hdr(skb); \ + \ + if (iph->version == 6) { \ + struct sockaddr_in6 *v6 = (void *)__entry->saddr; \ + \ + v6->sin6_family = AF_INET6; \ + v6->sin6_port = protoh->source; \ + v6->sin6_addr = ipv6_hdr(skb)->saddr; \ + v6 = (void *)__entry->daddr; \ + v6->sin6_family = AF_INET6; \ + v6->sin6_port = protoh->dest; \ + v6->sin6_addr = ipv6_hdr(skb)->daddr; \ + } else \ + TP_STORE_ADDR_PORTS_SKB_V4(__entry, skb, protoh); \ + } while (0) + +#else + +#define TP_STORE_ADDR_PORTS_SKB(__entry, skb, protoh) \ + TP_STORE_ADDR_PORTS_SKB_V4(__entry, skb, protoh) + +#endif + #endif diff --git a/include/trace/events/tcp.h b/include/trace/events/tcp.h index 3c08a0846c47..1db95175c1e5 100644 --- a/include/trace/events/tcp.h +++ b/include/trace/events/tcp.h @@ -273,48 +273,6 @@ TRACE_EVENT(tcp_probe, __entry->skbaddr, __entry->skaddr) ); -#define TP_STORE_ADDR_PORTS_SKB_V4(__entry, skb) \ - do { \ - const struct tcphdr *th = (const struct tcphdr *)skb->data; \ - struct sockaddr_in *v4 = (void *)__entry->saddr; \ - \ - v4->sin_family = AF_INET; \ - v4->sin_port = th->source; \ - v4->sin_addr.s_addr = ip_hdr(skb)->saddr; \ - v4 = (void *)__entry->daddr; \ - v4->sin_family = AF_INET; \ - v4->sin_port = th->dest; \ - v4->sin_addr.s_addr = ip_hdr(skb)->daddr; \ - } while (0) - -#if IS_ENABLED(CONFIG_IPV6) - -#define TP_STORE_ADDR_PORTS_SKB(__entry, skb) \ - do { \ - const struct iphdr *iph = ip_hdr(skb); \ - \ - if (iph->version == 6) { \ - const struct tcphdr *th = (const struct tcphdr *)skb->data; \ - struct sockaddr_in6 *v6 = (void *)__entry->saddr; \ - \ - v6->sin6_family = AF_INET6; \ - v6->sin6_port = th->source; \ - v6->sin6_addr = ipv6_hdr(skb)->saddr; \ - v6 = (void *)__entry->daddr; \ - v6->sin6_family = AF_INET6; \ - v6->sin6_port = th->dest; \ - v6->sin6_addr = ipv6_hdr(skb)->daddr; \ - } else \ - TP_STORE_ADDR_PORTS_SKB_V4(__entry, skb); \ - } while (0) - -#else - -#define TP_STORE_ADDR_PORTS_SKB(__entry, skb) \ - TP_STORE_ADDR_PORTS_SKB_V4(__entry, skb) - -#endif - /* * tcp event with only skb */ @@ -331,12 +289,13 @@ DECLARE_EVENT_CLASS(tcp_event_skb, ), TP_fast_assign( + const struct tcphdr *th = (const struct tcphdr *)skb->data; __entry->skbaddr = skb; memset(__entry->saddr, 0, sizeof(struct sockaddr_in6)); memset(__entry->daddr, 0, sizeof(struct sockaddr_in6)); - TP_STORE_ADDR_PORTS_SKB(__entry, skb); + TP_STORE_ADDR_PORTS_SKB(__entry, skb, th); ), TP_printk("skbaddr=%p src=%pISpc dest=%pISpc", From patchwork Tue Mar 26 18:05:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balazs Scheidler X-Patchwork-Id: 13604814 X-Patchwork-Delegate: kuba@kernel.org Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C3DBB41238; Tue, 26 Mar 2024 18:05:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711476359; cv=none; b=qeC5w9vYGa3T/M+y7RI6Nt8Ygff+RUR5MnwoTFMSrCnEvGU4RSfFlVzXtmkg7v/gXu6RJkqXyQMcycC1VXCVsO7cUn2YtGkYNdHk1dWZ2Zd01r280X5QKcb29ZtW5jhmfWs5BnzhK6kXUV55Kfmd8+w05ruy83VD6yiuacjEQTU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711476359; c=relaxed/simple; bh=Z8BlIPVLI03rfVazMUWT5hVeAe+y76SizIxskoTqgm4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=riIFAQ7s53AN0J6LnxjVkrpc7aP7ISCGj4A3Yebz8NA263AlG3bvSk/xxYZvIo9x47qRzBs9ZYn0+nKd2p+VB13X+kdSBlz65pyhma6rUn8dKgarysinEuEHPZviXjz7YSz6z/5v3qSFPrnwGIU11wz0DNTC57R4X17lINMx0dA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NxCHy5mZ; arc=none smtp.client-ip=209.85.221.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NxCHy5mZ" Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-34175878e30so4185799f8f.3; Tue, 26 Mar 2024 11:05:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711476356; x=1712081156; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4c2stnKJuR84Ay01kn2oc6rwDVFwsXL9yn0nGaU5p5Q=; b=NxCHy5mZyG2JFab5XGWnt6ycDMedt1JELpJgQScFFE/tRtFyJ/70qPT7+7FnTeMt3V AS9oP7sGXEhk4ncnb8HiL8tC2rnC0v0H5LcFhcPuCyl4LAZ9TaQJI1lrC5QsCwWMjSZN 2UN/iszIGyVZW26NQ37AB/LBgAGPs3lvUBOno/0CtZZBtTjB8+/aifF/dJsiLjKKdwnP KN3MRzszhx5aMtiKYF5go7bn+kjyF4Eq392t3RY6EEPR0gRGeGcjiffqDcx21n9604cw 0dl4FY45K5vxCZaLtXn85VwH9Va8VDo+tk2CShLCtcU06H1L4YDalqLYa/Rq2wRiqlda BMfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711476356; x=1712081156; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4c2stnKJuR84Ay01kn2oc6rwDVFwsXL9yn0nGaU5p5Q=; b=pfd2EvTfJqcnrOU5C4tM4njK8+C8Rsdf41tR/m6/AxxbpH5mWOdcju2cZXnyIotYzU PhcgqJk3q3wzZ4LqsuI5VGiDcVmUjaBj6z2ncTvfBXT9LxYKAt2/Bd8hplTDWB0xSVE9 uu+p0SWDwrxnxFmMdDmzFRqT4Dc9X2nxxu8N9je4tdiFMdwVyCxTAvSiY7NJ282Ppv5Y VctyhX9PXKmpIstyMiUVEiajLHnQLhjtngAxix6KkRyu4IOAx/oV21ZooRkVdRNz8FW4 QfxaRysf4XiDEQh98ZCxB0kdLko5alRl0vdQlRV89m7s0fAuL5nEdKO326hFPtlmFxVZ v9aw== X-Forwarded-Encrypted: i=1; AJvYcCWjYcALl2iRWpSuno3Ko2XCQLfazOxwBCFGlVCzVgvlnt2gHMgDUr3WoTd2obZTg5k6PUk9hrl8yI9JA1SR3pDGFOPN6ccopBk/ArUKfk4xPZDzRo6ukTuEh45XA3KYKTTjvB/9tea/Tktok+WDtVvF2JCdATwGLUENsmBKFMN2OJgBfEibbRBA X-Gm-Message-State: AOJu0Yy1UoOqsnafpeuEwaWtsntD9hThEWTMkrEMD3xZcISTHFXXtot4 9zvHyS+xb5iN//89Z9DpFRzCWQEVoTan9ReKuTWn3lQYCGbM6/+k X-Google-Smtp-Source: AGHT+IFQI9z0WQomLuNHg4+6pEZtOvE3uVTDQSk/n5uIUoFcS1OWyTQCSMdXg6+vHONM0C2CwVNaVA== X-Received: by 2002:a5d:648e:0:b0:341:cf92:ed33 with SMTP id o14-20020a5d648e000000b00341cf92ed33mr6141919wri.11.1711476355861; Tue, 26 Mar 2024 11:05:55 -0700 (PDT) Received: from localhost.localdomain (91-83-10-45.pool.digikabel.hu. [91.83.10.45]) by smtp.gmail.com with ESMTPSA id fa7-20020a056000258700b00341c6b53358sm8275523wrb.66.2024.03.26.11.05.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 11:05:55 -0700 (PDT) From: Balazs Scheidler X-Google-Original-From: Balazs Scheidler To: kerneljasonxing@gmail.com, kuniyu@amazon.com, netdev@vger.kernel.org, Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Willem de Bruijn , "David S. Miller" , David Ahern , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Balazs Scheidler , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Subject: [PATCH net-next v4 2/2] net: udp: add IP/port data to the tracepoint udp/udp_fail_queue_rcv_skb Date: Tue, 26 Mar 2024 19:05:47 +0100 Message-Id: <0c8b3e33dbf679e190be6f4c6736603a76988a20.1711475011.git.balazs.scheidler@axoflow.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org The udp_fail_queue_rcv_skb() tracepoint lacks any details on the source and destination IP/port whereas this information can be critical in case of UDP/syslog. Signed-off-by: Balazs Scheidler Reviewed-by: Jason Xing --- include/trace/events/udp.h | 29 ++++++++++++++++++++++++----- net/ipv4/udp.c | 2 +- net/ipv6/udp.c | 3 ++- 3 files changed, 27 insertions(+), 7 deletions(-) diff --git a/include/trace/events/udp.h b/include/trace/events/udp.h index 336fe272889f..62bebe2a6ece 100644 --- a/include/trace/events/udp.h +++ b/include/trace/events/udp.h @@ -7,24 +7,43 @@ #include #include +#include TRACE_EVENT(udp_fail_queue_rcv_skb, - TP_PROTO(int rc, struct sock *sk), + TP_PROTO(int rc, struct sock *sk, struct sk_buff *skb), - TP_ARGS(rc, sk), + TP_ARGS(rc, sk, skb), TP_STRUCT__entry( __field(int, rc) - __field(__u16, lport) + + __field(__u16, sport) + __field(__u16, dport) + __field(__u16, family) + __array(__u8, saddr, sizeof(struct sockaddr_in6)) + __array(__u8, daddr, sizeof(struct sockaddr_in6)) ), TP_fast_assign( + const struct udphdr *uh = (const struct udphdr *)udp_hdr(skb); + __entry->rc = rc; - __entry->lport = inet_sk(sk)->inet_num; + + /* for filtering use */ + __entry->sport = ntohs(uh->source); + __entry->dport = ntohs(uh->dest); + __entry->family = sk->sk_family; + + memset(__entry->saddr, 0, sizeof(struct sockaddr_in6)); + memset(__entry->daddr, 0, sizeof(struct sockaddr_in6)); + + TP_STORE_ADDR_PORTS_SKB(__entry, skb, uh); ), - TP_printk("rc=%d port=%hu", __entry->rc, __entry->lport) + TP_printk("rc=%d family=%s src=%pISpc dest=%pISpc", __entry->rc, + show_family_name(__entry->family), + __entry->saddr, __entry->daddr) ); #endif /* _TRACE_UDP_H */ diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 661d0e0d273f..531882f321f2 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c @@ -2049,8 +2049,8 @@ static int __udp_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) drop_reason = SKB_DROP_REASON_PROTO_MEM; } UDP_INC_STATS(sock_net(sk), UDP_MIB_INERRORS, is_udplite); + trace_udp_fail_queue_rcv_skb(rc, sk, skb); kfree_skb_reason(skb, drop_reason); - trace_udp_fail_queue_rcv_skb(rc, sk); return -1; } diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index 7c1e6469d091..2e4dc5e6137b 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c @@ -34,6 +34,7 @@ #include #include #include +#include #include #include @@ -658,8 +659,8 @@ static int __udpv6_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) drop_reason = SKB_DROP_REASON_PROTO_MEM; } UDP6_INC_STATS(sock_net(sk), UDP_MIB_INERRORS, is_udplite); + trace_udp_fail_queue_rcv_skb(rc, sk, skb); kfree_skb_reason(skb, drop_reason); - trace_udp_fail_queue_rcv_skb(rc, sk); return -1; }