aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/node.c
diff options
context:
space:
mode:
authorScott Feldman <[email protected]>2015-07-19 01:24:50 +0000
committerDavid S. Miller <[email protected]>2015-07-21 01:32:44 +0000
commit1a3b2ec93d4277b121979321b4024b438cb09504 (patch)
treec57bf0a7563a0cfcdcda3c08ca90591c15d21f0a /net/tipc/node.c
parentnet: add phys ID compare helper to test if two IDs are the same (diff)
downloadkernel-1a3b2ec93d4277b121979321b4024b438cb09504.tar.gz
kernel-1a3b2ec93d4277b121979321b4024b438cb09504.zip
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 <[email protected]> Acked-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/node.c')
0 files changed, 0 insertions, 0 deletions