diff options
| author | Wei Yongjun <weiyongjun1@huawei.com> | 2021-03-15 17:43:23 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2021-03-16 21:14:59 +0300 |
| commit | 6f0d32509a92d656d9394788436792d863dff5da (patch) | |
| tree | b1e03c705489569be84c5a435f6bbb0a44e62f45 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 6d16eadab6db0c1d61e59fee7ed1ecc2d10269be (diff) | |
| download | linux-6f0d32509a92d656d9394788436792d863dff5da.tar.xz | |
net: dsa: sja1105: fix error return code in sja1105_cls_flower_add()
The return value 'rc' maybe overwrite to 0 in the flow_action_for_each
loop, the error code from the offload not support error handling will
not set. This commit fix it to return -EOPNOTSUPP.
Fixes: 6a56e19902af ("flow_offload: reject configuration of packet-per-second policing in offload drivers")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
