Scott Feldman
1a3b2ec93d
switchdev: add offload_fwd_mark generator helper
...
skb->offload_fwd_mark and dev->offload_fwd_mark are 32-bit and should be
unique for device and may even be unique for a sub-set of ports within
device, so add switchdev helper function to generate unique marks based on
port's switch ID and group_ifindex. group_ifindex would typically be the
container dev's ifindex, such as the bridge's ifindex.
The generator uses a global hash table to store offload_fwd_marks hashed by
{switch ID, group_ifindex} key.
Signed-off-by: Scott Feldman <sfeldma@gmail.com >
Acked-by: Jiri Pirko <jiri@resnulli.us >
Signed-off-by: David S. Miller <davem@davemloft.net >
2015-07-20 18:32:44 -07:00
..
2015-04-11 22:28:27 -04:00
2015-06-18 18:11:53 +02:00
2015-02-20 17:35:14 -05:00
2014-12-10 15:33:16 -05:00
2015-06-23 06:23:23 -07:00
2015-07-09 21:09:10 -07:00
2015-06-11 23:37:37 +02:00
2015-06-14 12:55:49 -07:00
2015-07-08 13:50:42 -07:00
2014-10-27 15:51:16 +01:00
2015-07-08 13:50:42 -07:00
2015-05-04 14:49:23 -04:00
2014-10-25 08:07:30 +02:00
2015-06-10 22:49:20 -07:00
2015-05-11 10:50:17 -04:00
2014-09-18 10:54:36 +02:00
2015-03-04 00:23:23 -05:00
2015-06-28 16:55:44 -07:00
2015-02-24 16:05:48 -05:00
2014-11-10 13:27:49 -05:00
2015-05-11 10:59:32 -04:00
2015-05-11 10:59:32 -04:00
2015-05-26 15:21:27 +02:00
2015-05-27 19:29:42 +02:00
2015-05-17 13:08:29 -04:00
2015-02-11 14:46:37 -05:00
2015-07-20 12:41:30 -07:00
2015-05-13 14:31:43 -04:00
2015-04-09 00:02:26 -04:00
2015-03-06 21:50:02 -05:00
2015-04-07 15:25:55 -04:00
2015-03-29 13:23:54 -07:00
2015-03-09 16:06:10 -04:00
2015-05-12 23:19:49 -04:00
2015-06-24 02:15:54 -07:00
2015-06-04 15:44:31 -07:00
2014-04-16 15:05:11 -04:00
2014-11-12 15:01:35 -05:00
2014-09-30 01:02:26 -04:00
2015-03-12 14:39:40 -04:00
2015-05-13 15:59:13 -04:00
2014-06-04 22:46:38 -07:00
2015-01-18 01:56:32 -05:00
2014-11-05 16:30:03 -05:00
2015-06-12 11:42:29 +02:00
2015-03-23 22:12:09 -04:00
2015-03-20 12:40:25 -04:00
2015-03-18 22:00:35 -04:00
2015-05-11 10:50:18 -04:00
2015-05-31 21:49:14 -07:00
2014-05-07 15:30:52 -04:00
2015-05-27 13:03:31 -04:00
2015-07-09 15:12:20 -07:00
2015-06-06 23:57:12 -07:00
2015-07-09 15:12:20 -07:00
2015-03-31 13:58:35 -04:00
2014-08-24 18:09:23 -07:00
2015-05-25 13:25:35 -04:00
2015-05-25 13:25:34 -04:00
2015-04-07 15:29:08 -04:00
2015-06-24 02:15:54 -07:00
2015-04-02 14:05:00 -04:00
2015-03-12 14:39:40 -04:00
2015-06-04 15:44:30 -07:00
2015-06-04 15:44:30 -07:00
2014-11-24 04:28:49 -05:00
2015-02-28 21:31:12 +01:00
2014-10-14 02:18:27 +02:00
2014-12-10 15:21:24 -05:00
2015-05-11 10:50:17 -04:00
2014-12-10 15:21:24 -05:00
2015-06-10 16:05:36 +02:00
2015-06-12 11:43:58 +02:00
2014-09-22 16:23:15 -04:00
2014-11-05 23:52:33 -08:00
2015-03-04 00:23:23 -05:00
2015-03-20 21:47:40 -04:00
2015-06-18 21:14:29 +02:00
2014-08-07 20:55:21 -04:00
2015-03-31 13:58:35 -04:00
2015-06-10 12:24:33 +02:00
2015-03-02 13:06:31 -05:00
2014-10-06 18:02:32 -04:00
2015-01-13 17:51:08 -05:00
2014-05-23 16:28:53 -04:00
2014-12-17 11:49:55 +01:00
2015-05-05 16:02:34 -04:00
2015-01-15 18:26:16 -05:00
2015-04-10 12:42:40 -07:00
2015-07-08 13:50:41 -07:00
2014-06-02 11:00:41 -07:00
2014-10-15 07:48:18 +02:00
2015-06-28 16:55:44 -07:00
2015-07-20 18:32:44 -07:00
2015-03-12 22:58:12 -04:00
2015-07-09 14:22:52 -07:00
2015-07-09 15:12:20 -07:00
2014-05-22 14:57:15 -04:00
2015-04-07 15:29:08 -04:00
2015-03-02 13:06:31 -05:00
2015-02-04 01:34:15 -05:00
2015-04-07 15:29:08 -04:00
2014-09-05 17:35:28 -07:00
2015-05-28 11:23:20 +08:00