diff options
author | Petr Štetiar <ynezz@true.cz> | 2020-04-07 10:08:16 +0200 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2020-04-09 00:12:46 +0200 |
commit | b299002877c801202c3b61d5e09865e88f506176 (patch) | |
tree | cf1d30e16b53a53e4d04630527f67b01eac38181 /target/linux/generic/pending-5.4/630-packet_socket_type.patch | |
parent | 196cab719f8f318ec771e5f1a07728c12b7fa207 (diff) | |
download | upstream-b299002877c801202c3b61d5e09865e88f506176.tar.gz upstream-b299002877c801202c3b61d5e09865e88f506176.tar.bz2 upstream-b299002877c801202c3b61d5e09865e88f506176.zip |
kernel: bump 5.4 to 5.4.31
Refreshed patches, removed upstreamed patches:
oxnas: 003-ARM-dts-oxnas-Fix-clear-mask-property.patch
generic: 184-USB-serial-option-add-Wistron-Neweb-D19Q1.patch
Run tested: apu2, qemu-x86-64, apalis
Build tested: sunxi/a53, imx6, x86/64, ipq40xx
Tested-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk> [apu2]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'target/linux/generic/pending-5.4/630-packet_socket_type.patch')
-rw-r--r-- | target/linux/generic/pending-5.4/630-packet_socket_type.patch | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/target/linux/generic/pending-5.4/630-packet_socket_type.patch b/target/linux/generic/pending-5.4/630-packet_socket_type.patch index fcd00ad666..622aada943 100644 --- a/target/linux/generic/pending-5.4/630-packet_socket_type.patch +++ b/target/linux/generic/pending-5.4/630-packet_socket_type.patch @@ -71,7 +71,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name> if (!net_eq(dev_net(dev), sock_net(sk))) goto drop; -@@ -2181,12 +2183,12 @@ static int tpacket_rcv(struct sk_buff *s +@@ -2182,12 +2184,12 @@ static int tpacket_rcv(struct sk_buff *s BUILD_BUG_ON(TPACKET_ALIGN(sizeof(*h.h2)) != 32); BUILD_BUG_ON(TPACKET_ALIGN(sizeof(*h.h3)) != 48); @@ -87,7 +87,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name> if (!net_eq(dev_net(dev), sock_net(sk))) goto drop; -@@ -3268,6 +3270,7 @@ static int packet_create(struct net *net +@@ -3279,6 +3281,7 @@ static int packet_create(struct net *net mutex_init(&po->pg_vec_lock); po->rollover = NULL; po->prot_hook.func = packet_rcv; @@ -95,7 +95,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name> if (sock->type == SOCK_PACKET) po->prot_hook.func = packet_rcv_spkt; -@@ -3901,6 +3904,16 @@ packet_setsockopt(struct socket *sock, i +@@ -3912,6 +3915,16 @@ packet_setsockopt(struct socket *sock, i po->xmit = val ? packet_direct_xmit : dev_queue_xmit; return 0; } @@ -112,7 +112,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name> default: return -ENOPROTOOPT; } -@@ -3957,6 +3970,13 @@ static int packet_getsockopt(struct sock +@@ -3968,6 +3981,13 @@ static int packet_getsockopt(struct sock case PACKET_VNET_HDR: val = po->has_vnet_hdr; break; @@ -128,7 +128,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name> break; --- a/net/packet/internal.h +++ b/net/packet/internal.h -@@ -133,6 +133,7 @@ struct packet_sock { +@@ -136,6 +136,7 @@ struct packet_sock { int (*xmit)(struct sk_buff *skb); struct packet_type prot_hook ____cacheline_aligned_in_smp; atomic_t tp_drops ____cacheline_aligned_in_smp; |