[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080916073632.GA25226@mtls03>
Date: Tue, 16 Sep 2008 10:36:32 +0300
From: Eli Cohen <eli@....mellanox.co.il>
To: netdev@...r.kernel.org, themann@...ibm.com,
linux-kernel@...r.kernel.org
Subject: LRO num of frags limit
Hi,
looking at the LRO code, at __lro_proc_segment(), it seems that the
network driver can configure lro_mgr->max_aggr to any value it wants
while the number of fragments aggregated must not exceed MAX_SKB_FRAGS
(since we only use a single SKB to aggregate fragments, allocated by
lro_gen_skb()). Moreover, even if the driver does limit
lro_mgr->max_aggr to MAX_SKB_FRAGS, it might still cause overflow
since subsequent aggregations are done at lro_add_frags() which is
called before checking whether we overflow.
If the above observation is correct, I can send a patch.
Thanks,
Eli
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists