diff options
author | Or Gerlitz <ogerlitz@mellanox.com> | 2017-10-18 18:38:08 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-20 13:09:35 +0100 |
commit | 0843c092ee75bb375fbbb6b97a7c55e0069ae099 (patch) | |
tree | 8d2033ba5d710d906fb14ab2c711b38614109a3d /net/sched | |
parent | 322d95f04a8f375ced4f704eb612287d0730a163 (diff) |
net/sched: Set the net-device for egress device instance
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>
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/act_api.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sched/act_api.c b/net/sched/act_api.c index ac97db92ab68..c67b820a8307 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c @@ -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); |