| Branch: | Revision:

root / net @ feature-archipelago

Name Size
Makefile.objs 519 Bytes
checksum.c 3 kB
clients.h 2.2 kB
dump.c 4.7 kB
eth.c 6.1 kB
hub.c 8.2 kB
hub.h 647 Bytes
net.c 32.8 kB
netmap.c 13 kB
queue.c 7.8 kB
slirp.c 22 kB
socket.c 21.2 kB
tap-aix.c 1.9 kB
tap-bsd.c 3.7 kB
tap-haiku.c 1.9 kB
tap-linux.c 7.5 kB
tap-linux.h 1.7 kB
tap-solaris.c 6.4 kB
tap-win32.c 21.8 kB
tap.c 23.4 kB
tap_int.h 1.9 kB
util.c 1.9 kB
util.h 1.3 kB
vde.c 3.5 kB

Latest revisions

# Date Author Comment
d6085e3a 02/25/2014 03:31 pm Stefan Hajnoczi

net: remove implicit peer from offload API

The virtio_net offload APIs are used on the NIC's peer (i.e. the tap
device). The API was defined to implicitly use nc->peer, saving the
caller the trouble.

This wasn't ideal because:
1. There are callers who have the peer but not the NIC. Currently they...

1f55ac45 02/25/2014 12:50 pm Vincenzo Maffione

net: extend NetClientInfo for offloading

Some new callbacks have been added to generalize the operations done
by virtio-net and vmxnet3 frontends to manipulate TAP offloadings.

Signed-off-by: Vincenzo Maffione <>
Signed-off-by: Stefan Hajnoczi <>

2e753bcc 02/25/2014 12:50 pm Vincenzo Maffione

net: TAP uses NetClientInfo offloading callbacks

The TAP NetClientInfo structure is inizialized with the TAP-specific
functions that manipulates offloading features.

Signed-off-by: Vincenzo Maffione <>
Signed-off-by: Stefan Hajnoczi <>

3bac80d3 02/25/2014 12:50 pm Vincenzo Maffione

net: make tap offloading callbacks static

Since TAP offloadings are manipulated through a new API, it's
not necessary to export them in include/net/tap.h anymore.

Signed-off-by: Vincenzo Maffione <>
Signed-off-by: Stefan Hajnoczi <>

f6c65bfb 02/25/2014 12:50 pm Vincenzo Maffione

net: add offloading support to netmap backend

Whit this patch, the netmap backend supports TSO/UFO/CSUM
offloadings, and accepts the virtio-net header, similarly to what
happens with TAP. The offloading callbacks in the NetClientInfo
interface have been implemented....

0a985b37 02/25/2014 12:50 pm Vincenzo Maffione

net: Disable netmap backend when not supported

This patch fixes configure so that the netmap backend is not compiled in if the
host doesn't support an API version >= 11. A version upper bound (15) has been
added so that the netmap API can be extended with some minor features without...

e96dfd11 02/25/2014 12:50 pm Vincenzo Maffione

net: change vnet-hdr TAP prototypes

The tap_has_vnet_hdr() and tap_has_vnet_hdr_len() functions used
to return int, even though they only return true/false values.
This patch changes the prototypes to return bool.

Signed-off-by: Vincenzo Maffione <>...

84d18f06 02/17/2014 06:57 pm Markus Armbruster

Use error_is_set() only when necessary

error_is_set(&var) is the same as var != NULL, but it takes
whole-program analysis to figure that out. Unnecessarily hard for
optimizers, static checkers, and human readers. Dumb it down to

Gets rid of several dozen Coverity false positives....

4bf2c138 01/27/2014 04:44 pm Hani Benhabiles

net: Use g_strdup_printf instead of snprintf.

assign_name() in net/net.c is using snprintf + g_strdup to get the same
result as g_strdup_printf.

Signed-off-by: Hani Benhabiles <>
Signed-off-by: Stefan Hajnoczi <>

1f149e72 01/27/2014 04:44 pm Kusanagi Kouichi

tap-linux: Get features once and use it many times

Signed-off-by: Kusanagi Kouichi <>
Signed-off-by: Stefan Hajnoczi <>

View revisions

Also available in: Atom