Module Name: src Committed By: jmcneill Date: Thu Jul 1 17:22:10 UTC 2021
Modified Files: src/sys/dev/pci: if_ena.c Log Message: port-evbarm/56274: no network on ec2 arm64 9.99.85 Remove custom SIOCSIFFLAGS handling and rely on ether_ioctl to DTRT To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/sys/dev/pci/if_ena.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/pci/if_ena.c diff -u src/sys/dev/pci/if_ena.c:1.27 src/sys/dev/pci/if_ena.c:1.28 --- src/sys/dev/pci/if_ena.c:1.27 Sat Jan 23 11:50:30 2021 +++ src/sys/dev/pci/if_ena.c Thu Jul 1 17:22:10 2021 @@ -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;