Skip to content

Commit

Permalink
fix deprecation comment and suppress unused linter
Browse files Browse the repository at this point in the history
    nl/tc_linux.go:1079:2: const `__TCA_FLOWER_MAX` is unused (unused)
        __TCA_FLOWER_MAX
        ^
    ioctl_linux.go:31:2: const `_ETH_SS_NTUPLE_FILTERS` is unused (unused)
        _ETH_SS_NTUPLE_FILTERS
        ^

Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed Jan 21, 2025
1 parent 5751e84 commit 6b4ed95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions ioctl_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ const (
ETH_SS_STATS
// ETH_SS_PRIV_FLAGS are driver private flag names
ETH_SS_PRIV_FLAGS
// _ETH_SS_NTUPLE_FILTERS is deprecated
_ETH_SS_NTUPLE_FILTERS

// Deprecated: _ETH_SS_NTUPLE_FILTERS is deprecated
_ETH_SS_NTUPLE_FILTERS //nolint:unused
// ETH_SS_FEATURES are device feature names
ETH_SS_FEATURES
// ETH_SS_RSS_HASH_FUNCS is RSS hush function names
Expand Down
6 changes: 3 additions & 3 deletions nl/tc_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,15 +434,15 @@ const (
TCA_HTB_MAX = TCA_HTB_CEIL64
)

//struct tc_htb_opt {
// struct tc_htb_opt {
// struct tc_ratespec rate;
// struct tc_ratespec ceil;
// __u32 buffer;
// __u32 cbuffer;
// __u32 quantum;
// __u32 level; /* out only */
// __u32 prio;
//};
// };

type TcHtbCopt struct {
Rate TcRateSpec
Expand Down Expand Up @@ -1112,7 +1112,7 @@ const (
TCA_FLOWER_KEY_ENC_OPTS
TCA_FLOWER_KEY_ENC_OPTS_MASK

__TCA_FLOWER_MAX
__TCA_FLOWER_MAX //nolint:unused
)

const TCA_CLS_FLAGS_SKIP_HW = 1 << 0 /* don't offload filter to HW */
Expand Down

0 comments on commit 6b4ed95

Please sign in to comment.