Skip to content

Commit 0843c09

Browse files
ogerlitzdavem330
authored andcommitted
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 <[email protected]> Acked-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 322d95f commit 0843c09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/sched/act_api.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,6 +1300,7 @@ tcf_action_egdev_get(const struct net_device *dev)
13001300
if (!egdev)
13011301
return NULL;
13021302
INIT_LIST_HEAD(&egdev->cb_list);
1303+
egdev->dev = dev;
13031304
tan = net_generic(dev_net(dev), tcf_action_net_id);
13041305
rhashtable_insert_fast(&tan->egdev_ht, &egdev->ht_node,
13051306
tcf_action_egdev_ht_params);

0 commit comments

Comments
 (0)