This repository was archived by the owner on Apr 20, 2024. It is now read-only.
File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,6 @@ jobs:
137
137
# Run tests
138
138
/usr/local/bin/ginkgo --nodes=25 \
139
139
--focus="Netpol" \
140
- --skip="SCTP" \
141
140
/usr/local/bin/e2e.test \
142
141
-- \
143
142
--kubeconfig=${PWD}/_artifacts/kubeconfig.conf \
Original file line number Diff line number Diff line change @@ -249,9 +249,20 @@ func (c *Controller) Run(ctx context.Context) error {
249
249
go wait .Until (func () { c .syncNFTablesRules (ctx ) }, 60 * time .Second , ctx .Done ())
250
250
}
251
251
252
+ // https://netfilter.org/projects/libnetfilter_queue/doxygen/html/group__Queue.html
253
+ // the kernel will not normalize offload packets,
254
+ // i.e. your application will need to be able to handle packets larger than the mtu.
255
+ // Normalization is expensive, so this flag should always be set.
256
+ var flags uint32
257
+ flags = nfqueue .NfQaCfgFlagGSO
258
+ if c .config .FailOpen {
259
+ flags += nfqueue .NfQaCfgFlagFailOpen
260
+ }
261
+
252
262
// Set configuration options for nfqueue
253
263
config := nfqueue.Config {
254
264
NfQueue : uint16 (c .config .QueueID ),
265
+ Flags : flags ,
255
266
MaxPacketLen : 128 , // only interested in the headers
256
267
MaxQueueLen : 1024 ,
257
268
Copymode : nfqueue .NfQnlCopyPacket , // headers
You can’t perform that action at this time.
0 commit comments