net: hns: fix port unavailable after hnae_reserve_buffer_map fail
authorlipeng <lipeng321@huawei.com>
Thu, 29 Sep 2016 17:09:09 +0000 (18:09 +0100)
committerDoug Ledford <dledford@redhat.com>
Mon, 3 Oct 2016 15:40:57 +0000 (11:40 -0400)
commit0e97cd4e4632e385b3bf7edcf0c803de0487212a
treed443e337d774028659f12fc3e0e231716080b60e
parent528f1deb16e5b82e9fe161ebd8caa5983766f0f0
net: hns: fix port unavailable after hnae_reserve_buffer_map fail

When hnae_reserve_buffer_map fail, it will break cycle and some
buffer description has no available memory, therefore the port will
be unavailable.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Reviewed-by: Yisen Zhuang <yisen.zhuang@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/net/ethernet/hisilicon/hns/hns_enet.c