summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorYunsheng Lin <linyunsheng@huawei.com>2019-08-09 05:31:14 +0300
committerDavid S. Miller <davem@davemloft.net>2019-08-09 23:44:33 +0300
commit42611b70f8be12c46906c869f5d819ac70dfd1c7 (patch)
treeef606495ebb77705c1d640425c36d472eabbedbf /tools/perf/scripts/python/export-to-postgresql.py
parentb20d7fe51e0de28982e115b8ec0647066d73d206 (diff)
downloadlinux-42611b70f8be12c46906c869f5d819ac70dfd1c7.tar.xz
net: hns3: add check for max TX BD num for tso and non-tso case
Hardware supports up to 8 TX BD for non-TSO skb and 63 TX BD for TSO skb. Currently hns3 driver does not check the max BD num that required by a skb before filling desc, which may cause the hardware to issue a RAS error throug PCIe AER. This patch adds the max BD num check before filling desc, if the bd num is not within the hardware limit, it will record the error by ring->stats.sw_err_cnt counter and free the skb. This patch also cleans up the hns3_nic_bd_num function by changing the return type and removing an unnecessary check. Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com> Reviewed-by: Peng Li <lipeng321@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions