[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20150129.141558.2191091565448535105.davem@davemloft.net>
Date: Thu, 29 Jan 2015 14:15:58 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: david.stevens@...cle.com, netdev@...r.kernel.org,
sowmini.varadhan@...cle.com
Subject: Re: [PATCHv2 net] sunvnet: set queue mapping when doing packet
copies
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Thu, 29 Jan 2015 12:39:56 -0800
> On Thu, 2015-01-29 at 14:42 -0500, David L Stevens wrote:
>> @@ -1123,6 +1123,16 @@ static inline struct sk_buff *vnet_skb_shape(struct sk_buff *skb, int ncookies)
>> skb_shinfo(nskb)->gso_size = skb_shinfo(skb)->gso_size;
>> skb_shinfo(nskb)->gso_type = skb_shinfo(skb)->gso_type;
>> }
>> + nskb->queue_mapping = skb->queue_mapping;
>> + /* Following permits correct back-pressure, for protocols
>> + * using skb_set_owner_w().
>> + * Idea is to transfer ownership from skb to nskb.
>> + */
>> + if (skb->destructor == sock_wfree) {
>
> Sorry, but you should remove this test.
>
> (TCP uses another destructor, not sock_wfree())
>
> All sent packets will support these swap() operations,
> regardless of destructor.
Then we need to fix skb_segment() too.
--
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