projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b0b04f
)
[MACVLAN]: Remove unnecessary IFF_UP check
author
Patrick McHardy
<kaber@trash.net>
Tue, 20 Nov 2007 06:00:00 +0000
(22:00 -0800)
committer
David S. Miller
<davem@davemloft.net>
Mon, 28 Jan 2008 22:54:23 +0000
(14:54 -0800)
Only devices that are UP are in the hash, so macvlan_broadcast() doesn't
need to check for IFF_UP.
Signed-off-by: Patrick McHardy <kaber@trash.net>
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 e8dc2f44fec960d9d3b58127699e5a4ed9eee838..9f4d65c3095fecce519bd0b6e8e2c0d21cbdf03b 100644
(file)
--- a/
drivers/net/macvlan.c
+++ b/
drivers/net/macvlan.c
@@
-73,8
+73,6
@@
static void macvlan_broadcast(struct sk_buff *skb,
for (i = 0; i < MACVLAN_HASH_SIZE; i++) {
hlist_for_each_entry_rcu(vlan, n, &port->vlan_hash[i], hlist) {
dev = vlan->dev;
- if (unlikely(!(dev->flags & IFF_UP)))
- continue;
nskb = skb_clone(skb, GFP_ATOMIC);
if (nskb == NULL) {