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-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
2015-07-08 13:50:42 -07:00
2015-05-04 14:49:23 -04:00
2015-06-10 22:49:20 -07:00
2015-05-11 10:50:17 -04: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
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-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
2015-03-12 14:39:40 -04:00
2015-05-13 15:59:13 -04: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
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
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
2015-02-28 21:31:12 +01:00
2015-05-11 10:50:17 -04:00
2015-06-10 16:05:36 +02:00
2015-06-12 11:43:58 +02: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
2015-03-31 13:58:35 -04:00
2015-06-10 12:24:33 +02:00
2015-03-02 13:06:31 -05:00
2015-05-05 16:02:34 -04:00
2015-04-10 12:42:40 -07:00
2015-07-08 13:50:41 -07: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
2015-04-07 15:29:08 -04:00
2015-03-02 13:06:31 -05:00
2015-04-07 15:29:08 -04:00
2015-05-28 11:23:20 +08:00