Mahesh Bandewar
4fbae7d83c
ipvlan: Introduce l3s mode
...
In a typical IPvlan L3 setup where master is in default-ns and
each slave is into different (slave) ns. In this setup egress
packet processing for traffic originating from slave-ns will
hit all NF_HOOKs in slave-ns as well as default-ns. However same
is not true for ingress processing. All these NF_HOOKs are
hit only in the slave-ns skipping them in the default-ns.
IPvlan in L3 mode is restrictive and if admins want to deploy
iptables rules in default-ns, this asymmetric data path makes it
impossible to do so.
This patch makes use of the l3_rcv() (added as part of l3mdev
enhancements) to perform input route lookup on RX packets without
changing the skb->dev and then uses nf_hook at NF_INET_LOCAL_IN
to change the skb->dev just before handing over skb to L4.
Signed-off-by: Mahesh Bandewar <maheshb@google.com >
CC: David Ahern <dsa@cumulusnetworks.com >
Reviewed-by: David Ahern <dsa@cumulusnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-09-19 01:25:22 -04:00
..
2016-03-17 15:09:34 -07:00
2016-06-17 15:39:46 +02:00
2015-11-19 08:18:38 -02:00
2016-05-29 20:03:21 +01:00
2015-10-26 16:00:00 +01:00
2016-09-06 12:45:26 -07:00
2015-11-23 17:54:38 +01:00
2015-11-23 17:54:38 +01:00
2015-11-23 17:54:38 +01:00
2015-11-23 17:54:38 +01:00
2016-01-06 11:39:53 +11:00
2016-09-15 19:33:47 -04:00
2016-04-19 04:33:15 +09:00
2015-12-10 12:33:23 +01:00
2016-08-22 16:25:15 -07:00
2016-06-27 15:02:46 -04:00
2016-03-15 16:55:16 -07:00
2016-03-15 16:55:16 -07:00
2016-08-09 07:54:43 +02:00
2015-09-29 13:37:04 -07:00
2016-09-02 10:46:44 -07:00
2016-09-02 10:46:44 -07:00
2016-04-28 11:06:41 +02:00
2016-07-26 13:52:25 +02:00
2016-08-02 17:31:41 -04:00
2016-05-03 14:59:30 -07:00
2016-06-23 18:29:56 +08:00
2016-07-02 14:40:40 -04:00
2015-08-25 14:41:50 -05:00
2016-07-20 23:49:49 -04:00
2016-02-12 16:01:32 +01:00
2016-02-08 11:21:50 +11:00
2016-07-20 12:37:39 -07:00
2016-08-05 09:00:54 -04:00
2016-08-29 00:27:34 -04:00
2016-01-20 17:09:18 -08:00
2016-06-08 11:36:02 -07:00
2016-05-23 11:18:01 -07:00
2016-06-30 13:10:49 +02:00
2016-04-26 12:00:49 -04:00
2016-02-11 09:53:19 -05:00
2015-12-14 12:19:37 -06:00
2016-06-15 09:29:17 +02:00
2015-07-23 17:48:43 -07:00
2016-06-07 16:25:49 -07:00
2015-12-20 15:27:12 +02:00
2015-12-14 19:12:21 -08:00
2015-10-23 23:26:43 +02:00
2016-06-17 13:24:05 +02:00
2016-06-18 22:11:39 -07:00
2015-09-23 08:44:22 +02:00
2016-08-18 23:18:42 -07:00
2016-07-19 20:49:16 -07:00
2016-09-19 01:25:22 -04:00
2016-07-25 10:55:39 -07:00
2015-08-17 14:22:48 -07:00
2016-08-22 16:25:14 -07:00
2016-08-22 16:25:15 -07:00
2016-09-17 10:13:07 -04:00
2016-05-09 21:29:31 -04:00
2016-04-26 01:27:07 -04:00
2016-06-27 15:02:51 -04:00
2015-06-29 18:56:21 -07:00
2016-09-08 16:13:09 -07:00
2016-06-29 09:51:03 -07:00
2016-06-18 10:32:28 -07:00
2016-04-25 15:09:11 -04:00
2016-02-11 04:27:35 -05:00
2016-04-26 11:47:41 -04:00
2016-08-22 16:25:15 -07:00
2016-09-02 10:46:44 -07:00
2016-03-09 16:36:14 -05:00
2016-03-22 15:36:02 -07:00
2015-09-10 13:29:01 -07:00
2016-03-04 16:10:36 -05:00
2016-06-27 16:31:25 +01:00
2016-04-12 19:54:58 +01:00
2016-08-04 13:59:56 +02:00
2016-04-25 15:09:10 -04:00
2016-08-22 16:25:15 -07:00
2016-01-12 08:21:18 -07:00
2016-07-11 10:49:52 -03:00
2015-09-23 11:01:16 -06:00
2016-04-23 20:13:24 -04:00
2016-07-26 16:19:19 -07:00
2016-06-28 12:06:20 -03:00
2015-08-03 17:30:00 -07:00
2015-09-11 15:21:34 -07:00
2015-10-04 12:54:54 +01:00
2016-08-12 16:57:20 -07:00
2015-07-21 10:39:05 -07:00
2015-08-03 22:35:00 -07:00
2016-03-04 16:10:36 -05:00
2015-11-23 15:06:38 -05:00
2016-06-20 11:19:34 -07:00
2016-04-23 20:13:24 -04:00
2016-04-04 15:50:30 -04:00
2016-03-13 21:54:44 -04:00
2015-11-23 17:54:38 +01:00
2016-06-16 14:00:50 -07:00
2016-02-18 11:42:18 -05:00
2015-10-27 03:55:10 +01:00
2015-08-27 19:44:53 -04:00
2015-11-23 21:53:08 -05:00
2015-07-20 14:58:46 -04:00
2016-08-02 19:35:21 -04:00
2016-08-02 19:35:21 -04:00
2016-07-06 15:04:52 +02:00
2016-05-17 17:14:21 -06:00
2016-09-08 17:10:27 -07:00
2016-05-03 10:39:24 -05:00
2016-05-30 12:41:44 -03:00
2016-09-15 20:27:23 -04:00
2016-05-08 23:49:38 -04:00
2015-10-21 14:46:56 -06:00
2015-09-04 16:54:41 -07:00
2015-10-02 14:35:17 +01:00
2016-03-03 14:23:43 -08:00
2015-10-27 19:55:13 -07:00
2016-05-08 23:46:14 -04:00
2016-04-26 12:00:48 -04:00
2016-02-24 09:04:25 +01:00
2016-08-02 19:35:31 -04:00
2016-05-05 17:38:53 -07:00
2016-04-26 12:00:49 -04:00
2016-02-16 13:04:58 -05:00
2015-10-04 12:54:54 +01:00
2015-10-12 14:20:06 +01:00
2016-08-08 12:51:58 -07:00
2015-09-04 16:54:41 -07:00
2016-05-20 20:57:27 -07:00
2015-12-13 19:59:48 -08:00
2016-07-12 13:42:10 -03:00
2016-05-04 08:34:14 +02:00
2016-08-25 16:43:11 -07:00
2016-04-04 22:11:20 -04:00
2016-01-05 16:44:06 -05:00
2016-03-30 12:50:17 +02:00
2015-10-04 20:28:58 +01:00
2016-05-05 17:38:53 -07:00
2016-04-29 17:37:10 -07:00
2016-08-02 17:31:41 -04:00
2016-03-10 21:49:09 -08:00
2016-04-23 20:13:24 -04:00
2016-06-30 08:15:31 -04:00
2016-08-26 21:38:41 -07:00
2016-07-26 14:26:42 -07:00
2015-07-24 14:15:10 -07:00
2016-04-30 09:26:55 -07:00
2016-05-10 12:25:04 -04:00
2015-12-18 17:48:51 -08:00
2016-03-05 12:05:01 -08:00
2015-10-01 21:42:35 -04:00
2015-10-27 18:55:31 -07:00
2016-05-20 17:58:30 -07:00
2016-02-01 08:47:05 -02:00
2016-02-19 08:10:35 -02:00
2016-04-25 10:19:56 -03:00
2016-02-22 16:10:09 -07:00
2016-08-02 16:53:54 +03:00
2016-06-28 11:54:52 -03:00
2016-03-17 15:09:34 -07:00
2016-03-02 17:01:59 +02:00
2016-08-01 21:44:52 +03:00
2015-12-10 12:33:23 +01:00
2016-08-02 02:57:29 +03:00
2016-06-10 23:03:55 -07:00
2015-07-07 14:27:05 +03:00
2015-07-07 14:27:04 +03:00
2016-08-09 13:42:38 +03:00
2016-04-30 09:26:55 -07:00
2016-06-25 17:26:35 +03:00
2016-06-09 10:14:39 +02:00
2016-04-23 20:13:25 -04:00