Patch "net: udp: Add support for getsockopt(..., ..., UDP_GRO, ..., ...);" has been added to the 5.4-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    net: udp: Add support for getsockopt(..., ..., UDP_GRO, ..., ...);

to the 5.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     net-udp-add-support-for-getsockopt-.-.-udp_gro.patch
and it can be found in the queue-5.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 23960dbc172a65e328b0d87118eff899caad9b49
Author: Norman Maurer <norman_maurer@xxxxxxxxx>
Date:   Thu Apr 1 08:59:17 2021 +0200

    net: udp: Add support for getsockopt(..., ..., UDP_GRO, ..., ...);
    
    [ Upstream commit 98184612aca0a9ee42b8eb0262a49900ee9eef0d ]
    
    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@xxxxxxxxx>
    Reviewed-by: David Ahern <dsahern@xxxxxxxxxx>
    Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index 994a150ae3e9..24841a9e9966 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -2692,6 +2692,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:



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux