diff options
Diffstat (limited to 'arch/um/drivers/daemon_user.c')
-rw-r--r-- | arch/um/drivers/daemon_user.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/arch/um/drivers/daemon_user.c b/arch/um/drivers/daemon_user.c index 90983d480ac6..f23c109a055c 100644 --- a/arch/um/drivers/daemon_user.c +++ b/arch/um/drivers/daemon_user.c | |||
@@ -19,8 +19,6 @@ | |||
19 | #include "um_malloc.h" | 19 | #include "um_malloc.h" |
20 | #include "user.h" | 20 | #include "user.h" |
21 | 21 | ||
22 | #define MAX_PACKET (ETH_MAX_PACKET + ETH_HEADER_OTHER) | ||
23 | |||
24 | enum request_type { REQ_NEW_CONTROL }; | 22 | enum request_type { REQ_NEW_CONTROL }; |
25 | 23 | ||
26 | #define SWITCH_MAGIC 0xfeedface | 24 | #define SWITCH_MAGIC 0xfeedface |
@@ -184,18 +182,13 @@ int daemon_user_write(int fd, void *buf, int len, struct daemon_data *pri) | |||
184 | return net_sendto(fd, buf, len, data_addr, sizeof(*data_addr)); | 182 | return net_sendto(fd, buf, len, data_addr, sizeof(*data_addr)); |
185 | } | 183 | } |
186 | 184 | ||
187 | static int daemon_set_mtu(int mtu, void *data) | ||
188 | { | ||
189 | return mtu; | ||
190 | } | ||
191 | |||
192 | const struct net_user_info daemon_user_info = { | 185 | const struct net_user_info daemon_user_info = { |
193 | .init = daemon_user_init, | 186 | .init = daemon_user_init, |
194 | .open = daemon_open, | 187 | .open = daemon_open, |
195 | .close = NULL, | 188 | .close = NULL, |
196 | .remove = daemon_remove, | 189 | .remove = daemon_remove, |
197 | .set_mtu = daemon_set_mtu, | ||
198 | .add_address = NULL, | 190 | .add_address = NULL, |
199 | .delete_address = NULL, | 191 | .delete_address = NULL, |
200 | .max_packet = MAX_PACKET - ETH_HEADER_OTHER | 192 | .mtu = ETH_MAX_PACKET, |
193 | .max_packet = ETH_MAX_PACKET + ETH_HEADER_OTHER, | ||
201 | }; | 194 | }; |