commit | 97b9e5c131f16e2e487139ba596f9e6df927ae87 | [log] [tgz] |
---|---|---|
author | Yunsheng Lin <linyunsheng@huawei.com> | Mon Mar 29 11:57:53 2021 +0800 |
committer | David S. Miller <davem@davemloft.net> | Mon Mar 29 13:21:01 2021 -0700 |
tree | 4903660ca6c15d25af0436b3e4f046b97df5c703 | |
parent | 33a8f7649913e4aeda34bc1294302688112c9c56 [diff] |
net: hns3: add stats logging when skb padding fails skb_put_padto() may fails because of memory failure, sw_err_cnt is already used to log memory failure in hns3_skb_linearize(), so use it to log the memory failure for skb_put_padto() too. Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>