[BACK]Return to if_dmc.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / dev / qbus

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/dev/qbus/if_dmc.c between version 1.23 and 1.23.4.1

version 1.23, 2014/06/05 23:48:16 version 1.23.4.1, 2016/04/22 15:44:13
Line 762  dmcoutput(struct ifnet *ifp, struct mbuf
Line 762  dmcoutput(struct ifnet *ifp, struct mbuf
         int type, error, s;          int type, error, s;
         struct mbuf *m = m0;          struct mbuf *m = m0;
         struct dmc_header *dh;          struct dmc_header *dh;
         ALTQ_DECL(struct altq_pktattr pktattr;)  
   
         if ((ifp->if_flags & IFF_UP) == 0) {          if ((ifp->if_flags & IFF_UP) == 0) {
                 error = ENETDOWN;                  error = ENETDOWN;
                 goto bad;                  goto bad;
         }          }
   
         IFQ_CLASSIFY(&ifp->if_snd, m, dst->sa_family, &pktattr);          IFQ_CLASSIFY(&ifp->if_snd, m, dst->sa_family);
   
         switch (dst->sa_family) {          switch (dst->sa_family) {
 #ifdef  INET  #ifdef  INET
Line 807  dmcoutput(struct ifnet *ifp, struct mbuf
Line 806  dmcoutput(struct ifnet *ifp, struct mbuf
          * not yet active.           * not yet active.
          */           */
         s = splnet();          s = splnet();
         IFQ_ENQUEUE(&ifp->if_snd, m, &pktattr, error);          IFQ_ENQUEUE(&ifp->if_snd, m, error);
         if (error) {          if (error) {
                 /* mbuf is already freed */                  /* mbuf is already freed */
                 splx(s);                  splx(s);

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.23.4.1

CVSweb <webmaster@jp.NetBSD.org>