staging: vt6656: Use sk_buff buffer for tx header
authorMalcolm Priestley <tvboxspy@gmail.com>
Sat, 16 May 2020 10:35:22 +0000 (11:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 May 2020 14:17:18 +0000 (16:17 +0200)
commitabfd23743d479137ad9912597ca13383f73f01f8
treeebbfdc031634c4a675f777bdce96ede54d1f47c9
parent16438cf707c924a675afba15d05a19ac2843e7d2
staging: vt6656: Use sk_buff buffer for tx header

mac80211 can provide space for the driver to put a tx header on
the skb buffer instead coping the entire frame on to a local
buffer with the header.

To use this extra_tx_headroom must be set in mac80211 with the largest
possible header which is struct vnt_tx_buffer.

The driver has 8 possible combinations of tx header size which
are found in vnt_get_hdr_size replacing vnt_mac_hdr_pos.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Link: https://lore.kernel.org/r/7b967bfc-1d4b-4b45-efab-d54f16cca226@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/device.h
drivers/staging/vt6656/main_usb.c
drivers/staging/vt6656/rxtx.c
drivers/staging/vt6656/rxtx.h
drivers/staging/vt6656/usbpipe.c