Thread (6 messages) flat view 6 messages, 4 authors, 2017-09-06

Re: [PATCH net-next RFC 2/2] tun: enable napi_gro_frags() for TUN/TAP driver

From: Eric Dumazet <hidden>
Date: 2017-09-06 18:01:38

On Tue, 2017-09-05 at 15:35 -0700, Petar Penkov wrote:
Add a TUN/TAP receive mode that exercises the napi_gro_frags()
interface. This mode is available only in TAP mode, as the interface
expects packets with Ethernet headers.

Hi Petar, thanks a lot for this work.

I must confess I have to retract one feedback I gave while reviewing
your patches.

+		local_bh_disable();
+		data = napi_alloc_frag(fragsz);
+		local_bh_enable();
+		if (!data) {
+			err = -ENOMEM;
+			goto free;
+		}
+
+		page = virt_to_page(data);
+		offset = offset_in_page(data);
These two lines above indeed trigger too many problems in the kernel.
(Like the one you tried to cover here
https://patchwork.kernel.org/patch/9927927/ )

Please use for your next submission the code you originally had :

	page = virt_to_head_page(data);
	offset = data - page_address(page);


Thanks !
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help