Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Feb 2012 08:53:47 -0800
From:      Adrian Chadd <adrian@freebsd.org>
To:        Gleb Smirnoff <glebius@freebsd.org>
Cc:        FreeBSD Net <freebsd-net@freebsd.org>
Subject:   Re: call for review: 802.11q QinQ netgraph support
Message-ID:  <CAJ-VmokBHkyRC5mAnQkFFL9w-ETwppo_6Ofb8YGa11vEKMcygg@mail.gmail.com>
In-Reply-To: <20120208104213.GD13554@FreeBSD.org>
References:  <CAJ-Vmondr7uO2%2B%2BADk_s=Zpx5HdmABOM=UGP%2BrnGKaNN8zXehQ@mail.gmail.com> <20120208104213.GD13554@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

2012/2/8 Gleb Smirnoff <glebius@freebsd.org>:

> A> I would appreciate further review from network/netgraph related
> A> people. I'm going to borrow a term from gnn and say "Silence implies
> A> consent." :-)
>
> I have only minor comments:

Thanks for your feedback!

Ivan, can you please review these?


Adrian

>
> 1.1) According to style(9) new code should use uintXX_t instead of u_intXX_t.
> 1.2) Some lines are really loooong, they need to be broken into shorter ones
>     accoording to style(9).
> 1.3) Operators at beginning of a line - also style(9) violation.
>
> 2) NETGRAPH_DEBUG wasn't designed for the things the patch is doing. But
>   the KASSERT was. So it'll be better to change the code under NETGRAPH_DEBUG
>   to KASSERTs. For example in the chunk '@@ -262,35 +322,143 @@':
>
>        KASSERT(priv->vlan_hook[EVL_VLANOFTAG(hook_data)] == hook,
>            ("%s: NGM_VLAN_DEL_FILTER: Invalid VID for Hook = %s\n",
>            __func__, (char *)msg->data));
>
>        and
>
>        KASSERT(EVL_VLANOFTAG(hook_data) == vid,
>            ("%s: NGM_VLAN_DEL_VID_FLT: Invalid VID Hook = %us, must be: %us\n",
>            __func__, (uint16_t )EVL_VLANOFTAG(hook_data), vid));
>
> --
> Totus tuus, Glebius.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmokBHkyRC5mAnQkFFL9w-ETwppo_6Ofb8YGa11vEKMcygg>