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: 986ff526fb ("net: add CRC computation API")

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Jasvinder Singh <jasvinder.singh@intel.com>
This commit is contained in:
Bruce Richardson 2017-05-04 16:38:19 +01:00 committed by Thomas Monjalon
parent 0f5e6759fd
commit b66c229db2

View File

@ -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;