Skip to content

Commit 6a4bc2b

Browse files
ffainellidavem330
authored andcommitted
net: Fix ndo_setup_tc comment
Commit 16e5cc6 ("net: rework setup_tc ndo op to consume general tc operand") changed the ndo_setup_tc() signature, but did not update the comments in netdevice.h, so do that now. Signed-off-by: Florian Fainelli <[email protected]> Acked-by: John Fastabend <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 1f17e2f commit 6a4bc2b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

include/linux/netdevice.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -964,11 +964,12 @@ struct netdev_xdp {
964964
* with PF and querying it may introduce a theoretical security risk.
965965
* int (*ndo_set_vf_rss_query_en)(struct net_device *dev, int vf, bool setting);
966966
* int (*ndo_get_vf_port)(struct net_device *dev, int vf, struct sk_buff *skb);
967-
* int (*ndo_setup_tc)(struct net_device *dev, u8 tc)
968-
* Called to setup 'tc' number of traffic classes in the net device. This
969-
* is always called from the stack with the rtnl lock held and netif tx
970-
* queues stopped. This allows the netdevice to perform queue management
971-
* safely.
967+
* int (*ndo_setup_tc)(struct net_device *dev, u32 handle,
968+
* __be16 protocol, struct tc_to_netdev *tc);
969+
* Called to setup any 'tc' scheduler, classifier or action on @dev.
970+
* This is always called from the stack with the rtnl lock held and netif
971+
* tx queues stopped. This allows the netdevice to perform queue
972+
* management safely.
972973
*
973974
* Fiber Channel over Ethernet (FCoE) offload functions.
974975
* int (*ndo_fcoe_enable)(struct net_device *dev);

0 commit comments

Comments
 (0)