]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add stats logging when skb padding fails
authorYunsheng Lin <linyunsheng@huawei.com>
Mon, 29 Mar 2021 03:57:53 +0000 (11:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Mar 2021 20:21:01 +0000 (13:21 -0700)
commit886541926085cf3620d7a6089dc81fd2afcfb93d
tree4903660ca6c15d25af0436b3e4f046b97df5c703
parentae4ed98f080473a46b21e3c3cf61be6261eb896d
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>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c