diff options
author | Vinicius Costa Gomes | 2020-02-06 13:46:06 -0800 |
---|---|---|
committer | David S. Miller | 2020-02-07 11:30:03 +0100 |
commit | 5652e63df3303c2a702bac25fbf710b9cb64dfba (patch) | |
tree | 384c1716aaec37aebd74be17b88a87d5329f7a6c /drivers/parisc | |
parent | de34d7084edd069dac5aa010cfe32bd8c4619fa6 (diff) |
taprio: Fix enabling offload with wrong number of traffic classes
If the driver implementing taprio offloading depends on the value of
the network device number of traffic classes (dev->num_tc) for
whatever reason, it was going to receive the value zero. The value was
only set after the offloading function is called.
So, moving setting the number of traffic classes to before the
offloading function is called fixes this issue. This is safe because
this only happens when taprio is instantiated (we don't allow this
configuration to be changed without first removing taprio).
Fixes: 9c66d1564676 ("taprio: Add support for hardware offloading")
Reported-by: Po Liu <po.liu@nxp.com>
Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Acked-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/parisc')
0 files changed, 0 insertions, 0 deletions