net: devinet: Add support for RTM_DELNETCONF
authorDavid Ahern <dsa@cumulusnetworks.com>
Tue, 28 Mar 2017 21:28:03 +0000 (14:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Mar 2017 05:32:42 +0000 (22:32 -0700)
commitb5c9641d3d45e58dbcb35090345f863e5ade718d
tree060f381cbc580619836a2742fecb3dd3647bd5ba
parent3b0228656dcb07a1c9fc81e8516475c2d7c4300e
net: devinet: Add support for RTM_DELNETCONF

Send RTM_DELNETCONF notifications when a device is deleted. The message only
needs the device index, so modify inet_netconf_fill_devconf to skip devconf
references if it is NULL.

Allows a userspace cache to remove entries as devices are deleted.

Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/devinet.c