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>
This commit is contained in:
parent
0f5e6759fd
commit
b66c229db2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user