From db13b7118e1ad4e21808fbadcdcdc9f345658e11 Mon Sep 17 00:00:00 2001 From: Bill Paul Date: Sat, 20 Jan 2001 00:47:55 +0000 Subject: Set the OACTIVE flag if vr_encap() fails. --- sys/dev/vr/if_vr.c | 1 + sys/pci/if_vr.c | 1 + 2 files changed, 2 insertions(+) diff --git a/sys/dev/vr/if_vr.c b/sys/dev/vr/if_vr.c index 662e7be34566..9e5ee21d01cd 100644 --- a/sys/dev/vr/if_vr.c +++ b/sys/dev/vr/if_vr.c @@ -1348,6 +1348,7 @@ static void vr_start(ifp) /* Pack the data into the descriptor. */ if (vr_encap(sc, cur_tx, m_head)) { IF_PREPEND(&ifp->if_snd, m_head); + ifp->if_flags |= IFF_OACTIVE; cur_tx = NULL; break; } diff --git a/sys/pci/if_vr.c b/sys/pci/if_vr.c index 662e7be34566..9e5ee21d01cd 100644 --- a/sys/pci/if_vr.c +++ b/sys/pci/if_vr.c @@ -1348,6 +1348,7 @@ static void vr_start(ifp) /* Pack the data into the descriptor. */ if (vr_encap(sc, cur_tx, m_head)) { IF_PREPEND(&ifp->if_snd, m_head); + ifp->if_flags |= IFF_OACTIVE; cur_tx = NULL; break; } -- cgit v1.3