From e51e55880db1587c6c4b8da7c0931320a2234850 Mon Sep 17 00:00:00 2001 From: Bill Paul Date: Sat, 25 Sep 1999 04:50:27 +0000 Subject: [PATCH] Call sk_start() at the end of sk_intr() if there's packets in the interface send queue that need to be processed. --- sys/dev/sk/if_sk.c | 5 +++++ sys/pci/if_sk.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/sys/dev/sk/if_sk.c b/sys/dev/sk/if_sk.c index 95bf5403d67e..edb941ff681f 100644 --- a/sys/dev/sk/if_sk.c +++ b/sys/dev/sk/if_sk.c @@ -1703,6 +1703,11 @@ static void sk_intr(xsc) CSR_WRITE_4(sc, SK_IMR, sc->sk_intrmask); + if (ifp0 != NULL && ifp0->if_snd.ifq_head != NULL) + sk_start(ifp0); + if (ifp1 != NULL && ifp1->if_snd.ifq_head != NULL) + sk_start(ifp1); + return; } diff --git a/sys/pci/if_sk.c b/sys/pci/if_sk.c index 95bf5403d67e..edb941ff681f 100644 --- a/sys/pci/if_sk.c +++ b/sys/pci/if_sk.c @@ -1703,6 +1703,11 @@ static void sk_intr(xsc) CSR_WRITE_4(sc, SK_IMR, sc->sk_intrmask); + if (ifp0 != NULL && ifp0->if_snd.ifq_head != NULL) + sk_start(ifp0); + if (ifp1 != NULL && ifp1->if_snd.ifq_head != NULL) + sk_start(ifp1); + return; }