[PATCH net-next 13/17] Change some instances of cork to a pointer

From: Oliver Crumrine
Date: Sun Oct 22 2023 - 12:21:44 EST


Changes a few instances of cork to a pointer in accordance with the
previous patches

Signed-off-by: Oliver Crumrine <ozlinuxc@xxxxxxxxx>
---
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