View | Details | Raw Unified | Return to bug 239891
Collapse All | Expand All

(-)dev/aoe/aoenet.c (-4 / +10 lines)
Lines 85-90 Link Here
85
#endif
85
#endif
86
#define IFLISTSZ 1024
86
#define IFLISTSZ 1024
87
87
88
#if	__FreeBSD_version >= 1200000
89
#define	IFNET_FOREACH(v, h, e)	CK_STAILQ_FOREACH(v, h, e)
90
#else
91
#define	IFNET_FOREACH(v, h, e)	TAILQ_FOREACH(v, h, e)
92
#endif
93
88
static char aoe_iflist[IFLISTSZ];
94
static char aoe_iflist[IFLISTSZ];
89
95
90
static int sysctl_aoe_iflist(SYSCTL_HANDLER_ARGS);
96
static int sysctl_aoe_iflist(SYSCTL_HANDLER_ARGS);
Lines 304-310 Link Here
304
	h->ah_cmd = AOECMD_CFG;
310
	h->ah_cmd = AOECMD_CFG;
305
311
306
	IFNET_RLOCK();
312
	IFNET_RLOCK();
307
	TAILQ_FOREACH(ifp, &ifnet, if_link) {
313
	IFNET_FOREACH(ifp, &ifnet, if_link) {
308
		if (!is_aoe_netif(ifp))
314
		if (!is_aoe_netif(ifp))
309
			continue;
315
			continue;
310
		memcpy(h->ah_src, IFPADDR(ifp), sizeof(h->ah_src));
316
		memcpy(h->ah_src, IFPADDR(ifp), sizeof(h->ah_src));
Lines 506-512 Link Here
506
512
507
#ifdef FORCE_NETWORK_HOOK
513
#ifdef FORCE_NETWORK_HOOK
508
	IFNET_RLOCK();
514
	IFNET_RLOCK();
509
	TAILQ_FOREACH(ifp, &ifnet, if_link) {
515
	IFNET_FOREACH(ifp, &ifnet, if_link) {
510
		if (!is_aoe_netif(ifp)) {
516
		if (!is_aoe_netif(ifp)) {
511
			if (ifp->if_input == aoe_ether_input)
517
			if (ifp->if_input == aoe_ether_input)
512
				ifp->if_input = old_ether_input;
518
				ifp->if_input = old_ether_input;
Lines 531-537 Link Here
531
	struct ifnet *ifp;
537
	struct ifnet *ifp;
532
538
533
	IFNET_RLOCK();
539
	IFNET_RLOCK();
534
	TAILQ_FOREACH(ifp, &ifnet, if_link) {
540
	IFNET_FOREACH(ifp, &ifnet, if_link) {
535
#if __FreeBSD_version >= 1100030
541
#if __FreeBSD_version >= 1100030
536
        	switch (ifp->if_type) {
542
        	switch (ifp->if_type) {
537
#else
543
#else
Lines 564-570 Link Here
564
	struct ifnet *ifp;
570
	struct ifnet *ifp;
565
571
566
	IFNET_RLOCK();
572
	IFNET_RLOCK();
567
	TAILQ_FOREACH(ifp, &ifnet, if_link) {
573
	IFNET_FOREACH(ifp, &ifnet, if_link) {
568
#if __FreeBSD_version >= 1100030
574
#if __FreeBSD_version >= 1100030
569
        	switch (ifp->if_type) {
575
        	switch (ifp->if_type) {
570
#else
576
#else

Return to bug 239891