linux_dsm_epyc7002/drivers/net/usb
Bjørn Mork 20572226fc net: cdc_ncm: simplify and optimize frame padding
We can avoid the costly division for the common case where
we pad the frame to tx_max size as long as we ensure that
tx_max is either the device specified dwNtbOutMaxSize or not
a multiplum of wMaxPacketSize.

Using the preconverted 'maxpacket' field avoids converting
wMaxPacketSize to CPU endianness for every transmitted frame

And since we only will hit the one byte padding rule for short
frames, we can drop testing the skb for tailroom.

The change means that tx_max now represents the real maximum
skb size, enabling us to allocate the correct size instead of
always making room for one extra byte.

Cc: Alexey Orishko <alexey.orishko@gmail.com>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-11-02 02:02:01 -04:00
..
asix_common.c
asix_devices.c
asix.h
ax88172a.c
ax88179_178a.c ax88179_178a: Add VID:DID for Samsung USB Ethernet Adapter 2013-10-22 15:43:43 -04:00
catc.c net:drivers/net: Miscellaneous conversions to ETH_ALEN 2013-10-02 17:04:45 -04:00
cdc_eem.c
cdc_ether.c net: usb: cdc_ether: use usb.h macros whenever possible 2013-09-16 21:38:00 -04:00
cdc_mbim.c net: cdc_mbim: change the default to send ZLPs 2013-11-02 01:29:37 -04:00
cdc_ncm.c net: cdc_ncm: simplify and optimize frame padding 2013-11-02 02:02:01 -04:00
cdc_subset.c
cdc-phonet.c net: cdc-phonet: Staticize usbpn_probe 2013-09-20 14:41:02 -04:00
cx82310_eth.c
dm9601.c dm9601: fix IFF_ALLMULTI handling 2013-09-30 19:48:59 -04:00
gl620a.c
hso.c hso: Fix stack corruption on some architectures 2013-08-21 20:47:59 -07:00
int51x1.c
ipheth.c
kalmia.c
kaweth.c
Kconfig USB2NET : SR9700 : One chip USB 1.1 USB2NET SR9700Device Driver Support 2013-09-03 22:26:03 -04:00
lg-vl600.c
Makefile USB2NET : SR9700 : One chip USB 1.1 USB2NET SR9700Device Driver Support 2013-09-03 22:26:03 -04:00
mcs7830.c
net1080.c
pegasus.c
pegasus.h
plusb.c
qmi_wwan.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2013-10-23 16:49:34 -04:00
r815x.c
r8152.c r8152: add comments 2013-08-20 00:08:22 -07:00
rndis_host.c
rtl8150.c
sierra_net.c
smsc75xx.c
smsc75xx.h
smsc95xx.c
smsc95xx.h
sr9700.c USB2NET : SR9700 : One chip USB 1.1 USB2NET SR9700Device Driver Support 2013-09-03 22:26:03 -04:00
sr9700.h USB2NET : SR9700 : One chip USB 1.1 USB2NET SR9700Device Driver Support 2013-09-03 22:26:03 -04:00
usbnet.c usbnet: fix error return code in usbnet_probe() 2013-10-17 15:39:50 -04:00
zaurus.c