OSDN Git Service

net: pkt_cls: Clarify a comment
authorPetr Machata <petrm@mellanox.com>
Wed, 18 Dec 2019 14:55:08 +0000 (14:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Dec 2019 21:32:29 +0000 (13:32 -0800)
The bit about negating HW backlog left me scratching my head. Clarify the
comment.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/pkt_cls.h

index e553fc8..a7c5d49 100644 (file)
@@ -791,9 +791,8 @@ enum tc_prio_command {
 struct tc_prio_qopt_offload_params {
        int bands;
        u8 priomap[TC_PRIO_MAX + 1];
-       /* In case that a prio qdisc is offloaded and now is changed to a
-        * non-offloadedable config, it needs to update the backlog & qlen
-        * values to negate the HW backlog & qlen values (and only them).
+       /* At the point of un-offloading the Qdisc, the reported backlog and
+        * qlen need to be reduced by the portion that is in HW.
         */
        struct gnet_stats_queue *qstats;
 };