[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1358316108.19956.82.camel@edumazet-glaptop>
Date: Tue, 15 Jan 2013 22:01:48 -0800
From: Eric Dumazet <eric.dumazet@...il.com>
To: Ben Greear <greearb@...delatech.com>,
David Miller <davem@...emloft.net>
Cc: netdev <netdev@...r.kernel.org>
Subject: Re: 802.1q HW filter spammage in 3.7.2+ kernels.
From: Eric Dumazet <edumazet@...gle.com>
On Tue, 2013-01-15 at 17:36 -0800, Ben Greear wrote:
> My kernel logs are full of this (I have 2000 macvlans).
Are you using 2000 macvlans on the same device ? Interesting...
I am wondering how multicast/broadcast messages don't generate a huge
load and packet drops, since we clone packets for every macvlan, and
queue then to netif_rx()
I guess you dont use IPv6 on these macvlans ?
While reviewing the code, I found this small bug.
[PATCH] macvlan: fix macvlan_get_size()
Signed-off-by: Eric Dumazet <edumazet@...gle.com>
---
drivers/net/macvlan.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c
index 1047e58..f4f2790 100644
--- a/drivers/net/macvlan.c
+++ b/drivers/net/macvlan.c
@@ -828,7 +828,12 @@ static int macvlan_changelink(struct net_device *dev,
static size_t macvlan_get_size(const struct net_device *dev)
{
- return nla_total_size(4);
+ return
+ /* IFLA_MACVLAN_MODE, */
+ nla_total_size(4) +
+ /* IFLA_MACVLAN_FLAGS */
+ nla_total_size(2) +
+ 0;
}
static int macvlan_fill_info(struct sk_buff *skb,
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists