]> git.baikalelectronics.ru Git - kernel.git/commit
net: cdc_ncm: export NCM Transfer Block (NTB) parameters
authorBjørn Mork <bjorn@mork.no>
Fri, 30 May 2014 07:31:08 +0000 (09:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Jun 2014 23:01:31 +0000 (16:01 -0700)
commitb30f639e2344bbb9829865bc4b087e7a3c9e6cdc
treea0daf5e392145a2a974b6eefc7c945a5039489c6
parent9379526a6384e8ae6568bac6a286c59367e2c6f1
net: cdc_ncm: export NCM Transfer Block (NTB) parameters

The mandatory GetNtbParameters control request is an important part of
the host <-> device protocol negotiation in CDC NCM (and CDC MBIM). It
gives device limits which the host must obey when configuring the
protocol aggregation variables. The driver will enforce this by
rejecting attempts to set any of the tunable variables to a value
which is not supported by the device.  Exporting the parameter block
helps userspace decide which values are allowed without resorting
to trial and error.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_ncm.c