Revision 82274d075536322368ce710b211c41c37c4740b9 authored by Jakub Kicinski on 28 July 2020, 23:15:07 UTC, committed by David S. Miller on 30 July 2020, 23:51:53 UTC
Number of .dumpit functions try to ignore -EOPNOTSUPP errors. Recent change missed that, and started reporting all errors but -EMSGSIZE back from dumps. This leads to situation like this: $ devlink dev info devlink answers: Operation not supported Dump should not report an error just because the last device to be queried could not provide an answer. To fix this and avoid similar confusion make sure we clear err properly, and not leave it set to an error if we don't terminate the iteration. Fixes: c62c2cfb801b ("net: devlink: don't ignore errors during dumpit") Signed-off-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 6555009
File | Mode | Size |
---|---|---|
axs101_defconfig | -rw-r--r-- | 2.8 KB |
axs103_defconfig | -rw-r--r-- | 2.7 KB |
axs103_smp_defconfig | -rw-r--r-- | 2.7 KB |
haps_hs_defconfig | -rw-r--r-- | 1.6 KB |
haps_hs_smp_defconfig | -rw-r--r-- | 1.6 KB |
hsdk_defconfig | -rw-r--r-- | 2.2 KB |
nps_defconfig | -rw-r--r-- | 2.1 KB |
nsim_700_defconfig | -rw-r--r-- | 1.5 KB |
nsimosci_defconfig | -rw-r--r-- | 1.8 KB |
nsimosci_hs_defconfig | -rw-r--r-- | 1.7 KB |
nsimosci_hs_smp_defconfig | -rw-r--r-- | 2.1 KB |
tb10x_defconfig | -rw-r--r-- | 2.8 KB |
vdk_hs38_defconfig | -rw-r--r-- | 2.5 KB |
vdk_hs38_smp_defconfig | -rw-r--r-- | 2.5 KB |
Computing file changes ...