[PATCH 4/6] tuntap: use common code for virtio_net_hdr and skb GSO conversion

2016-06-08 Thread Mike Rapoport
Replace open coded conversion between virtio_net_hdr to skb GSO info with virtio_net_hdr_{from,to}_skb Signed-off-by: Mike Rapoport --- drivers/net/tun.c | 97 --- 1 file changed, 21 insertions(+), 76 deletions(-) diff --git a/drivers/net

[PATCH 6/6] packet: use common code for virtio_net_hdr and skb GSO conversion

2016-06-08 Thread Mike Rapoport
Replace open coded conversion between virtio_net_hdr to skb GSO info with virtio_net_hdr_from_skb Signed-off-by: Mike Rapoport --- net/packet/af_packet.c | 36 ++-- 1 file changed, 2 insertions(+), 34 deletions(-) diff --git a/net/packet/af_packet.c b/net/packet

[PATCH 2/6] virtio_net: introduce virtio_net_hdr_{from,to}_skb

2016-06-08 Thread Mike Rapoport
The code for conversion between virtio_net_hdr and skb GSO info is duplicated at several places. Let's put it to a common place to allow reuse. Signed-off-by: Mike Rapoport --- include/linux/virtio_net.h | 101 + 1 file changed, 101 inser

[PATCH 5/6] virtio_net: use common code for virtio_net_hdr and skb GSO conversion

2016-06-08 Thread Mike Rapoport
Replace open coded conversion between virtio_net_hdr to skb GSO info with virtio_net_hdr_{from,to}_skb Signed-off-by: Mike Rapoport --- drivers/net/virtio_net.c | 78 +++- 1 file changed, 10 insertions(+), 68 deletions(-) diff --git a/drivers/net

[PATCH 3/6] macvtap: use common code for virtio_net_hdr and skb GSO conversion

2016-06-08 Thread Mike Rapoport
Replace open coded conversion between virtio_net_hdr to skb GSO info with virtio_net_hdr_{from,to}_skb Signed-off-by: Mike Rapoport --- drivers/net/macvtap.c | 95 --- 1 file changed, 6 insertions(+), 89 deletions(-) diff --git a/drivers/net

[PATCH 1/6] virtio_net: add _UAPI prefix to virtio_net header guards

2016-06-08 Thread Mike Rapoport
This gives better namespacing and prevents conflicts with no-uapi version of virtio_net header that will be introduced in the following patch. Signed-off-by: Mike Rapoport --- include/uapi/linux/virtio_net.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/uapi

[PATCH 0/6] virtio_net: use common code for virtio_net_hdr and skb GSO conversion

2016-06-08 Thread Mike Rapoport
Hi, This patches introduce virtio_net_hdr_{from,to}_skb functions for conversion of GSO information between skb and virtio_net_hdr. Mike Rapoport (6): virtio_net: add _UAPI prefix to virtio_net header guards virtio_net: introduce virtio_net_hdr_{from,to}_skb macvtap: use common code for

Re: [PATCH] tools/virtio/ringtest: add usage example to README

2016-06-05 Thread Mike Rapoport
Ping? On Tue, May 24, 2016 at 03:41:04PM +0300, Mike Rapoport wrote: > Michael, > > Any updates on this? > > On Wed, May 04, 2016 at 09:12:55AM +0300, Mike Rapoport wrote: > > Having typical usage example in the README file is more convinient than in > > the git his

Re: [PATCH v3] tools/virtio/ringtest: fix run-on-all.sh to work without /dev/cpu

2016-06-05 Thread Mike Rapoport
Ping? On Tue, May 24, 2016 at 03:41:33PM +0300, Mike Rapoport wrote: > Michael, > > Any updates on this? > > On Wed, May 04, 2016 at 01:15:50PM +0300, Mike Rapoport wrote: > > /dev/cpu is only available on x86 with certain modules (e.g. msr) enabled. > > Using lscpu

Re: [PATCH] tools/virtio/ringtest: add usage example to README

2016-05-24 Thread Mike Rapoport
Michael, Any updates on this? On Wed, May 04, 2016 at 09:12:55AM +0300, Mike Rapoport wrote: > Having typical usage example in the README file is more convinient than in > the git history... > > Signed-off-by: Mike Rapoport > --- > tools/virtio/ringtest/README | 4 &g

Re: [PATCH v3] tools/virtio/ringtest: fix run-on-all.sh to work without /dev/cpu

2016-05-24 Thread Mike Rapoport
Michael, Any updates on this? On Wed, May 04, 2016 at 01:15:50PM +0300, Mike Rapoport wrote: > /dev/cpu is only available on x86 with certain modules (e.g. msr) enabled. > Using lscpu to get processors count is more portable. > > Signed-off-by: Mike Rapoport > --- > v3: simpl

[PATCH v3] tools/virtio/ringtest: fix run-on-all.sh to work without /dev/cpu

2016-05-04 Thread Mike Rapoport
/dev/cpu is only available on x86 with certain modules (e.g. msr) enabled. Using lscpu to get processors count is more portable. Signed-off-by: Mike Rapoport --- v3: simplify by using lscpu -p=cpu v2: use lspcu instead of /proc/cpuinfo as per Cornelia's suggestion tools/virtio/ringtest/r

[PATCH v2] tools/virtio/ringtest: fix run-on-all.sh to work without /dev/cpu

2016-05-04 Thread Mike Rapoport
/dev/cpu is only available on x86 with certain modules (e.g. msr) enabled. Using lscpu to get processors count is more portable. Signed-off-by: Mike Rapoport --- v2: use lspcu instead of /proc/cpuinfo as per Cornelia's suggestion tools/virtio/ringtest/run-on-all.sh | 4 ++-- 1 file chang

[PATCH] tools/virtio/ringtest: fix run-on-all.sh to work without /dev/cpu

2016-05-04 Thread Mike Rapoport
/dev/cpu is only available on x86 with certain modules (e.g. msr) enabled. Using /proc/cpuinfo to get processors count is more portable. Signed-off-by: Mike Rapoport --- tools/virtio/ringtest/run-on-all.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/virtio

[PATCH] tools/virtio/ringtest: add usage example to README

2016-05-04 Thread Mike Rapoport
Having typical usage example in the README file is more convinient than in the git history... Signed-off-by: Mike Rapoport --- tools/virtio/ringtest/README | 4 1 file changed, 4 insertions(+) diff --git a/tools/virtio/ringtest/README b/tools/virtio/ringtest/README index 34e94c4..d83707a

[PATCH] virtio-gpu: fix compilation warnings

2015-09-02 Thread Mike Rapoport
bugfs.c: In function ‘virtio_gpu_debugfs_irq_info’: drivers/gpu/drm/virtio/virtgpu_debugfs.c:39:6: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘long long int’ [-Wformat=] vgdev->fence_drv.sync_seq); ^ Signed-off-by: Mike Rapoport --- drivers/gpu/drm/virti