summaryrefslogtreecommitdiff
path: root/lib/netdev-dummy.c
diff options
context:
space:
mode:
authorJohn Hurley <john.hurley@netronome.com>2018-06-28 17:03:03 +0100
committerSimon Horman <simon.horman@netronome.com>2018-06-29 14:51:47 +0200
commit88dcf2aa82347da7bfcf4f6e1d72c2d3012b4c12 (patch)
treef58675cfe18d6d377164443a3606ae9bf8c692b2 /lib/netdev-dummy.c
parent093c9458fb02b3c664c41fdcdd5d1104651ecccb (diff)
downloadopenvswitch-88dcf2aa82347da7bfcf4f6e1d72c2d3012b4c12.tar.gz
netdev-provider: add class op to get block_id
Add a new class op for netdevs to get the block_id if one exists. The block_id is used in offload ops to group multiple qdiscs together. Stub calls are made to the new class op (implementation to follow in further patches). The default block_id of 0 (no block) will be used in these cases. Signed-off-by: John Hurley <john.hurley@netronome.com> Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com> Reviewed-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: Simon Horman <simon.horman@netronome.com>
Diffstat (limited to 'lib/netdev-dummy.c')
-rw-r--r--lib/netdev-dummy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/netdev-dummy.c b/lib/netdev-dummy.c
index fbc98dd05..d4984674f 100644
--- a/lib/netdev-dummy.c
+++ b/lib/netdev-dummy.c
@@ -1464,7 +1464,8 @@ netdev_dummy_update_flags(struct netdev *netdev_,
netdev_dummy_rxq_wait, \
netdev_dummy_rxq_drain, \
\
- NO_OFFLOAD_API \
+ NO_OFFLOAD_API, \
+ NULL /* get_block_id */ \
}
static const struct netdev_class dummy_class =