Skip to content

Commit 90a7138

Browse files
f0rm2l1nPaolo Abeni
authored andcommitted
net/neighbor: add missing policy for NDTPA_QUEUE_LENBYTES
Previous commit 8b5c171 ("neigh: new unresolved queue limits") introduces new netlink attribute NDTPA_QUEUE_LENBYTES to represent approximative value for deprecated QUEUE_LEN. However, it forgot to add the associated nla_policy in nl_ntbl_parm_policy array. Fix it with one simple NLA_U32 type policy. Fixes: 8b5c171 ("neigh: new unresolved queue limits") Signed-off-by: Lin Ma <linma@zju.edu.cn> Link: https://patch.msgid.link/20250315165113.37600-1-linma@zju.edu.cn Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent 23b7633 commit 90a7138

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/core/neighbour.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2250,6 +2250,7 @@ static const struct nla_policy nl_neightbl_policy[NDTA_MAX+1] = {
22502250
static const struct nla_policy nl_ntbl_parm_policy[NDTPA_MAX+1] = {
22512251
[NDTPA_IFINDEX] = { .type = NLA_U32 },
22522252
[NDTPA_QUEUE_LEN] = { .type = NLA_U32 },
2253+
[NDTPA_QUEUE_LENBYTES] = { .type = NLA_U32 },
22532254
[NDTPA_PROXY_QLEN] = { .type = NLA_U32 },
22542255
[NDTPA_APP_PROBES] = { .type = NLA_U32 },
22552256
[NDTPA_UCAST_PROBES] = { .type = NLA_U32 },

0 commit comments

Comments
 (0)