aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/os-Linux/drivers/tuntap_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/os-Linux/drivers/tuntap_user.c')
-rw-r--r--arch/um/os-Linux/drivers/tuntap_user.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/arch/um/os-Linux/drivers/tuntap_user.c b/arch/um/os-Linux/drivers/tuntap_user.c
index 10714a413cfd..6c55d3c8ead8 100644
--- a/arch/um/os-Linux/drivers/tuntap_user.c
+++ b/arch/um/os-Linux/drivers/tuntap_user.c
@@ -18,8 +18,6 @@
18#include "tuntap.h" 18#include "tuntap.h"
19#include "user.h" 19#include "user.h"
20 20
21#define MAX_PACKET ETH_MAX_PACKET
22
23static int tuntap_user_init(void *data, void *dev) 21static int tuntap_user_init(void *data, void *dev)
24{ 22{
25 struct tuntap_data *pri = data; 23 struct tuntap_data *pri = data;
@@ -206,18 +204,13 @@ static void tuntap_close(int fd, void *data)
206 pri->fd = -1; 204 pri->fd = -1;
207} 205}
208 206
209static int tuntap_set_mtu(int mtu, void *data)
210{
211 return mtu;
212}
213
214const struct net_user_info tuntap_user_info = { 207const struct net_user_info tuntap_user_info = {
215 .init = tuntap_user_init, 208 .init = tuntap_user_init,
216 .open = tuntap_open, 209 .open = tuntap_open,
217 .close = tuntap_close, 210 .close = tuntap_close,
218 .remove = NULL, 211 .remove = NULL,
219 .set_mtu = tuntap_set_mtu,
220 .add_address = tuntap_add_addr, 212 .add_address = tuntap_add_addr,
221 .delete_address = tuntap_del_addr, 213 .delete_address = tuntap_del_addr,
222 .max_packet = MAX_PACKET 214 .mtu = ETH_MAX_PACKET,
215 .max_packet = ETH_MAX_PACKET + ETH_HEADER_OTHER,
223}; 216};