Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75be4372 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

net: gro: avoid double copy in skb_gro_receive()



__copy_skb_header(nskb, p) already copied p->cb[], no need to copy
it again.

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2ce297fc
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -3028,7 +3028,6 @@ int skb_gro_receive(struct sk_buff **head, struct sk_buff *skb)
	memcpy(skb_mac_header(nskb), skb_mac_header(p),
	       p->data - skb_mac_header(p));

	*NAPI_GRO_CB(nskb) = *NAPI_GRO_CB(p);
	skb_shinfo(nskb)->frag_list = p;
	skb_shinfo(nskb)->gso_size = pinfo->gso_size;
	pinfo->gso_size = 0;