It could be a port added to ovs bridge already has ingress qdisc
which will make the block probe fail.
The probes should start clean and ingress is being added later
so just remove ingress in case it exists.
Signed-off-by: Roi Dayan <roid@mellanox.com>
Acked-by: John Hurley <john.hurley@netronome.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
return -ifindex;
}
+ /* make sure there is no ingress qdisc */
+ tc_add_del_ingress_qdisc(ifindex, false, 0);
+
if (ovsthread_once_start(&block_once)) {
probe_tc_block_support(ifindex);
ovsthread_once_done(&block_once);