search for: virtio_net_mac_alen

Displaying 2 results from an estimated 2 matches for "virtio_net_mac_alen".

2013 May 26
2
[Qemu-devel] [PATCH v2 00/11] qemu: use virtio linux headers in portable code
...tio. fuse.h even has a: #ifdef __KERNEL__ #include <linux/types.h> #else #include <stdint.h> #endif Which seems like a reasonable thing to do. The only other kernel dependency is linux/if_ether.h to define ETH_ALEN. But it seems completely reasonable to define a VIRTIO_NET_MAC_ALEN or something like that. This would make the virtio headers completely stand alone and includable in userspace (without violating C99). Perhaps it's even worth moving the headers from uapi/linux to uapi/virtio. Rusty, what do you think? Regards, Anhtony Liguori > > Paolo
2013 May 26
2
[Qemu-devel] [PATCH v2 00/11] qemu: use virtio linux headers in portable code
...tio. fuse.h even has a: #ifdef __KERNEL__ #include <linux/types.h> #else #include <stdint.h> #endif Which seems like a reasonable thing to do. The only other kernel dependency is linux/if_ether.h to define ETH_ALEN. But it seems completely reasonable to define a VIRTIO_NET_MAC_ALEN or something like that. This would make the virtio headers completely stand alone and includable in userspace (without violating C99). Perhaps it's even worth moving the headers from uapi/linux to uapi/virtio. Rusty, what do you think? Regards, Anhtony Liguori > > Paolo