Commit e7ca75fe authored by Maxime Chevallier's avatar Maxime Chevallier Committed by David S. Miller

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: default avatarMaxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 75fa71e3
...@@ -4915,7 +4915,9 @@ static int mvneta_setup_mqprio(struct net_device *dev, ...@@ -4915,7 +4915,9 @@ static int mvneta_setup_mqprio(struct net_device *dev,
u8 num_tc; u8 num_tc;
int i; 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; num_tc = mqprio->qopt.num_tc;
if (num_tc > rxq_number) if (num_tc > rxq_number)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment