diff options
author | David S. Miller <davem@davemloft.net> | 2015-02-05 17:33:28 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-05 17:33:28 -0500 |
commit | 6e03f896b52cd2ca88942170c5c9c407ec0ede69 (patch) | |
tree | 48ca9a6efa5f99819667538838bab3679416f92c /drivers/vhost | |
parent | db79a621835ee91d3e10177abd97f48e0a4dcf9b (diff) | |
parent | 9d82f5eb3376cbae96ad36a063a9390de1694546 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts:
drivers/net/vxlan.c
drivers/vhost/net.c
include/linux/if_vlan.h
net/core/dev.c
The net/core/dev.c conflict was the overlap of one commit marking an
existing function static whilst another was adding a new function.
In the include/linux/if_vlan.h case, the type used for a local
variable was changed in 'net', whereas the function got rewritten
to fix a stacked vlan bug in 'net-next'.
In drivers/vhost/net.c, Al Viro's iov_iter conversions in 'net-next'
overlapped with an endainness fix for VHOST 1.0 in 'net'.
In drivers/net/vxlan.c, vxlan_find_vni() added a 'flags' parameter
in 'net-next' whereas in 'net' there was a bug fix to pass in the
correct network namespace pointer in calls to this function.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/vhost')
-rw-r--r-- | drivers/vhost/net.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index e022cc40303d..8dccca9013ed 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost/net.c | |||
@@ -528,9 +528,9 @@ static void handle_rx(struct vhost_net *net) | |||
528 | .msg_controllen = 0, | 528 | .msg_controllen = 0, |
529 | .msg_flags = MSG_DONTWAIT, | 529 | .msg_flags = MSG_DONTWAIT, |
530 | }; | 530 | }; |
531 | struct virtio_net_hdr hdr = { | 531 | struct virtio_net_hdr_mrg_rxbuf hdr = { |
532 | .flags = 0, | 532 | .hdr.flags = 0, |
533 | .gso_type = VIRTIO_NET_HDR_GSO_NONE | 533 | .hdr.gso_type = VIRTIO_NET_HDR_GSO_NONE |
534 | }; | 534 | }; |
535 | size_t total_len = 0; | 535 | size_t total_len = 0; |
536 | int err, mergeable; | 536 | int err, mergeable; |
@@ -614,11 +614,11 @@ static void handle_rx(struct vhost_net *net) | |||
614 | vq->iov->iov_base); | 614 | vq->iov->iov_base); |
615 | break; | 615 | break; |
616 | } | 616 | } |
617 | /* Supply (or replace) ->num_buffers if VIRTIO_NET_F_MRG_RXBUF | 617 | /* TODO: Should check and handle checksum. */ |
618 | * TODO: Should check and handle checksum. | 618 | |
619 | */ | 619 | hdr.num_buffers = cpu_to_vhost16(vq, headcount); |
620 | if (likely(mergeable) && | 620 | if (likely(mergeable) && |
621 | copy_to_iter(&headcount, 2, &fixup) != 2) { | 621 | copy_to_iter(&hdr.num_buffers, 2, &fixup) != 2) { |
622 | vq_err(vq, "Failed num_buffers write"); | 622 | vq_err(vq, "Failed num_buffers write"); |
623 | vhost_discard_vq_desc(vq, headcount); | 623 | vhost_discard_vq_desc(vq, headcount); |
624 | break; | 624 | break; |