]> git.proxmox.com Git - ovs.git/commit - lib/tc.c
tc: allow offloading of block ids
authorJohn Hurley <john.hurley@netronome.com>
Thu, 28 Jun 2018 16:03:02 +0000 (17:03 +0100)
committerSimon Horman <simon.horman@netronome.com>
Fri, 29 Jun 2018 12:33:59 +0000 (14:33 +0200)
commit093c9458fb02b3c664c41fdcdd5d1104651ecccb
tree3e581e367d595e58e4d31b2853d0292231f73a53
parente4614813306778b24a609d8d68bba015aaee9dcd
tc: allow offloading of block ids

Blocks, in tc classifiers, allow the grouping of multiple qdiscs with an
associated block id. Whenever a filter is added to/removed from this
block, the filter is added to/removed from all associated qdiscs.

Extend TC offload functions to take a block id as a parameter. If the id
is zero then the dqisc is not considered part of a block.

Signed-off-by: John Hurley <john.hurley@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
lib/netdev-linux.c
lib/netdev-tc-offloads.c
lib/tc.c
lib/tc.h