]> git.proxmox.com Git - ovs.git/commitdiff
netdev-tc-offloads: Remove ingress qdisc on tc init flow api
authorRoi Dayan <roid@mellanox.com>
Mon, 11 Mar 2019 14:34:05 +0000 (16:34 +0200)
committerSimon Horman <simon.horman@netronome.com>
Tue, 12 Mar 2019 09:20:30 +0000 (10:20 +0100)
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>
lib/netdev-tc-offloads.c

index 73ce7b95245cdbb59d4e9422914bc647eb23cc7b..9e9bb579df501b9e2a29891e0ec5fa57eecccd77 100644 (file)
@@ -1512,6 +1512,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);