rtnetlink: stats: reject requests for unknown stats
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 18 Jan 2019 18:46:15 +0000 (10:46 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Jan 2019 18:09:58 +0000 (10:09 -0800)
commit6300acb2eb560496e3560ba709c4f3ea042dadbc
tree97e07f46c23072c6c3db89c3ba05c05f03358a2d
parent51bc860d4a997139a3f12bedb96bbf0edcf22d51
rtnetlink: stats: reject requests for unknown stats

In the spirit of strict checks reject requests of stats the kernel
does not support when NETLINK_F_STRICT_CHK is set.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c