Michael S. Tsirkin
5eea84f478
if_tun: add TUNSETVNETLE/TUNGETVNETLE
...
ifreq flags field is only 16 bit wide, so setting IFF_VNET_LE there has
no effect:
doesn't fit in two bytes.
The tests passed apparently because they have an even number of bugs,
all cancelling out.
Luckily we didn't release a kernel with this flag, so it's
not too late to fix this.
Add TUNSETVNETLE/TUNGETVNETLE to really achieve the purpose
of IFF_VNET_LE.
This has an added benefit that if we ever want a BE flag,
we won't have to deal with weird configurations like
setting both LE and BE at the same time.
IFF_VNET_LE will be dropped in a follow-up patch.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2014-12-16 11:19:41 -05:00
..
2014-12-07 21:22:09 +01:00
2014-09-23 23:15:46 -07:00
2014-12-03 12:43:35 +01:00
2014-08-20 15:13:08 +02:00
2014-06-25 19:28:43 +02:00
2014-06-25 19:28:43 +02:00
2014-11-24 17:31:46 -05:00
2014-10-14 13:08:29 +11:00
2014-12-09 13:34:10 -05:00
2014-09-16 09:58:21 -05:00
2014-12-13 13:41:28 -08:00
2014-10-14 16:06:45 -04:00
2014-12-05 21:47:32 -08:00
2014-07-01 10:48:05 -06:00
2014-11-20 17:14:28 -08:00
2014-05-19 09:38:24 +02:00
2014-04-22 21:42:27 -04:00
2014-07-30 17:21:05 -07:00
2014-11-19 14:48:02 -06:00
2014-11-19 12:31:17 -05:00
2014-12-08 12:55:57 +08:00
2014-11-28 10:19:49 +00:00
2014-08-05 16:35:54 -07:00
2014-12-08 21:07:10 -05:00
2014-08-08 15:57:31 -07:00
2014-10-14 16:06:45 -04:00
2014-10-03 16:53:33 -07:00
2014-10-24 00:14:37 +02:00
2014-07-22 16:37:43 +02:00
2014-05-14 10:04:34 +01:00
2014-11-07 10:21:44 -08:00
2014-07-09 16:41:36 -07:00
2014-12-05 23:56:55 +08:00
2014-12-09 18:24:47 -05:00
2014-08-27 22:59:39 -07:00
2014-04-27 19:08:06 -04:00
2014-12-02 20:01:23 -08:00
2014-07-29 11:39:50 -07:00
2014-12-16 11:19:41 -05:00
2014-11-05 16:30:03 -05:00
2014-08-06 15:25:01 -07:00
2014-09-29 00:13:10 -04:00
2014-10-20 21:03:58 +02:00
2014-09-16 09:03:33 +09:00
2014-10-29 15:11:36 -04:00
2014-12-11 14:27:06 -08:00
2014-10-09 22:26:01 -04:00
2014-08-08 15:57:32 -07:00
2014-05-30 21:01:11 +02:00
2014-09-17 13:10:08 +02:00
2014-05-23 16:28:53 -04:00
2014-11-14 17:47:47 -02:00
2014-08-08 15:57:31 -07:00
2014-12-13 12:42:52 -08:00
2014-12-02 20:01:22 -08:00
2014-12-08 20:20:48 -05:00
2014-07-15 16:12:01 -07:00
2014-12-02 22:59:28 +01:00
2014-11-26 20:56:42 +01:00
2014-11-04 13:17:10 -07:00
2014-11-09 18:58:44 -08:00
2014-10-01 12:30:58 -06:00
2014-11-16 11:41:57 +01:00
2014-11-18 00:58:53 +01:00
2014-04-30 04:18:57 -07:00
2014-08-05 16:41:22 -04:00
2014-11-10 12:05:59 -05:00
2014-11-16 10:58:53 +01:00
2014-07-16 14:40:04 -07:00
2014-07-18 12:13:40 -07:00
2014-12-13 12:42:52 -08:00
2014-11-06 14:57:18 -08:00
2014-11-05 19:10:07 -08:00
2014-07-20 14:33:23 -07:00
2014-06-06 16:08:14 -07:00
2014-08-21 15:25:11 -05:00
2014-12-09 14:58:23 -05:00
2014-12-10 17:41:10 -08:00
2014-10-03 11:15:20 -07:00
2014-06-25 18:03:41 -07:00
2014-11-21 15:01:32 -05:00
2014-04-26 12:13:24 -04:00
2014-11-06 15:01:03 -08:00
2014-05-23 16:28:53 -04:00
2014-08-25 03:28:08 -05:00
2014-07-21 14:30:42 -07:00
2014-08-25 10:40:06 -07:00
2014-12-04 12:37:01 -02:00
2014-09-21 20:23:39 -03:00
2014-10-24 08:58:09 -02:00
2014-12-01 15:34:55 -02:00
2014-11-14 17:51:18 -02:00
2014-09-29 10:06:19 -06:00
2014-12-04 12:38:09 -02:00
2014-12-09 12:05:26 +02:00
2014-12-09 12:06:32 +02:00
2014-12-09 12:06:32 +02:00
2014-12-09 12:05:26 +02:00
2014-12-09 12:05:24 +02:00
2014-12-09 12:06:31 +02:00
2014-12-09 12:05:24 +02:00
2014-11-05 20:18:30 -08:00
2014-10-02 14:23:14 -04:00
2014-08-29 16:28:16 -07:00
2014-09-02 13:37:56 +02:00