]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit17dd59d1e192860704b613885f94cca759076aa0
treebce857594f16b4b86ac862351b7c06b55cf8d48a
parentf8e40e57412cc2e701e06f423fec117f9aa770cd
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