net: hns3: add stats logging when skb padding fails
mainline inclusion from mainline-v5.13-rc1 commit 97b9e5c1 category: feature bugzilla: 173966 CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=97b9e5c131f16e2e487139ba596f9e6df927ae87 ---------------------------------------------------------------------- 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> Reviewed-by:
Yongxin Li <liyongxin1@huawei.com> Signed-off-by:
Junxin Chen <chenjunxin1@huawei.com> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com>
Loading
Please sign in to comment