> On April 14, 2014, 3:37 a.m., Vinod Kone wrote:
> > src/linux/routing/filter/icmp.cpp, line 244
> > <https://reviews.apache.org/r/20295/diff/1/?file=555699#file555699line244>
> >
> >     What is the need for this 'internal' indirection?

Because we have many types of filters all need to use this general internal 
filter API.


> On April 14, 2014, 3:37 a.m., Vinod Kone wrote:
> > src/linux/routing/filter/priority.hpp, lines 51-53
> > <https://reviews.apache.org/r/20295/diff/1/?file=555701#file555701line51>
> >
> >     should these hex values be replaced by static const variables declared 
> > below in private?
> 
> Jie Yu wrote:
>     The static const variables declared below are "type" part of the 
> priority. The number here are "value" part of the priority (see comments 
> above).
>     
>     BTW: Previously, I call them "major" and "minor" part of the priority. 
> However, seems that some linux header defines major/minor as a macro, causing 
> some compilation issue.

I changed the semantics here. Now, we rely on the user to explicitly specify 
the priority, instead of creating an internal dependency. If a user does not 
specify a priority, the kernel will just randomly assign a priority.


- Jie


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/20295/#review40233
-----------------------------------------------------------


On April 13, 2014, 11:45 p.m., Jie Yu wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/20295/
> -----------------------------------------------------------
> 
> (Updated April 13, 2014, 11:45 p.m.)
> 
> 
> Review request for mesos, Benjamin Hindman, Chi Zhang, Ian Downes, Vinod 
> Kone, and Cong Wang.
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> This is Part 2 of the linux routing library.
> 
> 
> Diffs
> -----
> 
>   src/Makefile.am 560b4c7 
>   src/linux/routing/filter/action.hpp PRE-CREATION 
>   src/linux/routing/filter/icmp.hpp PRE-CREATION 
>   src/linux/routing/filter/icmp.cpp PRE-CREATION 
>   src/linux/routing/filter/internal.hpp PRE-CREATION 
>   src/linux/routing/filter/priority.hpp PRE-CREATION 
>   src/tests/routing_tests.cpp PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/20295/diff/
> 
> 
> Testing
> -------
> 
> make check
> sudo make check
> 
> 
> Thanks,
> 
> Jie Yu
> 
>

Reply via email to