> On May 30, 2015, 6:12 p.m., Isabel Jimenez wrote: > > src/linux/routing/queueing/internal.hpp, line 128 > > <https://reviews.apache.org/r/34830/diff/1/?file=974718#file974718line128> > > > > Why use reinterpret_cast here? am I missing something that needs > > changing the bit interpretation of this in the machine?
libnl defined the output of nl_cache_get_first to be struct nl_object* but the input to rtnl_tc_get_ifindex is a struct rtnl_tc*. Since these are unrelated pointers, there is no conversion function or class heirarchy so we need a reinterpret_cast. - Paul ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/34830/#review85828 ----------------------------------------------------------- On May 29, 2015, 9:57 p.m., Paul Brett wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/34830/ > ----------------------------------------------------------- > > (Updated May 29, 2015, 9:57 p.m.) > > > Review request for mesos, Chi Zhang, Ian Downes, Jie Yu, and Cong Wang. > > > Bugs: MESOS-2781 > https://issues.apache.org/jira/browse/MESOS-2781 > > > Repository: mesos > > > Description > ------- > > Fix routing ingress/fq_codel search returning wrong qdisc. > > Add new checking to verify that operations occur on the correct interface and > change the behaviour of create() operation to return false rather than an > error if creation fails if the interface does not exist (now consistent with > exists() and remove()). > > > Diffs > ----- > > src/linux/routing/queueing/fq_codel.hpp > 7de1e31d4c43ac9cbffab1e472ea51140719f900 > src/linux/routing/queueing/fq_codel.cpp > 64b5c73e8cfa672141ddb663e879c58b4babfdbc > src/linux/routing/queueing/ingress.hpp > 84506fecd01522471a7998176c28bea8f1367aed > src/linux/routing/queueing/ingress.cpp > ae0c38d2215e7fabcc1060e7385484bd455e1699 > src/linux/routing/queueing/internal.hpp > d43a9fd405af2e59dc57cfc7ba9b5e77cb9f6b70 > > Diff: https://reviews.apache.org/r/34830/diff/ > > > Testing > ------- > > make check > > > Thanks, > > Paul Brett > >