Skip to content

Commit 0298f93

Browse files
authored
remove unused xdp skip xsum logic (#5108)
1 parent ae93aad commit 0298f93

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/platform/datapath_raw_xdp_win.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ typedef struct XDP_DATAPATH {
4444
uint32_t TxRingSize;
4545
uint32_t PollingIdleTimeoutUs;
4646
BOOLEAN TxAlwaysPoke;
47-
BOOLEAN SkipXsum;
4847
BOOLEAN Running; // Signal to stop partitions.
4948

5049
XDP_PARTITION Partitions[0];
@@ -314,10 +313,6 @@ CxPlatXdpReadConfig(
314313
Xdp->TxRingSize = strtoul(Value, NULL, 10);
315314
} else if (strcmp(Line, "TxAlwaysPoke") == 0) {
316315
Xdp->TxAlwaysPoke = !!strtoul(Value, NULL, 10);
317-
} else if (strcmp(Line, "SkipXsum") == 0) {
318-
BOOLEAN State = !!strtoul(Value, NULL, 10);
319-
Xdp->SkipXsum = State;
320-
printf("SkipXsum: %u\n", State);
321316
}
322317
}
323318

@@ -436,10 +431,6 @@ CxPlatDpRawInterfaceInitialize(
436431
QUIC_STATUS Status;
437432

438433
CxPlatLockInitialize(&Interface->RuleLock);
439-
Interface->OffloadStatus.Receive.NetworkLayerXsum = Xdp->SkipXsum;
440-
Interface->OffloadStatus.Receive.TransportLayerXsum = Xdp->SkipXsum;
441-
Interface->OffloadStatus.Transmit.NetworkLayerXsum = Xdp->SkipXsum;
442-
Interface->OffloadStatus.Transmit.NetworkLayerXsum = Xdp->SkipXsum;
443434
Interface->Xdp = Xdp;
444435

445436
Interface->QueueCount = (uint16_t)CxPlatProcCount();

0 commit comments

Comments
 (0)