Skip to content

Commit 93ba222

Browse files
vittyvkdavem330
authored andcommitted
hv_netvsc: remove excessive logging on MTU change
When we change MTU or the number of channels on a netvsc device we get the following logged: hv_netvsc bf5edba8...: net device safe to remove hv_netvsc: hv_netvsc channel opened successfully hv_netvsc bf5edba8...: Send section size: 6144, Section count:2560 hv_netvsc bf5edba8...: Device MAC 00:15:5d:1e:91:12 link state up This information is useful as debug at most. Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 736c9ba commit 93ba222

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

drivers/net/hyperv/netvsc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,8 @@ static int netvsc_init_buf(struct hv_device *device)
410410
net_device->send_section_cnt =
411411
net_device->send_buf_size / net_device->send_section_size;
412412

413-
dev_info(&device->device, "Send section size: %d, Section count:%d\n",
414-
net_device->send_section_size, net_device->send_section_cnt);
413+
netdev_dbg(ndev, "Send section size: %d, Section count:%d\n",
414+
net_device->send_section_size, net_device->send_section_cnt);
415415

416416
/* Setup state for managing the send buffer. */
417417
net_device->map_words = DIV_ROUND_UP(net_device->send_section_cnt,
@@ -578,7 +578,7 @@ void netvsc_device_remove(struct hv_device *device)
578578
* At this point, no one should be accessing net_device
579579
* except in here
580580
*/
581-
dev_notice(&device->device, "net device safe to remove\n");
581+
netdev_dbg(ndev, "net device safe to remove\n");
582582

583583
/* Now, we can close the channel safely */
584584
vmbus_close(device->channel);
@@ -1387,7 +1387,7 @@ int netvsc_device_add(struct hv_device *device, void *additional_info)
13871387
}
13881388

13891389
/* Channel is opened */
1390-
pr_info("hv_netvsc channel opened successfully\n");
1390+
netdev_dbg(ndev, "hv_netvsc channel opened successfully\n");
13911391

13921392
/* If we're reopening the device we may have multiple queues, fill the
13931393
* chn_table with the default channel to use it before subchannels are

drivers/net/hyperv/rndis_filter.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,9 +1059,9 @@ int rndis_filter_device_add(struct hv_device *dev,
10591059

10601060
device_info->link_state = rndis_device->link_state;
10611061

1062-
dev_info(&dev->device, "Device MAC %pM link state %s\n",
1063-
rndis_device->hw_mac_adr,
1064-
device_info->link_state ? "down" : "up");
1062+
netdev_dbg(net, "Device MAC %pM link state %s\n",
1063+
rndis_device->hw_mac_adr,
1064+
device_info->link_state ? "down" : "up");
10651065

10661066
if (net_device->nvsp_version < NVSP_PROTOCOL_VERSION_5)
10671067
return 0;

0 commit comments

Comments
 (0)