aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/drivers/vde_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/drivers/vde_user.c')
-rw-r--r--arch/um/drivers/vde_user.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/arch/um/drivers/vde_user.c b/arch/um/drivers/vde_user.c
index 7533cd3cbba4..d9941fe5f931 100644
--- a/arch/um/drivers/vde_user.c
+++ b/arch/um/drivers/vde_user.c
@@ -12,8 +12,6 @@
12#include "user.h" 12#include "user.h"
13#include "vde.h" 13#include "vde.h"
14 14
15#define MAX_PACKET (ETH_MAX_PACKET + ETH_HEADER_OTHER)
16
17static int vde_user_init(void *data, void *dev) 15static int vde_user_init(void *data, void *dev)
18{ 16{
19 struct vde_data *pri = data; 17 struct vde_data *pri = data;
@@ -65,20 +63,15 @@ static void vde_remove(void *data)
65 printk(UM_KERN_WARNING "vde_remove - we have no VDECONN to remove"); 63 printk(UM_KERN_WARNING "vde_remove - we have no VDECONN to remove");
66} 64}
67 65
68static int vde_set_mtu(int mtu, void *data)
69{
70 return mtu;
71}
72
73const struct net_user_info vde_user_info = { 66const struct net_user_info vde_user_info = {
74 .init = vde_user_init, 67 .init = vde_user_init,
75 .open = vde_user_open, 68 .open = vde_user_open,
76 .close = NULL, 69 .close = NULL,
77 .remove = vde_remove, 70 .remove = vde_remove,
78 .set_mtu = vde_set_mtu,
79 .add_address = NULL, 71 .add_address = NULL,
80 .delete_address = NULL, 72 .delete_address = NULL,
81 .max_packet = MAX_PACKET - ETH_HEADER_OTHER 73 .mtu = ETH_MAX_PACKET,
74 .max_packet = ETH_MAX_PACKET + ETH_HEADER_OTHER,
82}; 75};
83 76
84void vde_init_libstuff(struct vde_data *vpri, struct vde_init *init) 77void vde_init_libstuff(struct vde_data *vpri, struct vde_init *init)