Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb use DOPAUSE. 772B Lenovo now has working rxpause...
details: https://anonhg.NetBSD.org/src/rev/add7c235a96a
branches: trunk
changeset: 969777:add7c235a96a
user: nisimura <nisimura%NetBSD.org@localhost>
date: Sun Mar 01 10:16:17 2020 +0000
description:
use DOPAUSE. 772B Lenovo now has working rxpause,txpause
diffstat:
sys/dev/usb/if_axe.c | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
diffs (34 lines):
diff -r 5994379d719e -r add7c235a96a sys/dev/usb/if_axe.c
--- a/sys/dev/usb/if_axe.c Sun Mar 01 08:32:15 2020 +0000
+++ b/sys/dev/usb/if_axe.c Sun Mar 01 10:16:17 2020 +0000
@@ -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 @@
* 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);
}
Home |
Main Index |
Thread Index |
Old Index