freebsd-skq/sys/dev/usb/net
yongari 84759d46ef Switch to TX header format rather than directly manipulating header
structures.  This simplifies mbuf copy operation to USB buffers as
well as improving readability.  The controller supports Microsoft
LSOv1(aka TSO) but this change set does not include the support due
to copying overhead to USB buffers and large amount of memory waste.

Remove useless ZLP padding which seems to come from Linux.  Required
bits the code tried to set was not copied into USB buffer so it had
no effect.  Unlike Linux, FreeBSD USB stack automatically generates
ZLP so no explicit padding is required in driver.[1]

Micro-optimize updating IFCOUNTER_OPACKETS counter by moving it out
of TX loop since updating counter is not cheap operation as it did
long time ago and we already know how many number of packets were
queued after exiting the loop.

While here, fix a checksum offloading bug which will happen when
upper stack computes checksum while H/W checksum offloading is
active.  The controller should be notified to not recompute the
checksum in this case.

Reviewed by:	kevlo (initial version), hselasky
Pointed out by:	hselasky [1]
2016-08-18 05:07:02 +00:00
..
if_aue.c
if_auereg.h
if_axe.c
if_axereg.h
if_axge.c Switch to TX header format rather than directly manipulating header 2016-08-18 05:07:02 +00:00
if_axgereg.h Switch to TX header format rather than directly manipulating header 2016-08-18 05:07:02 +00:00
if_cdce.c
if_cdcereg.h
if_cue.c dev/usb: minor spelling fixes in comments. 2016-05-02 17:44:03 +00:00
if_cuereg.h
if_ipheth.c
if_iphethvar.h
if_kue.c
if_kuefw.h
if_kuereg.h
if_mos.c s/struct device */device_t/ 2016-05-02 05:37:25 +00:00
if_mosreg.h
if_rue.c dev/usb: minor spelling fixes in comments. 2016-05-02 17:44:03 +00:00
if_ruereg.h
if_smsc.c
if_smscreg.h
if_udav.c
if_udavreg.h
if_ure.c Cleanup unnecessary semicolons from the kernel. 2016-04-10 23:07:00 +00:00
if_urereg.h
if_urndis.c dev/usb: minor spelling fixes in comments. 2016-05-02 17:44:03 +00:00
if_urndisreg.h
if_usie.c
if_usievar.h
ruephy.c
ruephyreg.h
uhso.c usb/uhso: Don't bail out on first USB error. 2016-06-02 15:30:58 +00:00
usb_ethernet.c Get closer to a VIMAGE network stack teardown from top to bottom rather 2016-06-21 13:48:49 +00:00
usb_ethernet.h