Skip to content

Commit

Permalink
hv_netvsc: remove excessive logging on MTU change
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Haiyang Zhang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
vittyvk authored and davem330 committed Nov 30, 2016
1 parent 736c9ba commit 93ba222
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions drivers/net/hyperv/netvsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,8 @@ static int netvsc_init_buf(struct hv_device *device)
net_device->send_section_cnt =
net_device->send_buf_size / net_device->send_section_size;

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

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

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

/* Channel is opened */
pr_info("hv_netvsc channel opened successfully\n");
netdev_dbg(ndev, "hv_netvsc channel opened successfully\n");

/* If we're reopening the device we may have multiple queues, fill the
* chn_table with the default channel to use it before subchannels are
Expand Down
6 changes: 3 additions & 3 deletions drivers/net/hyperv/rndis_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1059,9 +1059,9 @@ int rndis_filter_device_add(struct hv_device *dev,

device_info->link_state = rndis_device->link_state;

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

if (net_device->nvsp_version < NVSP_PROTOCOL_VERSION_5)
return 0;
Expand Down

0 comments on commit 93ba222

Please sign in to comment.