net: introduce IFF_NO_RX_HANDLER
authorPaolo Abeni <pabeni@redhat.com>
Fri, 9 Mar 2018 09:39:24 +0000 (10:39 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Mar 2018 18:00:08 +0000 (13:00 -0500)
commitf5426250a6ecfd1e9b2d5e0daf07565f664aa67d
tree581f433bcf7a7a09e5d869aaeeee045bb2725ff5
parentd185efc1da089b968dfe1825329c51820d661755
net: introduce IFF_NO_RX_HANDLER

Some network devices - notably ipvlan slave - are not compatible with
any kind of rx_handler. Currently the hook can be installed but any
configuration (bridge, bond, macsec, ...) is nonfunctional.

This change allocates a priv_flag bit to mark such devices and explicitly
forbid installing a rx_handler if such bit is set. The new bit is used
by ipvlan slave device.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipvlan/ipvlan_main.c
include/linux/netdevice.h
net/core/dev.c