Skip to content

Commit

Permalink
Addressing reviewer's comments
Browse files Browse the repository at this point in the history
Signed-off-by: Jay Sheth <jaykumar.sheth@walmart.com>
  • Loading branch information
jaysheth2 committed Apr 8, 2024
1 parent 8072eeb commit d3eb1a6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions kf/kf_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,15 +236,12 @@ func (b *BPF) LoadTCAttachProgram(ifaceName, direction string) error {
switch qdisc.Kind {
case "clsact":
clsactFound = true
break
case "htb":
htbFound = true
htbHandle = qdisc.Msg.Handle
break
case "ingress":
ingressFound = true
ingressHandle = qdisc.Msg.Handle
break
default:
log.Info().Msgf("Un-supported qdisc kind for interface %s ", ifaceName)
}
Expand Down Expand Up @@ -398,15 +395,12 @@ func (b *BPF) UnloadTCProgram(ifaceName, direction string) error {
switch qdisc.Kind {
case "clsact":
clsactFound = true
break
case "htb":
htbFound = true
htbHandle = qdisc.Msg.Handle
break
case "ingress":
ingressFound = true
ingressHandle = qdisc.Msg.Handle
break
default:
log.Info().Msgf("qdisc kind for %s : %v", ifaceName, err)
}
Expand Down

0 comments on commit d3eb1a6

Please sign in to comment.