ip: crash in ip_csum_fold due to illegal instruction shrx
[vpp.git] / src / vnet / ip / ip_packet.h
old mode 100644 (file)
new mode 100755 (executable)
index d862caa..837b3df
@@ -301,7 +301,7 @@ always_inline u16
 ip_csum_fold (ip_csum_t c)
 {
   /* Reduce to 16 bits. */
-#ifdef __x86_64__
+#if defined(__x86_64__) && defined(__BMI2__)
   u64 tmp;
   asm volatile(
     /* using ADC is much faster than mov, shift, add sequence