usbnet: ipheth: transmit URBs without trailing padding
authorFoster Snowhill <forst@pen.gy>
Wed, 7 Jun 2023 13:57:00 +0000 (15:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Jun 2023 09:26:57 +0000 (10:26 +0100)
commit3e65efcca87a9bb5f3b864e0a43d167bc0a8688c
tree7bc5a7274a2010aa5647c14c455fdf17469c021c
parent2203718c2f59ffdd6c78d54e5add594aebb4461e
usbnet: ipheth: transmit URBs without trailing padding

The behaviour of the official iOS tethering driver on macOS is to not
transmit any trailing padding at the end of URBs. This is applicable
to both NCM and legacy modes, including older devices.

Adapt the driver to not include trailing padding in TX URBs, matching
the behaviour of the official macOS driver.

Signed-off-by: Foster Snowhill <forst@pen.gy>
Tested-by: Georgi Valkov <gvalkov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/ipheth.c