Skip to content

Commit

Permalink
netdev-tc-offloads: Remove ingress qdisc on tc init flow api
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: John Hurley <[email protected]>
Signed-off-by: Simon Horman <[email protected]>
  • Loading branch information
roidayan authored and shorman-netronome committed Mar 12, 2019
1 parent ea11bb0 commit bb5538d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/netdev-tc-offloads.c
Original file line number Diff line number Diff line change
Expand Up @@ -1527,6 +1527,9 @@ netdev_tc_init_flow_api(struct netdev *netdev)
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);
Expand Down

0 comments on commit bb5538d

Please sign in to comment.