Skip to content

libpolycube: fix cube get type#110

Merged
frisso merged 1 commit intomasterfrom
pr/fix_cube_get_type
Apr 13, 2019
Merged

libpolycube: fix cube get type#110
frisso merged 1 commit intomasterfrom
pr/fix_cube_get_type

Conversation

@mauriciovasquezbernal
Copy link
Copy Markdown
Contributor

get_type() was returning a local variable that was never set, so it always
returned CubeType::TC, this causes a performance degradation in pcn-iptables
because the fib_lookup kernel feature was never used.

get_type() was returning a local variable that was never set, so it always
returned CubeType::TC, this causes a performance degradation in pcn-iptables
because the fib_lookup kernel feature was never used.

Fixes: 5a3e91e ("implement base datamodel handling in polycubed")

Signed-off-by: Mauricio Vasquez B <mauriciovasquezbernal@gmail.com>
@mauriciovasquezbernal mauriciovasquezbernal requested a review from a team as a code owner April 12, 2019 15:37
@mauriciovasquezbernal mauriciovasquezbernal changed the title fix cube get type libpolycube: fix cube get type Apr 12, 2019
Copy link
Copy Markdown
Contributor

@mbertrone mbertrone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Mauricio!

@frisso frisso merged commit a36d446 into master Apr 13, 2019
@frisso frisso deleted the pr/fix_cube_get_type branch April 13, 2019 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants