]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen-netfront: use gref mappings for Tx buffers
authorJoao Martins <joao.m.martins@oracle.com>
Fri, 12 May 2017 08:46:47 +0000 (09:46 +0100)
committerJoao Martins <joao.m.martins@oracle.com>
Wed, 31 May 2017 21:52:04 +0000 (22:52 +0100)
commit8bcef7accc6ded05728504d71b04f616cb5e6d4c
treee6859c9796f2713aa1074e6c1112bc06e7fa0ef3
parent364873b1b0f2579693e432b038c696cc1f7c63f4
xen-netfront: use gref mappings for Tx buffers

This is done in order to allow user to avoid grant paths,
by resorting to copying instead. Since we aren't guaranteed
to reuse pages on stack transmit, hence we can only reliably
copy to the Tx granted pages. Hence we keep a shadow pool and
use that instead. We don't require coalescing Tx requests, as
we already linearize the skb when required slots > available
slots.

Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Reviewed-by: Shannon Nelson <shannon.nelson@oracle.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Orabug: 26107942
drivers/net/xen-netfront.c