Re: [PATCH 5/6] xen-netback: coalesce slots before copying
From: David Miller <davem@davemloft.net>
Date: 2013-03-25 16:20:54
From: David Miller <davem@davemloft.net>
Date: 2013-03-25 16:20:54
From: Wei Liu <redacted> Date: Mon, 25 Mar 2013 11:08:21 +0000
This patch tries to coalesce tx requests when constructing grant copy structures. It enables netback to deal with situation when frontend's MAX_SKB_FRAGS is larger than backend's MAX_SKB_FRAGS. It defines max_skb_slots, which is a estimation of the maximum number of slots a guest can send, anything bigger than that is considered malicious. Now it is set to 20, which should be enough to accommodate Linux (16 to 19). Also change variable name from "frags" to "slots" in netbk_count_requests. Signed-off-by: Wei Liu <redacted>
Please resubmit after you've incorporated the feedback you've received.