diff options
| author | Johannes Berg <[email protected]> | 2024-11-08 10:41:44 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-11-11 18:32:06 +0000 |
| commit | 7f4b3960e54faec72132a71da4a84a8e2a0b9037 (patch) | |
| tree | e63b18683db35079080299f013b2e0cc913a2532 /net/sched/cls_api.c | |
| parent | bridge: Allow deleting FDB entries with non-existent VLAN (diff) | |
| download | kernel-7f4b3960e54faec72132a71da4a84a8e2a0b9037.tar.gz kernel-7f4b3960e54faec72132a71da4a84a8e2a0b9037.zip | |
net: netlink: add nla_get_*_default() accessors
There are quite a number of places that use patterns
such as
if (attr)
val = nla_get_u16(attr);
else
val = DEFAULT;
Add nla_get_u16_default() and friends like that to
not have to type this out all the time.
Acked-by: Toke Høiland-Jørgensen <[email protected]>
Acked-by: Jakub Kicinski <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
Link: https://patch.msgid.link/20241108114145.acd2aadb03ac.I3df6aac71d38a5baa1c0a03d0c7e82d4395c030e@changeid
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/sched/cls_api.c')
0 files changed, 0 insertions, 0 deletions
