mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
This commit is contained in:
commit
72438f8cef
136 changed files with 1494 additions and 806 deletions
|
|
@ -2715,10 +2715,12 @@ tpacket_error:
|
|||
}
|
||||
}
|
||||
|
||||
if (po->has_vnet_hdr && virtio_net_hdr_to_skb(skb, vnet_hdr,
|
||||
vio_le())) {
|
||||
tp_len = -EINVAL;
|
||||
goto tpacket_error;
|
||||
if (po->has_vnet_hdr) {
|
||||
if (virtio_net_hdr_to_skb(skb, vnet_hdr, vio_le())) {
|
||||
tp_len = -EINVAL;
|
||||
goto tpacket_error;
|
||||
}
|
||||
virtio_net_hdr_set_proto(skb, vnet_hdr);
|
||||
}
|
||||
|
||||
skb->destructor = tpacket_destruct_skb;
|
||||
|
|
@ -2915,6 +2917,7 @@ static int packet_snd(struct socket *sock, struct msghdr *msg, size_t len)
|
|||
if (err)
|
||||
goto out_free;
|
||||
len += sizeof(vnet_hdr);
|
||||
virtio_net_hdr_set_proto(skb, &vnet_hdr);
|
||||
}
|
||||
|
||||
skb_probe_transport_header(skb, reserve);
|
||||
|
|
|
|||
Loading…
Reference in a new issue