search for: iff_vnet_hdr

Displaying 20 results from an estimated 51 matches for "iff_vnet_hdr".

2008 Aug 13
1
[PATCH 1/1] tun: TUNGETIFF interface to query name and flags
Rusty/Max, While adding support to KVM for IFF_VNET_HDR it became apparent that we need some way of querying a file descriptor for whether IFF_VNET_HDR has been set. Basically, some apps like libvirt open the tap fd, connect the interface to the appropriate bridge and pass the fd to kvm via the command line. So, those apps need to set IFF_VNET_HDR an...
2008 Aug 13
1
[PATCH 1/1] tun: TUNGETIFF interface to query name and flags
Rusty/Max, While adding support to KVM for IFF_VNET_HDR it became apparent that we need some way of querying a file descriptor for whether IFF_VNET_HDR has been set. Basically, some apps like libvirt open the tap fd, connect the interface to the appropriate bridge and pass the fd to kvm via the command line. So, those apps need to set IFF_VNET_HDR an...
2011 Dec 05
8
[net-next RFC PATCH 0/5] Series short description
multiple queue virtio-net: flow steering through host/guest cooperation Hello all: This is a rough series adds the guest/host cooperation of flow steering support based on Krish Kumar's multiple queue virtio-net driver patch 3/3 (http://lwn.net/Articles/467283/). This idea is simple, the backend pass the rxhash to the guest and guest would tell the backend the hash to queue mapping when
2011 Dec 05
8
[net-next RFC PATCH 0/5] Series short description
multiple queue virtio-net: flow steering through host/guest cooperation Hello all: This is a rough series adds the guest/host cooperation of flow steering support based on Krish Kumar's multiple queue virtio-net driver patch 3/3 (http://lwn.net/Articles/467283/). This idea is simple, the backend pass the rxhash to the guest and guest would tell the backend the hash to queue mapping when
2020 Sep 22
2
consuming pre-created tap - with multiqueue
...e to create tap device tap0: Invalid argument') ``` After digging a bit on the libvirt code (we're using libvirt 6.0.0), I see this on the logs (immediately before the error): {"component":"virt-launcher","level":"info","msg":"Enabling IFF_VNET_HDR","pos":"virNetDevProbeVnetHdr:190","subcomponent":"libvirt","thread":"33" ,"timestamp":"2020-09-22T10:34:29.335000Z"} I do not understand how it can try to set the VNET_HDR flag, since I have not set it when I cre...
2013 Oct 16
2
libvirtError: Unable to add bridge br0 port vnet0: Operation not supported
...000003d8-fa163e0b07a7'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> and instance fails to start with: 2013-10-16 11:16:13.004+0000: 11943: info : virNetDevProbeVnetHdr:122 : Enabling IFF_VNET_HDR 2013-10-16 11:16:13.105+0000: 11943: error : virNetDevBridgeAddPort:370 : Unable to add bridge br0 port vnet0: Operation not supported If I add <virtualport type='openvswitch' /> inside <interface type='bridge'>...</interface> it seems to work fine. Is it nova-net...
2015 Apr 21
2
[PATCH v4 8/8] macvtap/tun: add VNET_BE flag
...t;Virtual ethernet pair device" > ---help--- > diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c > index 0a03a66..e0ab1b7 100644 > --- a/drivers/net/macvtap.c > +++ b/drivers/net/macvtap.c > @@ -48,12 +48,27 @@ struct macvtap_queue { > #define MACVTAP_FEATURES (IFF_VNET_HDR | IFF_MULTI_QUEUE) > > #define MACVTAP_VNET_LE 0x80000000 > +#define MACVTAP_VNET_BE 0x40000000 > + > +#ifdef CONFIG_TUN_VNET_BE > +static inline bool macvtap_legacy_is_little_endian(struct macvtap_queue *q) > +{ > + if (q->flags & MACVTAP_VNET_BE) > + return f...
2015 Apr 21
2
[PATCH v4 8/8] macvtap/tun: add VNET_BE flag
...t;Virtual ethernet pair device" > ---help--- > diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c > index 0a03a66..e0ab1b7 100644 > --- a/drivers/net/macvtap.c > +++ b/drivers/net/macvtap.c > @@ -48,12 +48,27 @@ struct macvtap_queue { > #define MACVTAP_FEATURES (IFF_VNET_HDR | IFF_MULTI_QUEUE) > > #define MACVTAP_VNET_LE 0x80000000 > +#define MACVTAP_VNET_BE 0x40000000 > + > +#ifdef CONFIG_TUN_VNET_BE > +static inline bool macvtap_legacy_is_little_endian(struct macvtap_queue *q) > +{ > + if (q->flags & MACVTAP_VNET_BE) > + return f...
2020 Sep 23
1
Re: consuming pre-created tap - with multiqueue
...; ``` > > > > After digging a bit on the libvirt code (we're using libvirt 6.0.0), I > > see this on the logs (immediately before the error): > > {"component":"virt-launcher","level":"info","msg":"Enabling > > IFF_VNET_HDR","pos":"virNetDevProbeVnetHdr:190","subcomponent":"libvirt","thread":"33" > > ,"timestamp":"2020-09-22T10:34:29.335000Z"} > > > > I do not understand how it can try to set the VNET_HDR flag, sinc...
2015 Apr 10
0
[PATCH v4 8/8] macvtap/tun: add VNET_BE flag
...y N. + config VETH tristate "Virtual ethernet pair device" ---help--- diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c index 0a03a66..e0ab1b7 100644 --- a/drivers/net/macvtap.c +++ b/drivers/net/macvtap.c @@ -48,12 +48,27 @@ struct macvtap_queue { #define MACVTAP_FEATURES (IFF_VNET_HDR | IFF_MULTI_QUEUE) #define MACVTAP_VNET_LE 0x80000000 +#define MACVTAP_VNET_BE 0x40000000 + +#ifdef CONFIG_TUN_VNET_BE +static inline bool macvtap_legacy_is_little_endian(struct macvtap_queue *q) +{ + if (q->flags & MACVTAP_VNET_BE) + return false; + return virtio_legacy_is_little_endian...
2015 Apr 24
0
[PATCH v6 8/8] macvtap/tun: cross-endian support for little-endian hosts
...y N. + config VETH tristate "Virtual ethernet pair device" ---help--- diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c index 0327d9d..dc0a47c 100644 --- a/drivers/net/macvtap.c +++ b/drivers/net/macvtap.c @@ -48,11 +48,60 @@ struct macvtap_queue { #define MACVTAP_FEATURES (IFF_VNET_HDR | IFF_MULTI_QUEUE) #define MACVTAP_VNET_LE 0x80000000 +#define MACVTAP_VNET_BE 0x40000000 + +#ifdef CONFIG_TUN_VNET_CROSS_LE +static inline bool macvtap_legacy_is_little_endian(struct macvtap_queue *q) +{ + return q->flags & MACVTAP_VNET_BE ? false : + virtio_legacy_is_little_endian(); +...
2018 Sep 06
1
[PATCH net-next 10/11] tap: accept an array of XDP buffs through sendmsg()
...ruct xdp_buff *xdp) > +{ > + struct virtio_net_hdr *gso = xdp->data_hard_start + sizeof(int); > + int buflen = *(int *)xdp->data_hard_start; > + int vnet_hdr_len = 0; > + struct tap_dev *tap; > + struct sk_buff *skb; > + int err, depth; > + > + if (q->flags & IFF_VNET_HDR) > + vnet_hdr_len = READ_ONCE(q->vnet_hdr_sz); > + > + skb = build_skb(xdp->data_hard_start, buflen); > + if (!skb) { > + err = -ENOMEM; > + goto err; > + } So fundamentally why is it called XDP? We just build and skb, don't we? > + > + skb_reserve(skb, xdp...
2015 Apr 21
0
[PATCH v4 8/8] macvtap/tun: add VNET_BE flag
...; > > ---help--- > > diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c > > index 0a03a66..e0ab1b7 100644 > > --- a/drivers/net/macvtap.c > > +++ b/drivers/net/macvtap.c > > @@ -48,12 +48,27 @@ struct macvtap_queue { > > #define MACVTAP_FEATURES (IFF_VNET_HDR | IFF_MULTI_QUEUE) > > > > #define MACVTAP_VNET_LE 0x80000000 > > +#define MACVTAP_VNET_BE 0x40000000 > > + > > +#ifdef CONFIG_TUN_VNET_BE > > +static inline bool macvtap_legacy_is_little_endian(struct macvtap_queue *q) > > +{ > > + if (q->flags...
2020 Sep 23
0
Re: consuming pre-created tap - with multiqueue
...nvalid argument') > ``` > > After digging a bit on the libvirt code (we're using libvirt 6.0.0), I > see this on the logs (immediately before the error): > {"component":"virt-launcher","level":"info","msg":"Enabling > IFF_VNET_HDR","pos":"virNetDevProbeVnetHdr:190","subcomponent":"libvirt","thread":"33" > ,"timestamp":"2020-09-22T10:34:29.335000Z"} > > I do not understand how it can try to set the VNET_HDR flag, since I > have n...
2013 Oct 16
0
Re: libvirtError: Unable to add bridge br0 port vnet0: Operation not supported
...<address type='pci' domain='0x0000' bus='0x00' slot='0x03' > function='0x0'/> > </interface> > > and instance fails to start with: > > 2013-10-16 11:16:13.004+0000: 11943: info : virNetDevProbeVnetHdr:122 : > Enabling IFF_VNET_HDR > 2013-10-16 11:16:13.105+0000: 11943: error : virNetDevBridgeAddPort:370 : > Unable to add bridge br0 port vnet0: Operation not supported > > If I add <virtualport type='openvswitch' /> inside <interface > type='bridge'>...</interface> it seems to...
2018 Sep 06
0
[PATCH net-next 10/11] tap: accept an array of XDP buffs through sendmsg()
...int tap_get_user_xdp(struct tap_queue *q, struct xdp_buff *xdp) +{ + struct virtio_net_hdr *gso = xdp->data_hard_start + sizeof(int); + int buflen = *(int *)xdp->data_hard_start; + int vnet_hdr_len = 0; + struct tap_dev *tap; + struct sk_buff *skb; + int err, depth; + + if (q->flags & IFF_VNET_HDR) + vnet_hdr_len = READ_ONCE(q->vnet_hdr_sz); + + skb = build_skb(xdp->data_hard_start, buflen); + if (!skb) { + err = -ENOMEM; + goto err; + } + + skb_reserve(skb, xdp->data - xdp->data_hard_start); + skb_put(skb, xdp->data_end - xdp->data); + + skb_set_network_header(skb, ETH_...
2018 Nov 15
1
libvirt call qemu to create vm need more than 10 seconds
...22:30.131+0000: 95225: debug : virCPUCheckFeature:817 : arch=x86_64, cpu=0x7f822c00c090, feature=svm Line 58723: 2018-11-13 14:22:30.131+0000: 95225: info : virObjectRef:296 : OBJECT_REF: obj=0x7f81f80166f0 Line 58724: 2018-11-13 14:22:30.131+0000: 95225: info : virNetDevProbeVnetHdr:208 : Enabling IFF_VNET_HDR Line 58772: 2018-11-13 14:22:30.132+0000: 95225: debug : virNetDevSetMACInternal:277 : SIOCSIFHWADDR vnet0 MAC=fe:54:00:28:29:1d - Success Line 58773: 2018-11-13 14:22:30.132+0000: 95225: debug : virFileClose:110 : Closed fd 25 Line 58775: 2018-11-13 14:22:30.132+0000: 95225: debug : virFileClose:1...
2008 Jul 23
2
[PULL] lguest and virtio patches
...aptive timeout virtio: Formally reserve bits 28-31 to be 'transport' features. virtio: Rename set_features to finalize_features virtio: Add transport feature handling stub for virtio_ring. lguest: Remove 'network: no dma buffer!' warning lguest: Use GSO/IFF_VNET_HDR extensions on tun/tap lguest: Enlarge virtio rings lguest: turn Waker into a thread, not a process Documentation/lguest/lguest.c | 531 ++++++++++++++++++++++++-------- arch/s390/Kconfig | 1 + arch/s390/kernel/setup.c | 4 +- arch/x86/l...
2008 Jul 23
2
[PULL] lguest and virtio patches
...aptive timeout virtio: Formally reserve bits 28-31 to be 'transport' features. virtio: Rename set_features to finalize_features virtio: Add transport feature handling stub for virtio_ring. lguest: Remove 'network: no dma buffer!' warning lguest: Use GSO/IFF_VNET_HDR extensions on tun/tap lguest: Enlarge virtio rings lguest: turn Waker into a thread, not a process Documentation/lguest/lguest.c | 531 ++++++++++++++++++++++++-------- arch/s390/Kconfig | 1 + arch/s390/kernel/setup.c | 4 +- arch/x86/l...
2014 Jun 15
2
Re: ERROR: Domain not found: no domain with matching name 'ubuntu'
...#39; to connect to an already opened TAP interface use 'sndbuf=nbytes' to limit the size of the send buffer (the default is disabled 'sndbuf=0' to enable flow control set 'sndbuf=1048576') use vnet_hdr=off to avoid enabling the IFF_VNET_HDR tap flag use vnet_hdr=on to make the lack of IFF_VNET_HDR support an error condition use vhost=on to enable experimental in kernel accelerator (only has effect for virtio guests which use MSIX) use vhostforce=on to force vhost on f...