[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140318.141832.128982738782126838.davem@davemloft.net>
Date: Tue, 18 Mar 2014 14:18:32 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: john.fastabend@...il.com, netdev@...r.kernel.org, tgraf@...g.ch
Subject: Re: [PATCH v2 net-next] net: sched: use no more than one page in
struct fw_head
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Mon, 17 Mar 2014 20:20:49 -0700
> From: Eric Dumazet <edumazet@...gle.com>
>
> In commit b4e9b520ca5d ("[NET_SCHED]: Add mask support to fwmark
> classifier") Patrick added an u32 field in fw_head, making it slightly
> bigger than one page.
>
> Lets use 256 slots to make fw_hash() more straight forward, and move
> @mask to the beginning of the structure as we often use a small number
> of skb->mark. @mask and first hash buckets share the same cache line.
>
> This brings back the memory usage to less than 4000 bytes, and permits
> John to add a rcu_head at the end of the structure later without any
> worry.
>
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
Applied, thanks Eric.
--
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