git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f5e675
)
net: fix missing break in CRC switch
author
Bruce Richardson
<bruce.richardson@intel.com>
Thu, 4 May 2017 15:38:19 +0000
(16:38 +0100)
committer
Thomas Monjalon
<thomas@monjalon.net>
Fri, 5 May 2017 16:36:55 +0000
(18:36 +0200)
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
patch
|
blob
|
history
diff --git
a/lib/librte_net/rte_net_crc.c
b/lib/librte_net/rte_net_crc.c
index
e8326fe
..
9d1ee63
100644
(file)
--- 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;