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-07-09 21:09:10 -07:00
2015-06-11 23:37:37 +02:00
2015-06-14 12:55:49 -07: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-03-06 21:50:02 -05:00
2015-05-12 23:19:49 -04:00
2013-11-07 19:28:58 -05:00
2014-09-30 01:02:26 -04:00
2015-03-12 14:39:40 -04:00
2014-06-04 22:46:38 -07:00
2015-01-18 01:56:32 -05:00
2015-05-25 13:25:35 -04:00
2015-03-12 14:39:40 -04:00
2015-06-04 15:44:30 -07:00
2014-01-03 20:56:48 -05:00
2015-06-10 12:24:33 +02:00
2015-01-15 18:26:16 -05:00
2014-06-02 11:00:41 -07:00
2015-06-28 16:55:44 -07:00
2015-03-12 22:58:12 -04:00
2014-05-22 14:57:15 -04:00