Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net m_copy -> m_copym



details:   https://anonhg.NetBSD.org/src/rev/aebaff346d1e
branches:  trunk
changeset: 832021:aebaff346d1e
user:      maxv <maxv%NetBSD.org@localhost>
date:      Thu Apr 26 19:56:55 2018 +0000

description:
m_copy -> m_copym

diffstat:

 sys/net/if_arcsubr.c      |  6 +++---
 sys/net/if_ethersubr.c    |  6 +++---
 sys/net/if_fddisubr.c     |  6 +++---
 sys/net/if_ieee1394subr.c |  8 ++++----
 sys/net/if_tokensubr.c    |  6 +++---
 sys/net/raw_usrreq.c      |  6 +++---
 6 files changed, 19 insertions(+), 19 deletions(-)

diffs (171 lines):

diff -r ff859ee7f417 -r aebaff346d1e sys/net/if_arcsubr.c
--- a/sys/net/if_arcsubr.c      Thu Apr 26 19:50:09 2018 +0000
+++ b/sys/net/if_arcsubr.c      Thu Apr 26 19:56:55 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_arcsubr.c,v 1.78 2017/10/23 09:22:24 msaitoh Exp $  */
+/*     $NetBSD: if_arcsubr.c,v 1.79 2018/04/26 19:56:55 maxv Exp $     */
 
 /*
  * Copyright (c) 1994, 1995 Ignatios Souvatzis
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_arcsubr.c,v 1.78 2017/10/23 09:22:24 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_arcsubr.c,v 1.79 2018/04/26 19:56:55 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -155,7 +155,7 @@
                /* If broadcasting on a simplex interface, loopback a copy */
                if ((m->m_flags & (M_BCAST|M_MCAST)) &&
                    (ifp->if_flags & IFF_SIMPLEX))
-                       mcopy = m_copy(m, 0, (int)M_COPYALL);
+                       mcopy = m_copym(m, 0, (int)M_COPYALL, M_DONTWAIT);
                if (ifp->if_flags & IFF_LINK0) {
                        atype = ARCTYPE_IP;
                        newencoding = 1;
diff -r ff859ee7f417 -r aebaff346d1e sys/net/if_ethersubr.c
--- a/sys/net/if_ethersubr.c    Thu Apr 26 19:50:09 2018 +0000
+++ b/sys/net/if_ethersubr.c    Thu Apr 26 19:56:55 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ethersubr.c,v 1.263 2018/04/09 16:14:11 maxv Exp $  */
+/*     $NetBSD: if_ethersubr.c,v 1.264 2018/04/26 19:56:55 maxv Exp $  */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.263 2018/04/09 16:14:11 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.264 2018/04/26 19:56:55 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -247,7 +247,7 @@
                }
                /* If broadcasting on a simplex interface, loopback a copy */
                if ((m->m_flags & M_BCAST) && (ifp->if_flags & IFF_SIMPLEX))
-                       mcopy = m_copy(m, 0, M_COPYALL);
+                       mcopy = m_copym(m, 0, M_COPYALL, M_DONTWAIT);
                etype = htons(ETHERTYPE_IP);
                break;
 
diff -r ff859ee7f417 -r aebaff346d1e sys/net/if_fddisubr.c
--- a/sys/net/if_fddisubr.c     Thu Apr 26 19:50:09 2018 +0000
+++ b/sys/net/if_fddisubr.c     Thu Apr 26 19:56:55 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_fddisubr.c,v 1.105 2017/02/14 03:05:06 ozaki-r Exp $        */
+/*     $NetBSD: if_fddisubr.c,v 1.106 2018/04/26 19:56:55 maxv Exp $   */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -96,7 +96,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_fddisubr.c,v 1.105 2017/02/14 03:05:06 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_fddisubr.c,v 1.106 2018/04/26 19:56:55 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_gateway.h"
@@ -243,7 +243,7 @@
                        return error == EWOULDBLOCK ? 0 : error;
                /* If broadcasting on a simplex interface, loopback a copy */
                if ((m->m_flags & M_BCAST) && (ifp->if_flags & IFF_SIMPLEX))
-                       mcopy = m_copy(m, 0, (int)M_COPYALL);
+                       mcopy = m_copym(m, 0, (int)M_COPYALL, M_DONTWAIT);
                etype = htons(ETHERTYPE_IP);
                break;
        }
diff -r ff859ee7f417 -r aebaff346d1e sys/net/if_ieee1394subr.c
--- a/sys/net/if_ieee1394subr.c Thu Apr 26 19:50:09 2018 +0000
+++ b/sys/net/if_ieee1394subr.c Thu Apr 26 19:56:55 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ieee1394subr.c,v 1.59 2017/02/14 03:05:06 ozaki-r Exp $     */
+/*     $NetBSD: if_ieee1394subr.c,v 1.60 2018/04/26 19:56:55 maxv Exp $        */
 
 /*
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ieee1394subr.c,v 1.59 2017/02/14 03:05:06 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ieee1394subr.c,v 1.60 2018/04/26 19:56:55 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -143,7 +143,7 @@
                        return error == EWOULDBLOCK ? 0 : error;
                /* if broadcasting on a simplex interface, loopback a copy */
                if ((m0->m_flags & M_BCAST) && (ifp->if_flags & IFF_SIMPLEX))
-                       mcopy = m_copy(m0, 0, M_COPYALL);
+                       mcopy = m_copym(m0, 0, M_COPYALL, M_DONTWAIT);
                etype = htons(ETHERTYPE_IP);
                break;
        case AF_ARP:
@@ -298,7 +298,7 @@
                ifh->ifh_etype_off = htons(off);
                ifh->ifh_dgl = htons(ic->ic_dgl);
                ifh->ifh_reserved = 0;
-               m->m_next = m_copy(m0, sizeof(*ifh) + off, fraglen);
+               m->m_next = m_copym(m0, sizeof(*ifh) + off, fraglen, M_DONTWAIT);
                if (m->m_next == NULL) {
                        m_freem(m);
                        goto bad;
diff -r ff859ee7f417 -r aebaff346d1e sys/net/if_tokensubr.c
--- a/sys/net/if_tokensubr.c    Thu Apr 26 19:50:09 2018 +0000
+++ b/sys/net/if_tokensubr.c    Thu Apr 26 19:56:55 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_tokensubr.c,v 1.81 2017/01/31 17:13:36 maxv Exp $   */
+/*     $NetBSD: if_tokensubr.c,v 1.82 2018/04/26 19:56:55 maxv Exp $   */
 
 /*
  * Copyright (c) 1982, 1989, 1993
@@ -92,7 +92,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_tokensubr.c,v 1.81 2017/01/31 17:13:36 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tokensubr.c,v 1.82 2018/04/26 19:56:55 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -235,7 +235,7 @@
                }
                /* If broadcasting on a simplex interface, loopback a copy. */
                if ((m->m_flags & M_BCAST) && (ifp->if_flags & IFF_SIMPLEX))
-                       mcopy = m_copy(m, 0, (int)M_COPYALL);
+                       mcopy = m_copym(m, 0, (int)M_COPYALL, M_DONTWAIT);
                etype = htons(ETHERTYPE_IP);
                break;
        case AF_ARP:
diff -r ff859ee7f417 -r aebaff346d1e sys/net/raw_usrreq.c
--- a/sys/net/raw_usrreq.c      Thu Apr 26 19:50:09 2018 +0000
+++ b/sys/net/raw_usrreq.c      Thu Apr 26 19:56:55 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: raw_usrreq.c,v 1.59 2018/03/19 16:26:25 roy Exp $      */
+/*     $NetBSD: raw_usrreq.c,v 1.60 2018/04/26 19:56:55 maxv Exp $     */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: raw_usrreq.c,v 1.59 2018/03/19 16:26:25 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: raw_usrreq.c,v 1.60 2018/04/26 19:56:55 maxv Exp $");
 
 #include <sys/param.h>
 #include <sys/mbuf.h>
@@ -107,7 +107,7 @@
                if (last != NULL) {
                        struct mbuf *n;
 
-                       if ((n = m_copy(m, 0, M_COPYALL)) == NULL ||
+                       if ((n = m_copym(m, 0, M_COPYALL, M_DONTWAIT)) == NULL ||
                            sbappendaddr(&last->so_rcv, src, n, NULL) == 0)
                        {
                                if (n != NULL)



Home | Main Index | Thread Index | Old Index