/* length of time (or less) we expect pending descriptors to be marked * as VIO_DESC_DONE and skbs ready to be freed
*/ #define VNET_CLEAN_TIMEOUT ((HZ / 100) + 1)
#define VNET_MINTSO 2048 /* VIO protocol's minimum TSO len */ #define VNET_MAXTSO 65535 /* VIO protocol's maximum TSO len */
#define VNET_MAX_MTU 65535
/* VNET packets are sent in buffers with the first 6 bytes skipped * so that after the ethernet header the IPv4/IPv6 headers are aligned * properly.
*/ #define VNET_PACKET_SKIP 6
/* Structure to describe a vnet-port or vsw-port in the MD. * If the vsw bit is set, this structure represents a vswitch * port, and the net_device can be found from ->dev. If the * vsw bit is not set, the net_device is available from ->vp->dev. * See the VNET_PORT_TO_NET_DEVICE macro below.
*/ struct vnet_port { struct vio_driver_state vio;
/* Def used by common code to get the net_device from the proper location */ #define VNET_PORT_TO_NET_DEVICE(__port) \
((__port)->vsw ? (__port)->dev : (__port)->vp->dev)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.