Skip to content

Commit

Permalink
netkvm: finally enable negotiation USO TX support
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Benditovich <[email protected]>
  • Loading branch information
ybendito authored and YanVugenfirer committed Apr 7, 2024
1 parent 53d0f84 commit dfdaec5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions NetKVM/Common/ParaNdis_Common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,14 +324,14 @@ static void ReadNicConfiguration(PARANDIS_ADAPTER *pContext, PUCHAR pNewMACAddre
if (pConfiguration->USOv4Supported.ulValue)
{
// Uncomment later
// pContext->InitialOffloadParameters.UdpSegmentation.IPv4 = (UCHAR)pConfiguration->USOv4Supported.ulValue;
// pContext->Offload.flagsValue |= osbT4Uso;
pContext->InitialOffloadParameters.UdpSegmentation.IPv4 = (UCHAR)pConfiguration->USOv4Supported.ulValue;
pContext->Offload.flagsValue |= osbT4Uso;
}
if (pConfiguration->USOv6Supported.ulValue)
{
// Uncomment later
// pContext->InitialOffloadParameters.UdpSegmentation.IPv6 = (UCHAR)pConfiguration->USOv6Supported.ulValue;
// pContext->Offload.flagsValue |= osbT6Uso;
pContext->InitialOffloadParameters.UdpSegmentation.IPv6 = (UCHAR)pConfiguration->USOv6Supported.ulValue;
pContext->Offload.flagsValue |= osbT6Uso;
}
#endif
pContext->ulPriorityVlanSetting = pConfiguration->PriorityVlanTagging.ulValue;
Expand Down Expand Up @@ -461,6 +461,7 @@ static void DumpVirtIOFeatures(PPARANDIS_ADAPTER pContext)
{VIRTIO_NET_F_RSS, "VIRTIO_NET_F_RSS" },
{VIRTIO_NET_F_HASH_REPORT, "VIRTIO_NET_F_HASH_REPORT" },
{VIRTIO_NET_F_STANDBY, "VIRTIO_NET_F_STANDBY" },
{VIRTIO_NET_F_HOST_USO, "VIRTIO_NET_F_HOST_USO" },
};
UINT i;
for (i = 0; i < sizeof(Features)/sizeof(Features[0]); ++i)
Expand Down

0 comments on commit dfdaec5

Please sign in to comment.