Module Name: src Committed By: nisimura Date: Sun Mar 1 10:16:17 UTC 2020
Modified Files: src/sys/dev/usb: if_axe.c Log Message: use DOPAUSE. 772B Lenovo now has working rxpause,txpause To generate a diff of this commit: cvs rdiff -u -r1.127 -r1.128 src/sys/dev/usb/if_axe.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/usb/if_axe.c diff -u src/sys/dev/usb/if_axe.c:1.127 src/sys/dev/usb/if_axe.c:1.128 --- src/sys/dev/usb/if_axe.c:1.127 Sun Mar 1 08:32:15 2020 +++ src/sys/dev/usb/if_axe.c Sun Mar 1 10:16:17 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: if_axe.c,v 1.127 2020/03/01 08:32:15 nisimura Exp $ */ +/* $NetBSD: if_axe.c,v 1.128 2020/03/01 10:16:17 nisimura Exp $ */ /* $OpenBSD: if_axe.c,v 1.137 2016/04/13 11:03:37 mpi Exp $ */ /* @@ -87,7 +87,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_axe.c,v 1.127 2020/03/01 08:32:15 nisimura Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_axe.c,v 1.128 2020/03/01 10:16:17 nisimura Exp $"); #ifdef _KERNEL_OPT #include "opt_usb.h" @@ -1000,14 +1000,9 @@ axe_attach(device_t parent, device_t sel * not possible to announce IFCAP_VLAN_HWTAGGING. */ } - u_int adv_pause; if (un->un_flags & (AX772A | AX772B | AX178)) - adv_pause = MIIF_DOPAUSE; - else - adv_pause = 0; - adv_pause = 0; + unm.un_mii_flags = MIIF_DOPAUSE; - unm.un_mii_flags = adv_pause; usbnet_attach_ifp(un, IFF_SIMPLEX | IFF_BROADCAST | IFF_MULTICAST, 0, &unm); }