OSDN Git Service

team: add missing attribute validation for port ifindex
authorJakub Kicinski <kuba@kernel.org>
Tue, 3 Mar 2020 05:05:21 +0000 (21:05 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Mar 2020 21:28:48 +0000 (13:28 -0800)
commitdd25cb272ccce4db67dc8509278229099e4f5e99
tree7b10456aef45baee2e4e0f9192850984d2968f66
parente13aaa0643da10006ec35715954e7f92a62899a5
team: add missing attribute validation for port ifindex

Add missing attribute validation for TEAM_ATTR_OPTION_PORT_IFINDEX
to the netlink policy.

Fixes: 80f7c6683fe0 ("team: add support for per-port options")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/team/team.c