hyperv: Add processing of MTU reduced by the host
If the host uses packet encapsulation feature, the MTU may be reduced by the host due to headroom reservation for encapsulation. This patch handles this new MTU value. Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
此提交包含在:
@@ -440,7 +440,8 @@ static int negotiate_nvsp_ver(struct hv_device *device,
|
||||
/* NVSPv2 only: Send NDIS config */
|
||||
memset(init_packet, 0, sizeof(struct nvsp_message));
|
||||
init_packet->hdr.msg_type = NVSP_MSG2_TYPE_SEND_NDIS_CONFIG;
|
||||
init_packet->msg.v2_msg.send_ndis_config.mtu = net_device->ndev->mtu;
|
||||
init_packet->msg.v2_msg.send_ndis_config.mtu = net_device->ndev->mtu +
|
||||
ETH_HLEN;
|
||||
init_packet->msg.v2_msg.send_ndis_config.capability.ieee8021q = 1;
|
||||
|
||||
ret = vmbus_sendpacket(device->channel, init_packet,
|
||||
|
新增問題並參考
封鎖使用者