* [PATCH net] net: udp: Add support for getsockopt(..., ..., UDP_GRO, ..., ...);
@ 2021-04-01 6:59 Norman Maurer
2021-04-01 14:10 ` David Ahern
2021-04-01 23:00 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Norman Maurer @ 2021-04-01 6:59 UTC (permalink / raw)
To: netdev, linux-kernel, davem, dsahern; +Cc: pabeni, Norman Maurer
From: Norman Maurer <norman_maurer@apple.com>
Support for UDP_GRO was added in the past but the implementation for
getsockopt was missed which did lead to an error when we tried to
retrieve the setting for UDP_GRO. This patch adds the missing switch
case for UDP_GRO
Fixes: e20cf8d3f1f7 ("udp: implement GRO for plain UDP sockets.")
Signed-off-by: Norman Maurer <norman_maurer@apple.com>
---
net/ipv4/udp.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index 4a0478b17243..99d743eb9dc4 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -2754,6 +2754,10 @@ int udp_lib_getsockopt(struct sock *sk, int level, int optname,
val = up->gso_size;
break;
+ case UDP_GRO:
+ val = up->gro_enabled;
+ break;
+
/* The following two cannot be changed on UDP sockets, the return is
* always 0 (which corresponds to the full checksum coverage of UDP). */
case UDPLITE_SEND_CSCOV:
--
2.30.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net] net: udp: Add support for getsockopt(..., ..., UDP_GRO, ..., ...);
2021-04-01 6:59 [PATCH net] net: udp: Add support for getsockopt(..., ..., UDP_GRO, ..., ...); Norman Maurer
@ 2021-04-01 14:10 ` David Ahern
2021-04-01 23:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: David Ahern @ 2021-04-01 14:10 UTC (permalink / raw)
To: Norman Maurer, netdev, linux-kernel, davem, dsahern; +Cc: pabeni, Norman Maurer
On 4/1/21 12:59 AM, Norman Maurer wrote:
> From: Norman Maurer <norman_maurer@apple.com>
>
> Support for UDP_GRO was added in the past but the implementation for
> getsockopt was missed which did lead to an error when we tried to
> retrieve the setting for UDP_GRO. This patch adds the missing switch
> case for UDP_GRO
>
> Fixes: e20cf8d3f1f7 ("udp: implement GRO for plain UDP sockets.")
> Signed-off-by: Norman Maurer <norman_maurer@apple.com>
> ---
> net/ipv4/udp.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
Reviewed-by: David Ahern <dsahern@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net] net: udp: Add support for getsockopt(..., ..., UDP_GRO, ..., ...);
2021-04-01 6:59 [PATCH net] net: udp: Add support for getsockopt(..., ..., UDP_GRO, ..., ...); Norman Maurer
2021-04-01 14:10 ` David Ahern
@ 2021-04-01 23:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-04-01 23:00 UTC (permalink / raw)
To: Norman Maurer; +Cc: netdev, linux-kernel, davem, dsahern, pabeni, norman_maurer
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
On Thu, 1 Apr 2021 08:59:17 +0200 you wrote:
> From: Norman Maurer <norman_maurer@apple.com>
>
> Support for UDP_GRO was added in the past but the implementation for
> getsockopt was missed which did lead to an error when we tried to
> retrieve the setting for UDP_GRO. This patch adds the missing switch
> case for UDP_GRO
>
> [...]
Here is the summary with links:
- [net] net: udp: Add support for getsockopt(..., ..., UDP_GRO, ..., ...);
https://git.kernel.org/netdev/net/c/98184612aca0
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-04-01 23:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-01 6:59 [PATCH net] net: udp: Add support for getsockopt(..., ..., UDP_GRO, ..., ...); Norman Maurer
2021-04-01 14:10 ` David Ahern
2021-04-01 23:00 ` patchwork-bot+netdevbpf
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.