Skip to content

Commit 4d569a8

Browse files
committed
fix deprecation comment and suppress unused linter
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]>
1 parent bbcf2d6 commit 4d569a8

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

ioctl_linux.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ const (
2727
ETH_SS_STATS
2828
// ETH_SS_PRIV_FLAGS are driver private flag names
2929
ETH_SS_PRIV_FLAGS
30-
// _ETH_SS_NTUPLE_FILTERS is deprecated
31-
_ETH_SS_NTUPLE_FILTERS
30+
31+
// Deprecated: _ETH_SS_NTUPLE_FILTERS is deprecated
32+
_ETH_SS_NTUPLE_FILTERS //nolint:unused
3233
// ETH_SS_FEATURES are device feature names
3334
ETH_SS_FEATURES
3435
// ETH_SS_RSS_HASH_FUNCS is RSS hush function names

nl/tc_linux.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -434,15 +434,15 @@ const (
434434
TCA_HTB_MAX = TCA_HTB_CEIL64
435435
)
436436

437-
//struct tc_htb_opt {
437+
// struct tc_htb_opt {
438438
// struct tc_ratespec rate;
439439
// struct tc_ratespec ceil;
440440
// __u32 buffer;
441441
// __u32 cbuffer;
442442
// __u32 quantum;
443443
// __u32 level; /* out only */
444444
// __u32 prio;
445-
//};
445+
// };
446446

447447
type TcHtbCopt struct {
448448
Rate TcRateSpec
@@ -1112,7 +1112,7 @@ const (
11121112
TCA_FLOWER_KEY_ENC_OPTS
11131113
TCA_FLOWER_KEY_ENC_OPTS_MASK
11141114

1115-
__TCA_FLOWER_MAX
1115+
__TCA_FLOWER_MAX //nolint:unused
11161116
)
11171117

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

0 commit comments

Comments
 (0)