diff options
author | Weihang Li <liweihang@hisilicon.com> | 2019-06-07 10:03:07 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-09 13:20:59 -0700 |
commit | 0cd8618298cc390309ddaf2549d30218418f739b (patch) | |
tree | be8ac85c0906100655ceebc622cb2a818a0186c9 /net/netfilter/xt_recent.c | |
parent | 4a43caf5b74f80749f4e76edd151244ce59f0a47 (diff) |
net: hns3: trigger VF reset if a VF has an over_8bd_nfe_err
We trigger PF reset when a RAS error of NIC named over_8bd_nfe_err
occurred before. But it is possible that a VF causes that error, it's
reasonable to trigger VF reset instead of PF reset in this case.
This patch add detection of vf_id if a over_8bd_nfe_err occurs, if
vf_id is 0, we trigger PF reset. Otherwise, we will trigger VF reset
on the VF with error.
Signed-off-by: Weihang Li <liweihang@hisilicon.com>
Signed-off-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/netfilter/xt_recent.c')
0 files changed, 0 insertions, 0 deletions