Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci port-evbarm/56274: no network on ec2 arm64 9.99.85
details: https://anonhg.NetBSD.org/src/rev/5f36344419db
branches: trunk
changeset: 380023:5f36344419db
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Thu Jul 01 17:22:10 2021 +0000
description:
port-evbarm/56274: no network on ec2 arm64 9.99.85
Remove custom SIOCSIFFLAGS handling and rely on ether_ioctl to DTRT
diffstat:
sys/dev/pci/if_ena.c | 24 +-----------------------
1 files changed, 1 insertions(+), 23 deletions(-)
diffs (41 lines):
diff -r f8f964fd83e8 -r 5f36344419db sys/dev/pci/if_ena.c
--- a/sys/dev/pci/if_ena.c Thu Jul 01 15:53:20 2021 +0000
+++ b/sys/dev/pci/if_ena.c Thu Jul 01 17:22:10 2021 +0000
@@ -36,7 +36,7 @@
#if 0
__FBSDID("$FreeBSD: head/sys/dev/ena/ena.c 333456 2018-05-10 09:37:54Z mw $");
#endif
-__KERNEL_RCSID(0, "$NetBSD: if_ena.c,v 1.27 2021/01/23 11:50:30 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ena.c,v 1.28 2021/07/01 17:22:10 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -2396,28 +2396,6 @@ ena_ioctl(struct ifnet *ifp, u_long comm
rw_exit(&adapter->ioctl_sx);
break;
- case SIOCSIFFLAGS:
- if ((ifp->if_flags & IFF_UP) != 0) {
- if ((if_getdrvflags(ifp) & IFF_RUNNING) != 0) {
- if ((ifp->if_flags & (IFF_PROMISC |
- IFF_ALLMULTI)) != 0) {
- device_printf(adapter->pdev,
- "ioctl promisc/allmulti\n");
- }
- } else {
- rw_enter(&adapter->ioctl_sx, RW_WRITER);
- rc = ena_up(adapter);
- rw_exit(&adapter->ioctl_sx);
- }
- } else {
- if ((if_getdrvflags(ifp) & IFF_RUNNING) != 0) {
- rw_enter(&adapter->ioctl_sx, RW_WRITER);
- ena_down(adapter);
- rw_exit(&adapter->ioctl_sx);
- }
- }
- break;
-
case SIOCADDMULTI:
case SIOCDELMULTI:
break;
Home |
Main Index |
Thread Index |
Old Index