• Huazhong Tan's avatar
    net: hns3: fix user's coalesce configuration lost issue · 73a13d8d
    Huazhong Tan authored
    Currently, when adaptive is on, the user's coalesce configuration
    may be overwritten by the dynamic one. The reason is that user's
    configurations are saved in struct hns3_enet_tqp_vector whose
    value maybe changed by the dynamic algorithm. To fix it, use
    struct hns3_nic_priv instead of struct hns3_enet_tqp_vector to
    save and get the user's configuration.
    
    BTW, operations of storing and restoring coalesce info in the reset
    process are unnecessary now, so remove them as well.
    
    Fixes: 434776a5 ("net: hns3: add ethtool_ops.set_coalesce support to PF")
    Fixes: 7e96adc4 ("net: hns3: add ethtool_ops.get_coalesce support to PF")
    Signed-off-by: default avatarHuazhong Tan <tanhuazhong@huawei.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    73a13d8d
hns3_ethtool.c 44 KB