[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140923.144432.343377380510348797.davem@davemloft.net>
Date: Tue, 23 Sep 2014 14:44:32 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: david.stevens@...cle.com
Cc: Raghuram.Kothakota@...cle.com, netdev@...r.kernel.org
Subject: Re: [PATCHv6 net-next 1/3] sunvnet: upgrade to VIO protocol
version 1.6
From: David L Stevens <david.stevens@...cle.com>
Date: Tue, 23 Sep 2014 12:49:27 -0400
> Actually, that's exactly what I've been working on for the last few
> days. I hope to post this soon. Currently, I allow for misaligned
> packets by reallocating the skbs with the proper alignment, skip and
> length restrictions, so the code can handle either, but still copies
> most of the time. Once I have all the kinks worked out there, I was
> planning to possibly make *all* skb allocations on LDOMs and/or SPARC64 fit
> those requirements, since they are compatible with the existing alignments
> and would allow using the HV copy in any case.
You should be able to avoid the copy on TX almost all of the time.
If you do a skb_push(skb, VNET_PACKET_SKIP) (and initialize with some
garbage bytes) it ought to be aligned.
If not, we could tool around with the hard_header_ops to make
things come out the way we need it to.
--
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