Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Lan <[email protected]>
  • Loading branch information
hangyan and luolanzone authored Apr 7, 2024
1 parent 0d70668 commit 7131e9e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pkg/agent/openflow/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ type traceableFeature interface {
timeoutSeconds uint16) []binding.Flow
}

type sampleFeature interface {
flowsToSample(dataplaneTag uint8,
type samplingFeature interface {
flowsToSampling(dataplaneTag uint8,
ovsMetersAreSupported,
senderOnly bool,
receiverOnly bool,
Expand Down
2 changes: 1 addition & 1 deletion pkg/agent/openflow/packetin.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const (
// PacketInCategorySvcReject is used to process the Service packets not matching any
// Endpoints within packetIn message.
PacketInCategorySvcReject
// PacketSampling is used for packetIn messages related to sampling.
// PacketInCategoryPS is used for packetIn messages related to sampling.
PacketInCategoryPS

// PacketIn operations below are used to decide which operation(s) should be
Expand Down
2 changes: 1 addition & 1 deletion pkg/agent/openflow/packetsampling.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 Antrea Authors
// Copyright 2024 Antrea Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pkg/agent/openflow/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ type client struct {
traceableFeatures []traceableFeature

featurePacketSampling *featurePacketSampling
sampleFeatures []sampleFeature
samplingFeatures []samplingFeature

pipelines map[binding.PipelineID]binding.Pipeline

Expand Down

0 comments on commit 7131e9e

Please sign in to comment.