net: fix missing break in CRC switch
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 4 May 2017 15:38:19 +0000 (16:38 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 5 May 2017 16:36:55 +0000 (18:36 +0200)
commitb66c229db23bf0406179694226ea74bc43c25be5
treec2b80909a41a761b8af591f189ecd41c8a8edcae
parent0f5e6759fd07e76b8b019122d7f4a86d8af95d17
net: fix missing break in CRC switch

The #ifdef only had the break in the else leg rather than in the first leg,
leading to the value set their being overridden on fall-through.

Fixes: 986ff526fb84 ("net: add CRC computation API")

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Jasvinder Singh <jasvinder.singh@intel.com>
lib/librte_net/rte_net_crc.c