Thread (14 messages) flat view 14 messages, 3 authors, 2021-06-16

Re: [PATCH net] qmi_wwan: Clone the skb when in pass-through mode

From: Bjørn Mork <bjorn@mork.no>
Date: 2021-06-15 13:40:14

Kristian Evensen [off-list ref] writes:
On Tue, Jun 15, 2021 at 12:51 PM Kristian Evensen
[off-list ref] wrote:
quoted
I think this would be a really nice solution. The same (at least
FLAG_MULTI_PACKET + usbnet_skb_return) could be applied to pass
through as well, giving us consistent handling of aggregated packets.
While we might not save a huge number of lines, I believe the
resulting code will be easier to understand.
Apologies for the noise. When I check the code again, I see that as
long as FLAG_MULTI_PACKET is set, then we end up with usbnet freeing
the skb (we will always jump to done in rx_process()). So for the
pass-through case, I believe your initial suggestion of having
rx_fixup return 1 is the way to go.
Yes, if we are to use FLAG_MULTI_PACKET then we must call
usbnet_skb_return() for all the non-muxed cases.  There is no clean way
to enable FLAG_MULTI_PACKET on-demand.

I am fine with either solution.  Whatever Jakub wants :-)


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