net: Fix ndo_setup_tc comment
Subsystems (2)
PATCH 1/1 net: Fix ndo_setup_tc comment
Commit 16e5cc647173 ("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.
--- include/linux/netdevice.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
include/linux/netdevice.h +6 -5
@@ -964,11 +964,12 @@ struct netdev_xdp {* with PF and querying it may introduce a theoretical security risk. * int (*ndo_set_vf_rss_query_en)(struct net_device *dev, int vf, bool setting); * int (*ndo_get_vf_port)(struct net_device *dev, int vf, struct sk_buff *skb); -* int (*ndo_setup_tc)(struct net_device *dev, u8 tc) -* Called to setup 'tc' number of traffic classes in the net device. This -* is always called from the stack with the rtnl lock held and netif tx -* queues stopped. This allows the netdevice to perform queue management -* safely. +* int (*ndo_setup_tc)(struct net_device *dev, u32 handle, +* __be16 protocol, struct tc_to_netdev *tc); +* Called to setup any 'tc' scheduler, classifier or action on @dev. +* This is always called from the stack with the rtnl lock held and netif +* tx queues stopped. This allows the netdevice to perform queue +* management safely. * * Fiber Channel over Ethernet (FCoE) offload functions. * int (*ndo_fcoe_enable)(struct net_device *dev);
Signature · 1 line
2.9.3
Quoted 6 lines · Florian Fainelli
Commit
16e5cc647173("net: reworksetup_tcndo op to consume general tc operand") changed thendo_setup_tc()signature, but did not update the comments innetdevice.h, so do that now.Signed-off-by Florian Fainelli <[email protected]>---
Thanks.
Quoted 5 lines · Thu, Jan 26, 2017 at 11:44:17PM CET, [email protected] wrote:
Commit
16e5cc647173("net: reworksetup_tcndo op to consume general tc operand") changed thendo_setup_tc()signature, but did not update the comments innetdevice.h, so do that now.Signed-off-by Florian Fainelli <[email protected]>
From: Florian Fainelli <[email protected]>
Date: Thu, 26 Jan 2017 14:44:17 -0800
Quoted 5 lines
Commit
16e5cc647173("net: reworksetup_tcndo op to consume general tc operand") changed thendo_setup_tc()signature, but did not update the comments innetdevice.h, so do that now.Signed-off-by Florian Fainelli <[email protected]>
Applied.