|
@@ -24,6 +24,7 @@
|
|
|
#include <linux/virtio.h>
|
|
|
#include <linux/virtio_net.h>
|
|
|
#include <linux/scatterlist.h>
|
|
|
+#include <linux/if_vlan.h>
|
|
|
|
|
|
static int napi_weight = 128;
|
|
|
module_param(napi_weight, int, 0444);
|
|
@@ -33,7 +34,7 @@ module_param(csum, bool, 0444);
|
|
|
module_param(gso, bool, 0444);
|
|
|
|
|
|
/* FIXME: MTU in config. */
|
|
|
-#define MAX_PACKET_LEN (ETH_HLEN+ETH_DATA_LEN)
|
|
|
+#define MAX_PACKET_LEN (ETH_HLEN + VLAN_HLEN + ETH_DATA_LEN)
|
|
|
#define GOOD_COPY_LEN 128
|
|
|
|
|
|
struct virtnet_info
|