summaryrefslogtreecommitdiff
path: root/net/ipv6
diff options
context:
space:
mode:
authorJian Shen <shenjian15@huawei.com>2019-08-01 11:55:37 +0800
committerDavid S. Miller <davem@davemloft.net>2019-08-01 13:32:12 -0400
commita723fb8efe29d3912d2be41edcf38b76f8d6ed36 (patch)
treee82dd1253b8d2cb1e1dc72abbac3994a2f0f4cc4 /net/ipv6
parent3f0f325309aca23cb241c1aded0056d78d7366a1 (diff)
net: hns3: refine for set ring parameters
Previously, when changing the ring parameters, we free the old ring resources firstly, and then setup the new ring resources. In some case of an memory allocation fail, there will be no resources to use. This patch refines it by setup new ring resources and free the old ring resources in order. Also reduce the max ring BD number to 32760 according to UM. Signed-off-by: Jian Shen <shenjian15@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 'net/ipv6')
0 files changed, 0 insertions, 0 deletions