From b66c229db23bf0406179694226ea74bc43c25be5 Mon Sep 17 00:00:00 2001 From: Bruce Richardson Date: Thu, 4 May 2017 16:38:19 +0100 Subject: [PATCH] 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 Acked-by: Jasvinder Singh --- lib/librte_net/rte_net_crc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_net/rte_net_crc.c b/lib/librte_net/rte_net_crc.c index e8326fe76c..9d1ee63faf 100644 --- a/lib/librte_net/rte_net_crc.c +++ b/lib/librte_net/rte_net_crc.c @@ -167,8 +167,8 @@ rte_net_crc_set_alg(enum rte_net_crc_alg alg) handlers = handlers_sse42; #else alg = RTE_NET_CRC_SCALAR; - break; #endif + break; case RTE_NET_CRC_SCALAR: default: handlers = handlers_scalar; -- 2.20.1