Skip to content

Commit

Permalink
virtio: don't expose u16 in userspace api
Browse files Browse the repository at this point in the history
Programs using virtio headers outside of kernel will no longer
build because u16 type does not exist in userspace. All user ABI
must use __u16 typedef instead.

Bug introduce by:
  commit 986a4f4
  Author: Jason Wang <jasowang@redhat.com>
  Date:   Fri Dec 7 07:04:56 2012 +0000

    virtio_net: multiqueue support

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
stephen hemminger authored and David S. Miller committed May 5, 2013
1 parent f8ce1fa commit 77d21f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/uapi/linux/virtio_net.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ struct virtio_net_ctrl_mac {
* specified.
*/
struct virtio_net_ctrl_mq {
u16 virtqueue_pairs;
__u16 virtqueue_pairs;
};

#define VIRTIO_NET_CTRL_MQ 4
Expand Down

0 comments on commit 77d21f2

Please sign in to comment.