diff options
| author | Huazhong Tan <tanhuazhong@huawei.com> | 2019-01-18 16:13:03 +0800 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2019-01-18 15:10:21 -0800 |
| commit | 2c9dd668914bb9813b83bc62c28ebfe53e205525 (patch) | |
| tree | 543b06747aea1ba62085ae9913c686ae35dbf130 /tools/perf/scripts/python | |
| parent | Merge branch 'Devlink-health-reporting-and-recovery-system' (diff) | |
| download | linux-2c9dd668914bb9813b83bc62c28ebfe53e205525.tar.gz linux-2c9dd668914bb9813b83bc62c28ebfe53e205525.zip | |
net: hns3: modify enet reinitialization interface
hns3_reset_notify_init_enet and hns3_reset_notify_uninit_enet are the
reinitialization interface that will be called when the device reset,
the number of TC changed, or the queue length changed. So these two
function should call hns3_get_ring_config() and hns3_put_ring_config()
to allocate and free memory for the ring with the correct number.
Also this patch fixes a double free problem when
hns3_reset_notify_uninit_enet calling hns3_nic_dealloc_vector_data
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
