OpenCloudOS-Kernel/drivers/net/hyperv
Haiyang Zhang 6b0cbe3158 hv_netvsc: Add initialization of tx_table in netvsc_device_add()
tx_table is part of the private data of kernel net_device. It is only
zero-ed out when allocating net_device.

We may recreate netvsc_device w/o recreating net_device, so the private
netdev data, including tx_table, are not zeroed. It may contain channel
numbers for the older netvsc_device.

This patch adds initialization of tx_table each time we recreate
netvsc_device.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-10-14 18:42:55 -07:00
..
Kconfig
Makefile
hyperv_net.h hv_netvsc: Rename tx_send_table to tx_table 2017-10-14 18:42:55 -07:00
netvsc.c hv_netvsc: Add initialization of tx_table in netvsc_device_add() 2017-10-14 18:42:55 -07:00
netvsc_drv.c hv_netvsc: Rename tx_send_table to tx_table 2017-10-14 18:42:55 -07:00
rndis_filter.c hv_netvsc: Rename ind_table to rx_table 2017-10-14 18:42:55 -07:00