Skip to content

Commit 125e985

Browse files
shemmingergregkh
authored andcommitted
virtio: don't expose u16 in userspace api
[ Upstream commit 77d21f2 ] 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 <[email protected]> Date: Fri Dec 7 07:04:56 2012 +0000 virtio_net: multiqueue support Signed-off-by: Stephen Hemminger <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 372ef96 commit 125e985

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/uapi/linux/virtio_net.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ struct virtio_net_ctrl_mac {
191191
* specified.
192192
*/
193193
struct virtio_net_ctrl_mq {
194-
u16 virtqueue_pairs;
194+
__u16 virtqueue_pairs;
195195
};
196196

197197
#define VIRTIO_NET_CTRL_MQ 4

0 commit comments

Comments
 (0)