sunrpc: do not pull udp headers on receive
Commite6afc8ace6
modified the udp receive path by pulling the udp header before queuing an skbuff onto the receive queue. Sunrpc also calls skb_recv_datagram to dequeue an skb from a udp socket. Modify this receive path to also no longer expect udp headers. Fixes:e6afc8ace6
("udp: remove headers from UDP packets before queueing") Reported-by: Franklin S Cooper Jr. <fcooper@ti.com> Signed-off-by: Willem de Bruijn <willemb@google.com> Tested-by: Thierry Reding <treding@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
a6db4494d2
commit
1da8c681d5
@@ -155,7 +155,7 @@ int csum_partial_copy_to_xdr(struct xdr_buf *xdr, struct sk_buff *skb)
|
||||
struct xdr_skb_reader desc;
|
||||
|
||||
desc.skb = skb;
|
||||
desc.offset = sizeof(struct udphdr);
|
||||
desc.offset = 0;
|
||||
desc.count = skb->len - desc.offset;
|
||||
|
||||
if (skb_csum_unnecessary(skb))
|
||||
|
Reference in New Issue
Block a user