mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
macvlan: use netdev_is_rx_handler_busy instead of checking specific type
netdev_is_rx_handler_busy() check is a superset of netif_is_ipvlan_port() check and hence should be preferred. Signed-off-by: Mahesh Bandewar <maheshb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c3262d9dec
commit
322dc6e067
1 changed files with 1 additions and 1 deletions
|
@ -1110,7 +1110,7 @@ static int macvlan_port_create(struct net_device *dev)
|
||||||
if (dev->type != ARPHRD_ETHER || dev->flags & IFF_LOOPBACK)
|
if (dev->type != ARPHRD_ETHER || dev->flags & IFF_LOOPBACK)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
if (netif_is_ipvlan_port(dev))
|
if (netdev_is_rx_handler_busy(dev))
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
|
||||||
port = kzalloc(sizeof(*port), GFP_KERNEL);
|
port = kzalloc(sizeof(*port), GFP_KERNEL);
|
||||||
|
|
Loading…
Add table
Reference in a new issue