Thread (16 messages) 16 messages, 5 authors, 2015-07-17

Re: [PATCH net-next v2 3/5] switchdev: add offload_fwd_mark generator helper

flat view

From: Jiri Pirko <jiri@resnulli.us>
Date: 2015-07-16 08:22:32

Thu, Jul 16, 2015 at 10:04:55AM CEST, sfeldma@gmail.com wrote:
From: Scott Feldman <redacted>

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 <redacted>
Acked-by: Jiri Pirko <jiri@resnulli.us>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help