Commit af65a3b
committed
net: nexthop: Add NHA_OP_FLAGS
JIRA: https://issues.redhat.com/browse/RHEL-59118
commit a207eab
Author: Petr Machata <petrm@nvidia.com>
Date: Wed Mar 6 13:49:16 2024 +0100
net: nexthop: Add NHA_OP_FLAGS
In order to add per-nexthop statistics, but still not increase netlink
message size for consumers that do not care about them, there needs to be a
toggle through which the user indicates their desire to get the statistics.
To that end, add a new attribute, NHA_OP_FLAGS. The idea is to be able to
use the attribute for carrying of arbitrary operation-specific flags, i.e.
not make it specific for get / dump.
Add the new attribute to get and dump policies, but do not actually allow
any flags yet -- those will come later as the flags themselves are defined.
Add the necessary parsing code.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>1 parent 56e7028 commit af65a3b
2 files changed
+23
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
2969 | 2971 | | |
2970 | 2972 | | |
2971 | 2973 | | |
2972 | | - | |
| 2974 | + | |
2973 | 2975 | | |
2974 | 2976 | | |
2975 | 2977 | | |
| |||
2990 | 2992 | | |
2991 | 2993 | | |
2992 | 2994 | | |
| 2995 | + | |
| 2996 | + | |
| 2997 | + | |
| 2998 | + | |
| 2999 | + | |
2993 | 3000 | | |
2994 | 3001 | | |
2995 | 3002 | | |
| |||
3005 | 3012 | | |
3006 | 3013 | | |
3007 | 3014 | | |
| 3015 | + | |
3008 | 3016 | | |
3009 | 3017 | | |
3010 | 3018 | | |
| |||
3013 | 3021 | | |
3014 | 3022 | | |
3015 | 3023 | | |
3016 | | - | |
| 3024 | + | |
3017 | 3025 | | |
3018 | 3026 | | |
3019 | 3027 | | |
| |||
3034 | 3042 | | |
3035 | 3043 | | |
3036 | 3044 | | |
| 3045 | + | |
3037 | 3046 | | |
3038 | 3047 | | |
3039 | 3048 | | |
| |||
3042 | 3051 | | |
3043 | 3052 | | |
3044 | 3053 | | |
3045 | | - | |
| 3054 | + | |
3046 | 3055 | | |
3047 | 3056 | | |
3048 | 3057 | | |
| |||
3078 | 3087 | | |
3079 | 3088 | | |
3080 | 3089 | | |
| 3090 | + | |
3081 | 3091 | | |
3082 | 3092 | | |
3083 | 3093 | | |
| |||
3149 | 3159 | | |
3150 | 3160 | | |
3151 | 3161 | | |
| 3162 | + | |
| 3163 | + | |
| 3164 | + | |
| 3165 | + | |
| 3166 | + | |
3152 | 3167 | | |
3153 | 3168 | | |
3154 | 3169 | | |
| |||
3478 | 3493 | | |
3479 | 3494 | | |
3480 | 3495 | | |
| 3496 | + | |
3481 | 3497 | | |
3482 | 3498 | | |
3483 | 3499 | | |
3484 | 3500 | | |
3485 | 3501 | | |
3486 | 3502 | | |
3487 | 3503 | | |
3488 | | - | |
| 3504 | + | |
3489 | 3505 | | |
3490 | 3506 | | |
3491 | 3507 | | |
| |||
0 commit comments