Skip to content

Commit

Permalink
un-support ipv6 extensions with tx offload for now (#766)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfriesen authored Dec 17, 2024
1 parent 16ca3c0 commit 0554362
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/xdplwf/send.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,6 @@ XdpGenericBuildTxNbl(
break;

case XdpFrameLayer3TypeIPv6NoExtensions:
case XdpFrameLayer3TypeIPv6UnspecifiedExtensions:
case XdpFrameLayer3TypeIPv6WithExtensions:
const IPV6_HEADER *Ipv6 = RTL_PTR_ADD(Mdl->MappedSystemVa, sizeof(ETHERNET_HEADER));

if (Buffer->DataLength < sizeof(ETHERNET_HEADER) + sizeof(*Ipv6) ||
Expand Down
4 changes: 2 additions & 2 deletions test/functional/lib/tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6348,7 +6348,7 @@ GenericTxChecksumOffloadTcp(
Layout->Layer2HeaderLength = sizeof(ETHERNET_HEADER);
Layout->Layer3Type =
Af == AF_INET6 ?
XdpFrameLayer3TypeIPv6UnspecifiedExtensions : XdpFrameLayer3TypeIPv4UnspecifiedOptions;
XdpFrameLayer3TypeIPv6NoExtensions : XdpFrameLayer3TypeIPv4UnspecifiedOptions;
Layout->Layer3HeaderLength = Af == AF_INET6 ? sizeof(IPV6_HEADER) : sizeof(IPV4_HEADER);
Layout->Layer4Type = XdpFrameLayer4TypeTcp;
Layout->Layer4HeaderLength = sizeof(TCP_HDR);
Expand Down Expand Up @@ -6428,7 +6428,7 @@ GenericTxChecksumOffloadUdp(
Layout->Layer2HeaderLength = sizeof(ETHERNET_HEADER);
Layout->Layer3Type =
Af == AF_INET6 ?
XdpFrameLayer3TypeIPv6UnspecifiedExtensions : XdpFrameLayer3TypeIPv4UnspecifiedOptions;
XdpFrameLayer3TypeIPv6NoExtensions : XdpFrameLayer3TypeIPv4UnspecifiedOptions;
Layout->Layer3HeaderLength = Af == AF_INET6 ? sizeof(IPV6_HEADER) : sizeof(IPV4_HEADER);
Layout->Layer4Type = XdpFrameLayer4TypeUdp;
Layout->Layer4HeaderLength = sizeof(UDP_HDR);
Expand Down

0 comments on commit 0554362

Please sign in to comment.