[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <94dac142f2e312e2f3bc7926d5752a1059075d89.1697989543.git.ozlinuxc@gmail.com>
Date: Sun, 22 Oct 2023 12:21:14 -0400
From: Oliver Crumrine <ozlinuxc@...il.com>
To: netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: davem@...emloft.n
Subject: [PATCH net-next 13/17] Change some instances of cork to a pointer
Changes a few instances of cork to a pointer in accordance with the
previous patches
Signed-off-by: Oliver Crumrine <ozlinuxc@...il.com>
---
net/ipv4/udp.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index f39b9c844580..51b64024124b 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -981,7 +981,7 @@ int udp_push_pending_frames(struct sock *sk)
{
struct udp_sock *up = udp_sk(sk);
struct inet_sock *inet = inet_sk(sk);
- struct flowi4 *fl4 = &inet->cork.fl.u.ip4;
+ struct flowi4 *fl4 = &inet->cork->fl.u.ip4;
struct sk_buff *skb;
int err = 0;
@@ -989,7 +989,7 @@ int udp_push_pending_frames(struct sock *sk)
if (!skb)
goto out;
- err = udp_send_skb(skb, fl4, &inet->cork.base);
+ err = udp_send_skb(skb, fl4, &inet->cork->base);
out:
up->len = 0;
@@ -1068,7 +1068,7 @@ int udp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
getfrag = is_udplite ? udplite_getfrag : ip_generic_getfrag;
- fl4 = &inet->cork.fl.u.ip4;
+ fl4 = &inet->cork->fl.u.ip4;
if (up->pending) {
/*
* There are pending frames.
@@ -1260,7 +1260,7 @@ int udp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
/*
* Now cork the socket to pend data.
*/
- fl4 = &inet->cork.fl.u.ip4;
+ fl4 = &inet->cork->fl.u.ip4;
fl4->daddr = daddr;
fl4->saddr = saddr;
fl4->fl4_dport = dport;
--
2.42.0
Powered by blists - more mailing lists