projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3262d9
)
macvlan: use netdev_is_rx_handler_busy instead of checking specific type
author
Mahesh Bandewar
<maheshb@google.com>
Wed, 18 Jan 2017 23:02:55 +0000
(15:02 -0800)
committer
David S. Miller
<davem@davemloft.net>
Fri, 20 Jan 2017 17:22:26 +0000
(12:22 -0500)
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>
drivers/net/macvlan.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/macvlan.c
b/drivers/net/macvlan.c
index 440ab3d8adf7c7ec577fcb8a90bca938345cae26..cbfc1be23a0e33c9b45f86798f459fa35bb4e85e 100644
(file)
--- a/
drivers/net/macvlan.c
+++ b/
drivers/net/macvlan.c
@@
-1110,7
+1110,7
@@
static int macvlan_port_create(struct net_device *dev)
if (dev->type != ARPHRD_ETHER || dev->flags & IFF_LOOPBACK)
return -EINVAL;
- if (net
if_is_ipvlan_port
(dev))
+ if (net
dev_is_rx_handler_busy
(dev))
return -EBUSY;
port = kzalloc(sizeof(*port), GFP_KERNEL);