Skip to content

Commit

Permalink
net/sched: Set the net-device for egress device instance
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Jiri Pirko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
ogerlitz authored and davem330 committed Oct 20, 2017
1 parent 322d95f commit 0843c09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/sched/act_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0843c09

Please sign in to comment.