Date: Wed, 24 Apr 2002 01:05:08 -0600 (MDT) From: "M. Warner Losh" <imp@village.org> To: net@freebsd.org Subject: MFC: IF_HANDOFF and IF_HANDOFF_ADJ Message-ID: <20020424.010508.131147446.imp@village.org>
next in thread | raw e-mail | index | archive | help
Any objections to MFCing IF_HANDOFF and IF_HANDOFF_ADJ? I'd like there to be a common API between -stable and -current. I'm thinking that the following macros would be sufficient for -stable: #define IF_HANDOFF_ADJ(q, m, ifp, adj) \ if (IF_QFULL((q))) { \ IF_DROP((q)); \ m_freem((m)); \ } else { \ (ifp)->if_obytes += (m)->m_pkthdr.len + (adj); \ if ((m)->m_flags & M_MCAST) \ (ifp)->if_omcasts++; \ IF_ENQUEUE((q), (m)); \ if (((ifp)->if_flags & IFF_OACTIVE) == 0) \ (*(ifp)->if_start)((ifp)); \ } #define IF_HANDOFF(q, m, ifp) IF_HANDOFF_ADJ(q, m, ifp, 0) Comments? Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020424.010508.131147446.imp>