]> git.baikalelectronics.ru Git - kernel.git/commitdiff
hv_netvsc: hide warnings about uninitialized/missing rndis device
authorVitaly Kuznetsov <vkuznets@redhat.com>
Thu, 2 Nov 2017 10:35:31 +0000 (11:35 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Nov 2017 01:28:54 +0000 (10:28 +0900)
Hyper-V hosts are known to send RNDIS messages even after we halt the
device in rndis_filter_halt_device(). Remove user visible messages
as they are not really useful.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/rndis_filter.c

index 0648eebda829cf14408b103b03913af48dab876d..8b1242b8d8ef98b199304827d2425a447f646f32 100644 (file)
@@ -407,13 +407,13 @@ int rndis_filter_receive(struct net_device *ndev,
 
        /* Make sure the rndis device state is initialized */
        if (unlikely(!rndis_dev)) {
-               netif_err(net_device_ctx, rx_err, ndev,
+               netif_dbg(net_device_ctx, rx_err, ndev,
                          "got rndis message but no rndis device!\n");
                return NVSP_STAT_FAIL;
        }
 
        if (unlikely(rndis_dev->state == RNDIS_DEV_UNINITIALIZED)) {
-               netif_err(net_device_ctx, rx_err, ndev,
+               netif_dbg(net_device_ctx, rx_err, ndev,
                          "got rndis message uninitialized\n");
                return NVSP_STAT_FAIL;
        }