search for: netbk_gop_frag_copy

Displaying 3 results from an estimated 3 matches for "netbk_gop_frag_copy".

2013 Jul 09
20
[PATCH 1/1] xen/netback: correctly calculate required slots of skb.
...rivers/net/xen-netback/netback.c index 8c20935..7ff9333 100644 --- a/drivers/net/xen-netback/netback.c +++ b/drivers/net/xen-netback/netback.c @@ -359,51 +359,88 @@ static bool start_new_rx_buffer(int offset, unsigned long size, int head) * the guest. This function is essentially a dry run of * netbk_gop_frag_copy. */ -unsigned int xen_netbk_count_skb_slots(struct xenvif *vif, struct sk_buff *skb) +static void netbk_get_slots(struct xenvif *vif, struct sk_buff *skb, + struct page *page, int *copy_off, + unsigned long size, unsigned long offset, + int *head, int *count) { - unsigned int c...
2012 Aug 13
9
[PATCH RFC] xen/netback: Count ring slots properly when larger MTU sizes are used
Hi, I ran into an issue where netback driver is crashing with BUG_ON(npo.meta_prod > ARRAY_SIZE(netbk->meta)). It is happening in Intel 10Gbps network when larger mtu values are used. The problem seems to be the way the slots are counted. After applying this patch things ran fine in my environment. I request to validate my changes. Thanks Siva
2013 Jul 10
13
[PATCH v2 1/1] xen/netback: correctly calculate required slots of skb.
...+ b/drivers/net/xen-netback/netback.c @@ -354,56 +354,84 @@ static bool start_new_rx_buffer(int offset, unsigned long size, int head) return false; } -/* - * Figure out how many ring slots we''re going to need to send @skb to - * the guest. This function is essentially a dry run of - * netbk_gop_frag_copy. - */ -unsigned int xen_netbk_count_skb_slots(struct xenvif *vif, struct sk_buff *skb) +static int netbk_count_slots(struct xenvif *vif, struct sk_buff *skb, + int *copy_off, unsigned long size, + unsigned long offset, int *head) { - unsigned int count; - int i, copy_off; + unsigned lo...