OSDN Git Service

net: mhi: Improve MBIM packet counting
authorRichard Laing <richard.laing@alliedtelesis.co.nz>
Mon, 26 Jul 2021 05:30:03 +0000 (17:30 +1200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Jul 2021 11:21:00 +0000 (12:21 +0100)
commite129f6b5aeb3e1af8792fd565dc913fecafb76f9
treebce857594f16b4b86ac862351b7c06b55cf8d48a
parenta0302ff5906ac021d1d79cecd7b710970e40e588
net: mhi: Improve MBIM packet counting

Packets are aggregated over the MBIM link and currently the MHI net
device will count each aggregated packet rather then the actual
packets themselves.

If a protocol handler module is specified, use that to count the
packets rather than directly in the MHI net device. This is in line
with the behaviour of the USB net cdc_mbim driver.

Signed-off-by: Richard Laing <richard.laing@alliedtelesis.co.nz>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mhi/net.c
drivers/net/mhi/proto_mbim.c