Skip to content

Commit 9586a99

Browse files
pmachatadavem330
authored andcommitted
net: pkt_cls: Clarify a comment
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>
1 parent cbd22f1 commit 9586a99

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

include/net/pkt_cls.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -791,9 +791,8 @@ enum tc_prio_command {
791791
struct tc_prio_qopt_offload_params {
792792
int bands;
793793
u8 priomap[TC_PRIO_MAX + 1];
794-
/* In case that a prio qdisc is offloaded and now is changed to a
795-
* non-offloadedable config, it needs to update the backlog & qlen
796-
* values to negate the HW backlog & qlen values (and only them).
794+
/* At the point of un-offloading the Qdisc, the reported backlog and
795+
* qlen need to be reduced by the portion that is in HW.
797796
*/
798797
struct gnet_stats_queue *qstats;
799798
};

0 commit comments

Comments
 (0)