diff options
author | 2021-11-26 12:20:54 +0100 | |
---|---|---|
committer | 2021-11-29 12:05:52 +0000 | |
commit | e7ca75fe6662f78bfeb0112671c812e4c7b8e214 (patch) | |
tree | e05fe6c131bde3dce34d3091ac9b9cbf84ef5a00 /drivers/net/ethernet/marvell/mvneta.c | |
parent | net: mvneta: Use struct tc_mqprio_qopt_offload for MQPrio configuration (diff) | |
download | linux-e7ca75fe6662f78bfeb0112671c812e4c7b8e214.tar.gz linux-e7ca75fe6662f78bfeb0112671c812e4c7b8e214.tar.bz2 linux-e7ca75fe6662f78bfeb0112671c812e4c7b8e214.zip |
net: mvneta: Don't force-set the offloading flag
The qopt->hw flag is set by the TC code according to the offloading mode
asked by user. Don't force-set it in the driver, but instead read it to
make sure we do what's asked.
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell/mvneta.c')
-rw-r--r-- | drivers/net/ethernet/marvell/mvneta.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index 46b7604805f7..d3ce87e69d2a 100644 --- a/drivers/net/ethernet/marvell/mvneta.c +++ b/drivers/net/ethernet/marvell/mvneta.c @@ -4915,7 +4915,9 @@ static int mvneta_setup_mqprio(struct net_device *dev, u8 num_tc; int i; - mqprio->qopt.hw = TC_MQPRIO_HW_OFFLOAD_TCS; + if (mqprio->qopt.hw != TC_MQPRIO_HW_OFFLOAD_TCS) + return 0; + num_tc = mqprio->qopt.num_tc; if (num_tc > rxq_number) |