Skip to content

Commit c75b050

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 946e9ac commit c75b050

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

ioctl_linux.go

Lines changed: 3 additions & 2 deletions
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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,15 +445,15 @@ const (
445445
TCA_HTB_MAX = TCA_HTB_CEIL64
446446
)
447447

448-
//struct tc_htb_opt {
448+
// struct tc_htb_opt {
449449
// struct tc_ratespec rate;
450450
// struct tc_ratespec ceil;
451451
// __u32 buffer;
452452
// __u32 cbuffer;
453453
// __u32 quantum;
454454
// __u32 level; /* out only */
455455
// __u32 prio;
456-
//};
456+
// };
457457

458458
type TcHtbCopt struct {
459459
Rate TcRateSpec
@@ -1123,7 +1123,7 @@ const (
11231123
TCA_FLOWER_KEY_ENC_OPTS
11241124
TCA_FLOWER_KEY_ENC_OPTS_MASK
11251125

1126-
__TCA_FLOWER_MAX
1126+
__TCA_FLOWER_MAX //nolint:unused
11271127
)
11281128

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

0 commit comments

Comments
 (0)