]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net/sched: Set the net-device for egress device instance
authorOr Gerlitz <ogerlitz@mellanox.com>
Wed, 18 Oct 2017 15:38:08 +0000 (18:38 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Oct 2017 12:09:35 +0000 (13:09 +0100)
Currently the netdevice field is not set and the egdev instance
is not functional, fix that.

Fixes: 3f55bdda8df ('net: sched: introduce per-egress action device callbacks')
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_api.c

index ac97db92ab68cd1502b8c3cfb74558b4b3d0d462..c67b820a8307e4e676f7be0abe6b8844d5f03ce1 100644 (file)
@@ -1300,6 +1300,7 @@ tcf_action_egdev_get(const struct net_device *dev)
        if (!egdev)
                return NULL;
        INIT_LIST_HEAD(&egdev->cb_list);
+       egdev->dev = dev;
        tan = net_generic(dev_net(dev), tcf_action_net_id);
        rhashtable_insert_fast(&tan->egdev_ht, &egdev->ht_node,
                               tcf_action_egdev_ht_params);